[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5525: 23.1; In c-mode, C-M-h multiple times does nothing
From: |
Glenn Morris |
Subject: |
bug#5525: 23.1; In c-mode, C-M-h multiple times does nothing |
Date: |
Sat, 06 Feb 2010 14:33:43 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Dani Moncayo wrote:
> So, Why i can't select f2 when i run the C-M-h command several times
> in a row?
Because in c-mode, C-M-h doesn't run mark-defun, it runs C-mode's
version of mark-defun, which doesn't have the feature you describe.
I'm sure other modes are guilty of this too (eg the Fortran ones are).
This feature could be added to each mode's version, but the right
thing is probably to just leave C-M-h bound to the standard
mark-defun. Provided end-of-defun-function etc are set to the correct
mode-specific values, mark-defun ought to do the right thing in each
mode anyway.
But it probably isn't appropriate to change this for 23.2 at this
stage.