all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Info-insert-dir
@ 2007-03-16 19:44 martin rudalics
       [not found] ` <E1HSuLw-0005So-CU@fencepost.gnu.org>
  0 siblings, 1 reply; 13+ messages in thread
From: martin rudalics @ 2007-03-16 19:44 UTC (permalink / raw)
  To: emacs-devel

I fail to understand the following code in `Info-insert-dir':

     (let ((dirs (if Info-additional-directory-list
		    (append Info-directory-list
			    Info-additional-directory-list)
		  Info-directory-list))
       ...
       ;; Search the directory list for the directory file.
       (while dirs
           ....
	  (unless (cdr dirs)
	    (set (make-local-variable 'Info-dir-contents-directory)
		 (file-name-as-directory (car dirs))))
	  (setq dirs (cdr dirs))))

According to the doc-string of `Info-directory-list'

"the directory of Info files that come with Emacs
is put last (so that local Info files override standard ones)"

Apparently that's what the "unless ..." form relies upon to produce a
default-directory.  When `Info-additional-directory-list' is non-nil the
"append ..." form appends that list and the "unless ..." form will
return the last directory in `Info-additional-directory-list'.  If that
directory does not exist, the value of default-directory is nil.

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

end of thread, other threads:[~2007-03-23 18:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 19:44 Info-insert-dir martin rudalics
     [not found] ` <E1HSuLw-0005So-CU@fencepost.gnu.org>
     [not found]   ` <45FD35C4.7060207@gmx.at>
2007-03-19  5:15     ` Info-insert-dir Richard Stallman
2007-03-19  9:50       ` Info-insert-dir martin rudalics
2007-03-19 21:57         ` Info-insert-dir Richard Stallman
2007-03-20  9:56           ` Info-insert-dir martin rudalics
2007-03-21  0:42             ` Info-insert-dir Richard Stallman
2007-03-21  0:42             ` Info-insert-dir Richard Stallman
2007-03-21  7:38               ` Info-insert-dir martin rudalics
2007-03-22  5:01                 ` Info-insert-dir Richard Stallman
2007-03-22  7:19                   ` Info-insert-dir martin rudalics
2007-03-22 22:50                     ` Info-insert-dir Richard Stallman
2007-03-23  9:01                       ` Info-insert-dir martin rudalics
2007-03-23 18:00                         ` Info-insert-dir Richard Stallman

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.