Mercurial > emacs
comparison lisp/dired-x.el @ 105170:f8ba8d6fd250
Fix typos.
* allout.el
* dired-aux.el
* dired-x.el
* epa-file.el
* ps-print.el
* shell.el
* vc-hooks.el
* vc-rcs.el
* vc-sccs.el
* vc.el
* view.el
* wdired.el
* emacs-lisp/authors.el
* net/dig.el
* net/socks.el
* net/zeroconf.el
* obsolete/vc-mcvs.el
* progmodes/gdb-mi.el
* progmodes/grep.el
* progmodes/idlw-help.el
* progmodes/idlw-shell.el
* progmodes/idlwave.el
* progmodes/inf-lisp.el
* textmodes/bibtex.el
* textmodes/ispell.el
* textmodes/reftex-toc.el
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 24 Sep 2009 01:37:14 +0000 |
parents | eb30601bacc5 |
children | bd2966850aac |
comparison
equal
deleted
inserted
replaced
105169:1d903e2f65af | 105170:f8ba8d6fd250 |
---|---|
206 "Control use of local-variables lists in Dired. | 206 "Control use of local-variables lists in Dired. |
207 The value can be t, nil or something else. | 207 The value can be t, nil or something else. |
208 A value of t means local-variables lists are obeyed; | 208 A value of t means local-variables lists are obeyed; |
209 nil means they are ignored; anything else means query. | 209 nil means they are ignored; anything else means query. |
210 | 210 |
211 This temporarily overrides the value of `enable-local-variables' when listing | 211 This temporarily overrides the value of `enable-local-variables' when |
212 a directory. See also `dired-local-variables-file'." | 212 listing a directory. See also `dired-local-variables-file'." |
213 :type 'boolean | 213 :type 'boolean |
214 :group 'dired-x) | 214 :group 'dired-x) |
215 | 215 |
216 (defcustom dired-guess-shell-gnutar (when (or (eq system-type 'gnu) | 216 (defcustom dired-guess-shell-gnutar (when (or (eq system-type 'gnu) |
217 (eq system-type 'gnu/linux)) | 217 (eq system-type 'gnu/linux)) |
551 against the non-directory part of the file name. Set it to nil if you | 551 against the non-directory part of the file name. Set it to nil if you |
552 need to match the entire file name.") | 552 need to match the entire file name.") |
553 | 553 |
554 ;; \017=^O for Omit - other packages can chose other control characters. | 554 ;; \017=^O for Omit - other packages can chose other control characters. |
555 (defvar dired-omit-marker-char ?\017 | 555 (defvar dired-omit-marker-char ?\017 |
556 "Temporary marker used by dired-omit. | 556 "Temporary marker used by Dired-Omit. |
557 Should never be used as marker by the user or other packages.") | 557 Should never be used as marker by the user or other packages.") |
558 | 558 |
559 (defun dired-omit-startup () | 559 (defun dired-omit-startup () |
560 (or (assq 'dired-omit-mode minor-mode-alist) | 560 (or (assq 'dired-omit-mode minor-mode-alist) |
561 (setq minor-mode-alist | 561 (setq minor-mode-alist |
1207 (if (equal val "") default val)))) | 1207 (if (equal val "") default val)))) |
1208 | 1208 |
1209 ;; REDEFINE. | 1209 ;; REDEFINE. |
1210 ;; Redefine dired-aux.el's version: | 1210 ;; Redefine dired-aux.el's version: |
1211 (defun dired-read-shell-command (prompt arg files) | 1211 (defun dired-read-shell-command (prompt arg files) |
1212 "Read a dired shell command prompting with PROMPT (using read-shell-command). | 1212 "Read a dired shell command prompting with PROMPT (using `read-shell-command'). |
1213 ARG is the prefix arg and may be used to indicate in the prompt which | 1213 ARG is the prefix arg and may be used to indicate in the prompt which |
1214 FILES are affected. | 1214 FILES are affected. |
1215 This is an extra function so that you can redefine it." | 1215 This is an extra function so that you can redefine it." |
1216 (minibuffer-with-setup-hook | 1216 (minibuffer-with-setup-hook |
1217 (lambda () | 1217 (lambda () |
1323 ;;; `dired-do-find-marked-files''s prefix argument NOSELECT. | 1323 ;;; `dired-do-find-marked-files''s prefix argument NOSELECT. |
1324 ;;; | 1324 ;;; |
1325 ;; * `dired-simultaneous-find-file' runs through FILE-LIST decrementing the | 1325 ;; * `dired-simultaneous-find-file' runs through FILE-LIST decrementing the |
1326 ;;; list each time. | 1326 ;;; list each time. |
1327 ;;; | 1327 ;;; |
1328 ;; * If NOSELECT is non-nil then just run `find-file-noselect' on each | 1328 ;; * If NOSELECT is non-nil then just run `find-file-noselect' on each |
1329 ;;; element of FILE-LIST. | 1329 ;;; element of FILE-LIST. |
1330 ;;; | 1330 ;;; |
1331 ;; * If NOSELECT is nil then calculate the `size' of the window for each file | 1331 ;; * If NOSELECT is nil then calculate the `size' of the window for each file |
1332 ;;; by dividing the `window-height' by length of FILE-LIST. Thus, `size' is | 1332 ;;; by dividing the `window-height' by length of FILE-LIST. Thus, `size' is |
1333 ;;; cognizant of the window-configuration. | 1333 ;;; cognizant of the window-configuration. |
1680 (defun dired-x-find-file-other-window (filename) | 1680 (defun dired-x-find-file-other-window (filename) |
1681 "Edit file FILENAME, in another window. | 1681 "Edit file FILENAME, in another window. |
1682 May create a new window, or reuse an existing one. | 1682 May create a new window, or reuse an existing one. |
1683 See the function `display-buffer'. | 1683 See the function `display-buffer'. |
1684 | 1684 |
1685 Identical to `find-file-other-window' except when called interactively, with a | 1685 Identical to `find-file-other-window' except when called interactively, with |
1686 prefix arg \(e.g., \\[universal-argument]\), in which case it guesses filename near point. | 1686 a prefix arg \(e.g., \\[universal-argument]\), in which case it guesses filename near point. |
1687 Useful for editing file mentioned in buffer you are viewing, | 1687 Useful for editing file mentioned in buffer you are viewing, |
1688 or to test if that file exists. Use minibuffer after snatching filename." | 1688 or to test if that file exists. Use minibuffer after snatching filename." |
1689 (interactive (list (read-filename-at-point "Find file: "))) | 1689 (interactive (list (read-filename-at-point "Find file: "))) |
1690 (find-file-other-window (expand-file-name filename))) | 1690 (find-file-other-window (expand-file-name filename))) |
1691 | 1691 |
1692 ;;; Internal functions. | 1692 ;;; Internal functions. |
1693 | 1693 |
1694 ;; Fixme: This should probably use `thing-at-point'. -- fx | 1694 ;; Fixme: This should probably use `thing-at-point'. -- fx |
1695 (defun dired-filename-at-point () | 1695 (defun dired-filename-at-point () |
1696 "Get the filename closest to point, but do not change position. | 1696 "Get the filename closest to point, but do not change position. |
1697 Has a preference for looking backward when not directly on a symbol. Not | 1697 Has a preference for looking backward when not directly on a symbol. |
1698 perfect - point must be in middle of or end of filename." | 1698 Not perfect - point must be in middle of or end of filename." |
1699 | 1699 |
1700 (let ((filename-chars "-.[:alnum:]_/:$+@") | 1700 (let ((filename-chars "-.[:alnum:]_/:$+@") |
1701 start end filename prefix) | 1701 start end filename prefix) |
1702 | 1702 |
1703 (save-excursion | 1703 (save-excursion |
1773 ) | 1773 ) |
1774 "List of variables to be appended to reports sent by `dired-x-submit-report'.") | 1774 "List of variables to be appended to reports sent by `dired-x-submit-report'.") |
1775 | 1775 |
1776 (defun dired-x-submit-report () | 1776 (defun dired-x-submit-report () |
1777 "Submit via `reporter.el' a bug report on program. | 1777 "Submit via `reporter.el' a bug report on program. |
1778 Send report on `dired-x-file' version `dired-x-version,' to | 1778 Send report on `dired-x-file' version `dired-x-version', to |
1779 `dired-x-maintainer' at address `dired-x-help-address' listing | 1779 `dired-x-maintainer' at address `dired-x-help-address' listing |
1780 variables `dired-x-variable-list' in the message." | 1780 variables `dired-x-variable-list' in the message." |
1781 (interactive) | 1781 (interactive) |
1782 | 1782 |
1783 (reporter-submit-bug-report | 1783 (reporter-submit-bug-report |