all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#671: 23.0.60; To source or not to source (from help)
@ 2008-08-08  9:52 martin rudalics
  2008-08-08 11:09 ` bug#587: " Lennart Borgman (gmail)
  2008-08-08 18:43 ` bug#671: " Stefan Monnier
  0 siblings, 2 replies; 27+ messages in thread
From: martin rudalics @ 2008-08-08  9:52 UTC (permalink / raw)
  To: 587; +Cc: Bug-Gnu-Emacs

 > If you do C-h v and look at a variable and click on the library link in
 > the help buffer you will go to the file in your current Emacs tree. If
 > you do C-h f to look at a function and do the same you will be taken to
 > the cvs checkout file instead.

I suspect you compiled Emacs in the checkout directory and then copied
the Emacs tree to another directory.  In this case the following might
happen: As for C-h f `describe-function-1' will execute

       ;; See if lisp files are present where they where installed from.
       (if (not (eq file-name 'C-source))
	  (setq file-name (find-source-lisp-file file-name)))

which sets `file-name' to the ".el" file from the checkout directory
(because you did compile it there) and installs the corresponding
reference in the hyperlink.

As for C-h v `describe-variable' does _not_ care whether you compiled in
another directory and simply goes to the file supplied by `symbol-file'.
You could try inserting the snipped above in `describe-variable'
immediately before the line

	      (if file-name

and see whether it now jumps to the checkout directory instead.


Personally, I'd prefer something like the following in both cases:

       (unless (or (eq file-name 'C-source)
		  (file-exists-p file-name))
	(setq file-name (find-source-lisp-file file-name)))

martin








^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2008-08-09 14:28 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08  9:52 bug#671: 23.0.60; To source or not to source (from help) martin rudalics
2008-08-08 11:09 ` bug#587: " Lennart Borgman (gmail)
2008-08-08 12:03   ` martin rudalics
2008-08-08 12:20     ` Lennart Borgman (gmail)
2008-08-09  1:02       ` bug#674: " OFFICE ZERO
     [not found]         ` <handler.674.B674.121824629829764.ackinfo@emacsbugs.donarmstrong.com>
2008-08-09  3:04           ` bug#674: Info received (bug#674: 23.0.60; To source or not to source (from help)) OFFICE ZERO
2008-08-09  1:02       ` bug#587: 23.0.60; To source or not to source (from help) OFFICE ZERO
2008-08-09 12:37       ` martin rudalics
2008-08-09 12:44         ` Lennart Borgman (gmail)
2008-08-09 12:58           ` martin rudalics
2008-08-09 13:02             ` Lennart Borgman (gmail)
2008-08-09 13:52               ` OFFICE ZERO
     [not found]                 ` <handler.587.B587.121828992525830.ackinfo@emacsbugs.donarmstrong.com>
2008-08-09 14:28                   ` bug#587: Info received (bug#587: 23.0.60; To source or not to source (from help)) OFFICE ZERO
2008-08-09 13:16             ` bug#587: 23.0.60; To source or not to source (from help) OFFICE ZERO
     [not found]               ` <handler.587.B587.121828781715147.ackinfo@emacsbugs.donarmstrong.com>
2008-08-09 13:51                 ` bug#587: Info received (bug#587: 23.0.60; To source or not to source (from help)) OFFICE ZERO
     [not found]                   ` <handler.587.B587.121828987325755.ackinfo@emacsbugs.donarmstrong.com>
2008-08-09 14:27                     ` bug#587: Info received (bug#587: Info received (bug#587: 23.0.60; To source or not to source (from help))) OFFICE ZERO
2008-08-09 14:14             ` bug#587: 23.0.60; To source or not to source (from help) OFFICE ZERO
2008-08-09 13:17           ` OFFICE ZERO
     [not found]             ` <handler.587.B587.121828782615157.ackinfo@emacsbugs.donarmstrong.com>
2008-08-09 13:51               ` bug#587: Info received (bug#587: 23.0.60; To source or not to source (from help)) OFFICE ZERO
     [not found]                 ` <handler.587.B587.121828986725748.ackinfo@emacsbugs.donarmstrong.com>
2008-08-09 14:27                   ` bug#587: Info received (bug#587: Info received (bug#587: 23.0.60; To source or not to source (from help))) OFFICE ZERO
2008-08-09 13:17         ` bug#587: 23.0.60; To source or not to source (from help) OFFICE ZERO
2008-08-09  1:02     ` bug#673: " OFFICE ZERO
2008-08-09 14:12     ` bug#587: " OFFICE ZERO
2008-08-09 14:12     ` bug#673: " OFFICE ZERO
2008-08-09  1:03   ` bug#672: " OFFICE ZERO
2008-08-09 14:12   ` OFFICE ZERO
2008-08-08 18:43 ` bug#671: " Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.