[Q] mark-defun bug
Michael Sperber
sperber at deinprogramm.de
Wed Apr 2 02:22:53 EDT 2008
Andreas Röhler <andreas.roehler at easy-emacs.de> writes:
> Hi all,
>
> `mark-defun' misses the last char, if a definition is
> followed by a buffer-end.
>
> As this bug seems caused by a line not needed AFAIU, it's
> probably fine to drop it.
I don't understand the issue: If I insert, say, the definition of
`mark-defun' into *scratch* as the last thing, go inside it, do M-x
mark-defun RET, the last character gets marked just fine. Could you
describe how to reproduce the problem you're seeing?
Moreover,
> - (beginning-of-defun)
> - (re-search-backward "^\n" (- (point) 1) t))
> + (beginning-of-defun))
... this last line you're eliding affects the placement of the point,
i.e. the *beginning* of the region, not the end. Could you clarify?
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
More information about the XEmacs-Patches
mailing list