diff options
| author | Karoly Lorentey | 2004-01-02 04:37:46 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-02 04:37:46 +0000 |
| commit | eb9332fa2e41dbe54f5427b9383cb4028a6f926f (patch) | |
| tree | 4f05548846c10ed0642893c1495882d670e90e4c /lisp | |
| parent | fa971ac34de80905a91d2af15dd8712329dad273 (diff) | |
| parent | 31e0fbdd4308bde64849bbfa0327a2a77797b3e9 (diff) | |
| download | emacs-eb9332fa2e41dbe54f5427b9383cb4028a6f926f.tar.gz emacs-eb9332fa2e41dbe54f5427b9383cb4028a6f926f.zip | |
Merged in changes from CVS HEAD
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-10
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-11
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-12
Add section on button package to lisp reference manual
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-13
Minor tweaks to Buttons section in lispref/display.texi
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-14
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-33
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/bindings.el | 10 | ||||
| -rw-r--r-- | lisp/help-mode.el | 6 | ||||
| -rw-r--r-- | lisp/ido.el | 15 |
4 files changed, 40 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 97539c809ed..ed4f3a8433e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2003-12-31 John Paul Wallington <jpw@gnu.org> | ||
| 2 | |||
| 3 | * bindings.el (completion-ignored-extensions): Add .pfsl. | ||
| 4 | |||
| 5 | 2003-12-31 Kim F. Storm <storm@cua.dk> | ||
| 6 | |||
| 7 | * ido.el (ido-nonreadable-directory-p): New defun to check for | ||
| 8 | nonreadable directory without activating tramp (to avoid problems | ||
| 9 | with checking incomplete tramp paths. | ||
| 10 | (ido-set-current-directory, ido-file-internal) | ||
| 11 | (ido-file-name-all-completions1): Use it. | ||
| 12 | |||
| 13 | 2003-12-30 Luc Teirlinck <teirllm@auburn.edu> | ||
| 14 | |||
| 15 | * help-mode.el (help-xref-info-regexp): Make hyperlinks to Info | ||
| 16 | documentation if the anchor (or node) name is preceded by `info | ||
| 17 | anchor' or `Info anchor' in addition to earlier `info node' and | ||
| 18 | `Info node'. | ||
| 19 | (help-make-xrefs): Adapt to new value of `help-xref-info-regexp'. | ||
| 20 | |||
| 1 | 2003-12-30 Eli Zaretskii <eliz@elta.co.il> | 21 | 2003-12-30 Eli Zaretskii <eliz@elta.co.il> |
| 2 | 22 | ||
| 3 | * mail/rmail.el (rmail-convert-to-babyl-format): Fix off-by-one | 23 | * mail/rmail.el (rmail-convert-to-babyl-format): Fix off-by-one |
diff --git a/lisp/bindings.el b/lisp/bindings.el index ab5bb30699e..ed4da745b2d 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -258,14 +258,14 @@ buffer size, the line number and the column number.") | |||
| 258 | (defvar mode-line-modes nil | 258 | (defvar mode-line-modes nil |
| 259 | "Mode-line control for displaying major and minor modes.") | 259 | "Mode-line control for displaying major and minor modes.") |
| 260 | 260 | ||
| 261 | (defvar mode-line-major-mode-keymap | 261 | (defvar mode-line-major-mode-keymap |
| 262 | (let ((map (make-sparse-keymap))) | 262 | (let ((map (make-sparse-keymap))) |
| 263 | (define-key map [mode-line mouse-2] 'describe-mode) | 263 | (define-key map [mode-line mouse-2] 'describe-mode) |
| 264 | (define-key map [mode-line down-mouse-3] 'mode-line-mode-menu-1) | 264 | (define-key map [mode-line down-mouse-3] 'mode-line-mode-menu-1) |
| 265 | map) "\ | 265 | map) "\ |
| 266 | Keymap to display on major mode.") | 266 | Keymap to display on major mode.") |
| 267 | 267 | ||
| 268 | (defvar mode-line-minor-mode-keymap | 268 | (defvar mode-line-minor-mode-keymap |
| 269 | (let ((map (make-sparse-keymap))) | 269 | (let ((map (make-sparse-keymap))) |
| 270 | (define-key map [mode-line mouse-2] 'mode-line-minor-mode-help) | 270 | (define-key map [mode-line mouse-2] 'mode-line-minor-mode-help) |
| 271 | (define-key map [mode-line down-mouse-3] 'mode-line-mode-menu-1) | 271 | (define-key map [mode-line down-mouse-3] 'mode-line-mode-menu-1) |
| @@ -314,7 +314,7 @@ Keymap to display on minor modes.") | |||
| 314 | 314 | ||
| 315 | (setq-default mode-line-position | 315 | (setq-default mode-line-position |
| 316 | `((-3 ,(propertize "%p" 'help-echo help-echo)) | 316 | `((-3 ,(propertize "%p" 'help-echo help-echo)) |
| 317 | (size-indication-mode | 317 | (size-indication-mode |
| 318 | (8 ,(propertize " of %I" 'help-echo help-echo))) | 318 | (8 ,(propertize " of %I" 'help-echo help-echo))) |
| 319 | (line-number-mode | 319 | (line-number-mode |
| 320 | ((column-number-mode | 320 | ((column-number-mode |
| @@ -511,8 +511,8 @@ is okay. See `mode-line-format'.") | |||
| 511 | ".fas" ".lib" ".mem" | 511 | ".fas" ".lib" ".mem" |
| 512 | ;; CMUCL | 512 | ;; CMUCL |
| 513 | ".x86f" ".sparcf" | 513 | ".x86f" ".sparcf" |
| 514 | ;; Other CL implementations (Allegro, LispWorks) | 514 | ;; Other CL implementations (Allegro, LispWorks, OpenMCL) |
| 515 | ".fasl" ".ufsl" ".fsl" ".dxl" | 515 | ".fasl" ".ufsl" ".fsl" ".dxl" ".pfsl" |
| 516 | ;; Libtool | 516 | ;; Libtool |
| 517 | ".lo" ".la" | 517 | ".lo" ".la" |
| 518 | ;; Gettext | 518 | ;; Gettext |
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 087e4f159df..032509b9614 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -231,7 +231,7 @@ when help commands related to multilingual environment (e.g., | |||
| 231 | 231 | ||
| 232 | 232 | ||
| 233 | (defconst help-xref-info-regexp | 233 | (defconst help-xref-info-regexp |
| 234 | (purecopy "\\<[Ii]nfo[ \t\n]+node[ \t\n]+`\\([^']+\\)'") | 234 | (purecopy "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`\\([^']+\\)'") |
| 235 | "Regexp matching doc string references to an Info node.") | 235 | "Regexp matching doc string references to an Info node.") |
| 236 | 236 | ||
| 237 | ;;;###autoload | 237 | ;;;###autoload |
| @@ -310,11 +310,11 @@ that." | |||
| 310 | ;; Info references | 310 | ;; Info references |
| 311 | (save-excursion | 311 | (save-excursion |
| 312 | (while (re-search-forward help-xref-info-regexp nil t) | 312 | (while (re-search-forward help-xref-info-regexp nil t) |
| 313 | (let ((data (match-string 1))) | 313 | (let ((data (match-string 2))) |
| 314 | (save-match-data | 314 | (save-match-data |
| 315 | (unless (string-match "^([^)]+)" data) | 315 | (unless (string-match "^([^)]+)" data) |
| 316 | (setq data (concat "(emacs)" data)))) | 316 | (setq data (concat "(emacs)" data)))) |
| 317 | (help-xref-button 1 'help-info data)))) | 317 | (help-xref-button 2 'help-info data)))) |
| 318 | ;; Mule related keywords. Do this before trying | 318 | ;; Mule related keywords. Do this before trying |
| 319 | ;; `help-xref-symbol-regexp' because some of Mule | 319 | ;; `help-xref-symbol-regexp' because some of Mule |
| 320 | ;; keywords have variable or function definitions. | 320 | ;; keywords have variable or function definitions. |
diff --git a/lisp/ido.el b/lisp/ido.el index 165142ea222..4593c55dff7 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1397,6 +1397,15 @@ This function also adds a hook to the minibuffer." | |||
| 1397 | (substring s 0 l) | 1397 | (substring s 0 l) |
| 1398 | s))) | 1398 | s))) |
| 1399 | 1399 | ||
| 1400 | (defun ido-nonreadable-directory-p (dir) | ||
| 1401 | ;; Return t if dir is a directory, but not readable | ||
| 1402 | ;; Do not check for non-readable directories via tramp, as this causes a premature | ||
| 1403 | ;; connect on incomplete tramp paths (after entring just method:). | ||
| 1404 | (let ((ido-enable-tramp-completion nil)) | ||
| 1405 | (and (ido-final-slash dir) | ||
| 1406 | (file-directory-p dir) | ||
| 1407 | (not (file-readable-p dir))))) | ||
| 1408 | |||
| 1400 | (defun ido-set-current-directory (dir &optional subdir no-merge) | 1409 | (defun ido-set-current-directory (dir &optional subdir no-merge) |
| 1401 | ;; Set ido's current directory to DIR or DIR/SUBDIR | 1410 | ;; Set ido's current directory to DIR or DIR/SUBDIR |
| 1402 | (setq dir (ido-final-slash dir t)) | 1411 | (setq dir (ido-final-slash dir t)) |
| @@ -1410,7 +1419,7 @@ This function also adds a hook to the minibuffer." | |||
| 1410 | (setq ido-current-directory dir) | 1419 | (setq ido-current-directory dir) |
| 1411 | (if (get-buffer ido-completion-buffer) | 1420 | (if (get-buffer ido-completion-buffer) |
| 1412 | (kill-buffer ido-completion-buffer)) | 1421 | (kill-buffer ido-completion-buffer)) |
| 1413 | (setq ido-directory-nonreadable (not (file-readable-p dir))) | 1422 | (setq ido-directory-nonreadable (ido-nonreadable-directory-p dir)) |
| 1414 | t)) | 1423 | t)) |
| 1415 | 1424 | ||
| 1416 | (defun ido-set-current-home (&optional dir) | 1425 | (defun ido-set-current-home (&optional dir) |
| @@ -1867,7 +1876,7 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1867 | (unless item | 1876 | (unless item |
| 1868 | (setq item 'file)) | 1877 | (setq item 'file)) |
| 1869 | (let* ((ido-current-directory (ido-expand-directory default)) | 1878 | (let* ((ido-current-directory (ido-expand-directory default)) |
| 1870 | (ido-directory-nonreadable (not (file-readable-p ido-current-directory))) | 1879 | (ido-directory-nonreadable (ido-nonreadable-directory-p ido-current-directory)) |
| 1871 | filename) | 1880 | filename) |
| 1872 | 1881 | ||
| 1873 | (cond | 1882 | (cond |
| @@ -2706,7 +2715,7 @@ for first matching file." | |||
| 2706 | 2715 | ||
| 2707 | (defun ido-file-name-all-completions1 (dir) | 2716 | (defun ido-file-name-all-completions1 (dir) |
| 2708 | (cond | 2717 | (cond |
| 2709 | ((not (file-readable-p dir)) '()) | 2718 | ((ido-nonreadable-directory-p dir) '()) |
| 2710 | ((and ido-enable-tramp-completion | 2719 | ((and ido-enable-tramp-completion |
| 2711 | (string-match "\\`/\\([^/:]+:\\([^/:@]+@\\)?\\)\\'" dir)) | 2720 | (string-match "\\`/\\([^/:]+:\\([^/:@]+@\\)?\\)\\'" dir)) |
| 2712 | 2721 | ||