comparison lisp/eshell/em-dirs.el @ 107517:ed16fdd2685a

Fix typos in docstrings. * image-dired.el (image-dired-display-thumbs): Fix typo in docstring. (image-dired-read-comment): Doc fix. * json.el (json-object-type, json-array-type, json-key-type, json-false) (json-null, json-read-number): * minibuffer.el (completion-in-region-functions): * calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks) (cal-tex-cursor-week): * emacs-lisp/trace.el (trace-function): * eshell/em-basic.el (eshell/printnl): * eshell/em-dirs.el (eshell-last-dir-ring, eshell-parse-drive-letter) (eshell-read-last-dir-ring, eshell-write-last-dir-ring): * obsolete/levents.el (allocate-event, event-key, event-object) (event-point, event-process, event-timestamp, event-to-character) (event-window, event-x, event-x-pixel, event-y, event-y-pixel): * textmodes/reftex-vars.el (reftex-index-macros-builtin) (reftex-section-levels, reftex-auto-recenter-toc, reftex-toc-mode-hook) (reftex-cite-punctuation, reftex-search-unrecursed-path-first) (reftex-highlight-selection): Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 22 Mar 2010 17:50:29 +0100
parents 1d1d5d9bd884
children f57f72bb4757 376148b31b5e
comparison
equal deleted inserted replaced
107516:61e4d637cc65 107517:ed16fdd2685a
176 (defvar eshell-dirstack nil 176 (defvar eshell-dirstack nil
177 "List of directories saved by pushd in the Eshell buffer. 177 "List of directories saved by pushd in the Eshell buffer.
178 Thus, this does not include the current directory.") 178 Thus, this does not include the current directory.")
179 179
180 (defvar eshell-last-dir-ring nil 180 (defvar eshell-last-dir-ring nil
181 "The last directory that eshell was in.") 181 "The last directory that Eshell was in.")
182 182
183 ;;; Functions: 183 ;;; Functions:
184 184
185 (defun eshell-dirs-initialize () 185 (defun eshell-dirs-initialize ()
186 "Initialize the builtin functions for Eshell." 186 "Initialize the builtin functions for Eshell."
265 (add-to-list 'eshell-current-modifiers 'expand-file-name) 265 (add-to-list 'eshell-current-modifiers 'expand-file-name)
266 (forward-char) 266 (forward-char)
267 (char-to-string (char-before)))) 267 (char-to-string (char-before))))
268 268
269 (defun eshell-parse-drive-letter () 269 (defun eshell-parse-drive-letter ()
270 "An argument beginning X:[^/] is a drive letter reference." 270 "An argument beginning with X:[^/] is a drive letter reference."
271 (when (and (not eshell-current-argument) 271 (when (and (not eshell-current-argument)
272 (looking-at "\\([A-Za-z]:\\)\\([^/\\\\]\\|\\'\\)")) 272 (looking-at "\\([A-Za-z]:\\)\\([^/\\\\]\\|\\'\\)"))
273 (goto-char (match-end 1)) 273 (goto-char (match-end 1))
274 (let* ((letter (match-string 1)) 274 (let* ((letter (match-string 1))
275 (regexp (concat "\\`" letter)) 275 (regexp (concat "\\`" letter))
515 (setq msg (concat msg (directory-file-name dir) " ")) 515 (setq msg (concat msg (directory-file-name dir) " "))
516 (setq ds (cdr ds)))) 516 (setq ds (cdr ds))))
517 msg))) 517 msg)))
518 518
519 (defun eshell-read-last-dir-ring () 519 (defun eshell-read-last-dir-ring ()
520 "Sets the buffer's `eshell-last-dir-ring' from a history file." 520 "Set the buffer's `eshell-last-dir-ring' from a history file."
521 (let ((file eshell-last-dir-ring-file-name)) 521 (let ((file eshell-last-dir-ring-file-name))
522 (cond 522 (cond
523 ((or (null file) 523 ((or (null file)
524 (equal file "") 524 (equal file "")
525 (not (file-readable-p file))) 525 (not (file-readable-p file)))
543 (equal (ring-ref ring 0) (eshell/pwd))) 543 (equal (ring-ref ring 0) (eshell/pwd)))
544 (ring-remove ring 0))) 544 (ring-remove ring 0)))
545 (setq eshell-last-dir-ring ring)))))) 545 (setq eshell-last-dir-ring ring))))))
546 546
547 (defun eshell-write-last-dir-ring () 547 (defun eshell-write-last-dir-ring ()
548 "Writes the buffer's `eshell-last-dir-ring' to a history file." 548 "Write the buffer's `eshell-last-dir-ring' to a history file."
549 (let ((file eshell-last-dir-ring-file-name)) 549 (let ((file eshell-last-dir-ring-file-name))
550 (cond 550 (cond
551 ((or (null file) 551 ((or (null file)
552 (equal file "") 552 (equal file "")
553 (null eshell-last-dir-ring) 553 (null eshell-last-dir-ring)