Skip to content

Unexpected character class of underscore #1318

Closed
@tobiasBora

Description

@tobiasBora

Hello,

First thank you for your work. However I have a problem with the underscore: in (nearly) all major modes of emacs, '_' isn't seen as a classical letter. Like that when you have:

my_variable_name

and when you do M-x forward-word or M-x backward-kill-word, you will jump/delete all the word. Usually in emacs mode when you do so you jump only "name". The above example should become:

 my_variable_

I tried to change the table like that:

(modify-syntax-entry ?_ "-")

However this leads to another problem: Now in completion (M-/) my_variable_name is seen as three separate strings. So

my_var

will expands into

my_variable

instead of

my_variable_name

In all emacs mode, my_variable_name is seen as a single string for expansion, but as separate words for moving/deleting, and I don't understand why haskell change this good practice.

Is there any reason to proceed like this ? Do you plan to come back to a more conventional approach ? If not, do you have solution for people like me that would like to keep the original behaviour ?

Thank you,

TobiasBora.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions