GNU bug report logs -
#44885
28.0.50; [PATCH] ElDoc buffer mode and separator
Previous Next
Reported by: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Date: Thu, 26 Nov 2020 12:44:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:
> * lisp/emacs-lisp/eldoc.el (eldoc-doc-buffer-separator): New option.
Does this need calling out in etc/NEWS?
> + (define-key map [?\S-\ ] 'scroll-down-command)
Nit: please prefer '\s' over '\ '.
> +(define-derived-mode eldoc-doc-mode fundamental-mode "ElDoc doc"
> + "Major mode for ElDoc documentation buffer."
If it's the major mode for the ElDoc buffer, why not call it
eldoc-buffer-mode so as to avoid the repetition/ambiguity of "doc"?
> + (setq buffer-read-only t))
> +
> (defun eldoc--format-doc-buffer (docs)
> "Ensure DOCS are displayed in an *eldoc* buffer."
> (interactive (list t))
> @@ -472,12 +495,13 @@ eldoc--format-doc-buffer
> eldoc--doc-buffer
> (setq eldoc--doc-buffer
> (get-buffer-create " *eldoc*")))
> + (unless (eq major-mode 'eldoc-doc-mode)
Why not derived-mode-p?
Thanks,
--
Basil
This bug report was last modified 2 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.