[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21072: 24.5; inconsistent behaviour of `C-M-h (mark-defun)' in Emacs
From: |
Drew Adams |
Subject: |
bug#21072: 24.5; inconsistent behaviour of `C-M-h (mark-defun)' in Emacs Lisp |
Date: |
Fri, 28 Oct 2016 07:32:49 -0700 (PDT) |
> > 5. `M-- C-M-h' and `C-M-h' always seem to select blank lines
> > before the defun. Should they (what for)?
>
> I'm pretty sure that they should select blank lines either before or
> after the defun. I just chose the "before" way.
Yes, that is consistent with, say `mark-paragraph'.
> > 6. Interactively, I would rather see repeated use of `C-M-h',
> > after an initial use of `C-M-h' with a negative prefix arg
> > (e.g. `M-- C-M-h'), continue to select defuns backward. IOW,
> > not need to use `M--' explicitly for each `C-M-h'.
> >
> > You can just hold down `C-M-h', to select multiple defuns
> > forward. I would like to be able to do the same thing, but
> > backward, by using `M-- C-M-h C-M-h C-M-h C-M-h...' (just
> > hold down the chord).
> >
> > If you do that, then a negative prefix arg should not mean
> > backward; it should just mean change direction (backward if
> > previous command was not `mark-defun').
>
> That's interesting. I'd like to implement it, but this will take
> time (apart from other things, I have a 10-days-old son now:-).)
Thanks for considering it. And congratulations on young Borkowski!