emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Enabling c-subword-mode in grep-mode causes regexp matching problems


From: Jared Finder
Subject: RE: Enabling c-subword-mode in grep-mode causes regexp matching problems
Date: Wed, 21 Jun 2006 10:23:34 -0700

From: Kim F. Storm [mailto:address@hidden 
>"Jared Finder" <address@hidden> writes:
>
>> Steps to reproduce:
>>
>> 1. Start up Emacs with emacs -Q.
>> 2. Add (c-subword-mode 1) to grep-mode hook with:
>>    (add-hook 'grep-mode-hook (lambda () (c-subword-mode 1)))
>
>Why do you want to do that?
>
>I'm not saying that it doesn't make sense to do so -- I just 
>don't get it.

Since 99% of the time, I want forward-word and backward-word remapped to
c-forward-subword and c-backward-subword, I have created
global-c-subword mode:

(define-global-minor-mode global-c-subword-mode c-subword-mode
    (lambda () (c-subword-mode 1)))

Of course, this causes c-subword-mode to be enabled in grep-mode as
well.  I didn't mention this in the bug, because I thought it was
irrelevant details.

  -- MJF




reply via email to

[Prev in Thread] Current Thread [Next in Thread]