[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master dbb29d7: Add info-lookup help for gdb-script-mo
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] master dbb29d7: Add info-lookup help for gdb-script-mode |
Date: |
Sun, 05 Feb 2017 00:01:15 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
> --- a/lisp/progmodes/autoconf.el
> +++ b/lisp/progmodes/autoconf.el
> @@ -35,6 +35,8 @@
>
> ;;; Code:
>
> +(require 'info-look)
> +
> (defvar autoconf-mode-map (make-sparse-keymap))
>
> (defvar autoconf-mode-hook nil
> @@ -73,6 +75,49 @@ autoconf-current-defun-function
> t)
> (match-string-no-properties 1))))
>
> +(info-lookup-maybe-add-help
> + :mode 'autoconf-mode
Maybe a better approach would be for the major mode to set an
`info-lookup-<something>` variable, instead. This would also save us
from (require 'info-look), which would probably also fix the problem you
had with emacs-lisp-mode.
> + :other-modes '(m4-mode))
I guess we could do replace the above with
(require 'm4-mode)
[...]
(defconst autoconf-info-lookup-thingy
`(...
:other-modes ,m4-info-lookup-thingy))
-- Stefan