GNU bug report logs -
#5474
23.1.91.1; describe-mode does not offer link to the .el
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Mon, 25 Jan 2010 17:19:01 UTC
Severity: wishlist
Tags: patch
Merged with 8185
Done: Juanma Barranquero <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5474 in the body.
You can then email your comments to 5474 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5474
; Package
emacs
.
(Mon, 25 Jan 2010 17:19:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jidanni <at> jidanni.org
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 25 Jan 2010 17:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
We hit C-h m. We see the following:
XXXX mode:
Major mode for editing XXXX.
key binding
--- -------
C-c Prefix Command
ESC Prefix Command
C-M-x XXXX-eval-defun
Nowhere is there a link to XXXX.el.
We have to hit XXXX-eval-defun to get a link to XXXX.el.
It should say at top
XXXX mode:
Major mode for editing XXXX. Defined in XXXX.el <---clickable.
Or
XXXX mode (... XXXX-mode, defined in XXXX.el):
Major mode for editing XXXX.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5474
; Package
emacs
.
(Mon, 25 Jan 2010 17:58:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5474 <at> debbugs.gnu.org (full text, mbox):
> We hit C-h m. We see the following:
>
> XXXX mode:
> Major mode for editing XXXX.
>
> key binding
> --- -------
>
> C-c Prefix Command
> ESC Prefix Command
>
> C-M-x XXXX-eval-defun
>
> Nowhere is there a link to XXXX.el.
> We have to hit XXXX-eval-defun to get a link to XXXX.el.
>
> It should say at top
> XXXX mode:
> Major mode for editing XXXX. Defined in XXXX.el <---clickable.
>
> Or
> XXXX mode (... XXXX-mode, defined in XXXX.el):
> Major mode for editing XXXX.
This can be implemented after feature freeze with the following patch
that adds links to the major/minor mode names for `C-h m':
Index: emacs/lisp/help.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/help.el,v
retrieving revision 1.327
diff -u -r1.327 help.el
--- emacs/lisp/help.el 21 Mar 2007 16:15:45 -0000 1.327
+++ emacs/lisp/help.el 5 May 2007 17:01:30 -0000
@@ -815,7 +815,12 @@
(princ "\n\f\n")
(push (point-marker) help-button-cache)
;; Document the minor modes fully.
- (insert pretty-minor-mode)
+ (insert-button pretty-minor-mode
+ 'action `(lambda (button)
+ (describe-function ',mode-function))
+ 'follow-link t
+ 'help-echo (format "mouse-2, RET: show information about %S"
+ mode-function))
(princ (format " minor mode (%s):\n"
(if (zerop (length indicator))
"no indicator"
@@ -833,10 +838,15 @@
(princ "\n(Information about these minor modes follows the major mode info.)\n\n"))
;; Document the major mode.
- (let ((mode mode-name))
+ (let ((major-mode-function major-mode) (mode mode-name))
(with-current-buffer standard-output
(let ((start (point)))
- (insert (format-mode-line mode))
+ (insert-button (format-mode-line mode)
+ 'action `(lambda (button)
+ (describe-function ',major-mode-function))
+ 'follow-link t
+ 'help-echo (format "mouse-2, RET: show information about %S"
+ major-mode-function))
(add-text-properties start (point) '(face bold)))))
(princ " mode:\n")
(princ (documentation major-mode)))
--
Juri Linkov
http://www.jurta.org/emacs/
Severity set to 'wishlist' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 25 Jan 2010 19:45:02 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 25 Jan 2010 19:45:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5474
; Package
emacs
.
(Sat, 20 Feb 2010 03:05:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 5474 <at> debbugs.gnu.org (full text, mbox):
Still not working in emacs-snapshot 1:20100217-1, e.g., upon
M-x ibuffer C-h m.
Forcibly Merged 5474 8185.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 06 Mar 2011 20:03:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 10 Apr 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 73 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.