]> git.eshelyaron.com Git - emacs.git/commit
* lisp/textmodes/page-ext.el: Misc cleanup, add RET binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Sep 2017 17:00:44 +0000 (13:00 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Sep 2017 17:00:44 +0000 (13:00 -0400)
commit56f7e4c2024608b2a263dc8505c49996cda0ec4f
treec9fe5b6a0c62bcb56f600541ce4defeeddbbb45a
parenta17f30d7cdfa3983f8c97e474015777ec051de35
* lisp/textmodes/page-ext.el: Misc cleanup, add RET binding

Use lexical-binding.
Remove redundant :group args.
(pages-directory-mode-map): Bind RET.
(pages-buffer, pages-pos-list): Define as buffer-local.
(pages-directory-map): Define as alias *before* the defvar.
Mark as obsolete.
(pages-buffer-original-position, pages-buffer-original-page):
Move declaration to before the first use.
(pages-directory): Remove unused var `linenum`.
(pages-directory-goto): Add optional `event` arg and make it work when
bound to mouse events.
(pages-directory-goto-with-mouse): Make it an obsolete alias.
lisp/textmodes/page-ext.el