make vars buffer-local beginning-of-defun-function
Andreas Roehler
andreas.roehler at online.de
Wed Oct 7 11:02:52 EDT 2009
FOR REVIEW
lisp.el
Suggest to make vars `beginning-of-defun-function',
`end-of-defun-function' buffer-local.
Should some mode set it globally by mistake, it will
take Emacs-Lisp beginning-of-defun with all the
other ones - i.e. the default then is unreachable.
To prevent this bug, setting it buffer-local
shouldn't be left to the mode, but should be done here.
Patch attached. IMHO it's not worth a changelog, as
`beginning-of-defun-function' is introduced fairly new,
no habits to change so far.
Should I commit?
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-buffer-local-bodf-eodf.patch
Type: text/x-patch
Size: 809 bytes
Desc: not available
Url : http://calypso.tux.org/pipermail/xemacs-patches/attachments/20091007/af00b43d/attachment-0003.bin
More information about the XEmacs-Patches
mailing list