diff options
| author | Karoly Lorentey | 2004-06-03 16:45:20 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-06-03 16:45:20 +0000 |
| commit | bf2d7b586bf6add7527739fcbdc007e921259397 (patch) | |
| tree | acf06ea1cb8dd626d6a1e746f0306e315838a068 /lisp | |
| parent | 190a56d6e02f134591a9d8861b8c4aa55bbec79b (diff) | |
| parent | 52deb19f2472448f319e96b627bc8d84d86134fe (diff) | |
| download | emacs-bf2d7b586bf6add7527739fcbdc007e921259397.tar.gz emacs-bf2d7b586bf6add7527739fcbdc007e921259397.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-357
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-358
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-359
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-360
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-361
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-362
Support " [...]" style defaults in minibuffer-electric-default-mode
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-363
(read-number): Use canonical format for default in prompt.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-364
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-365
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-184
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 86 | ||||
| -rw-r--r-- | lisp/comint.el | 23 | ||||
| -rw-r--r-- | lisp/desktop.el | 21 | ||||
| -rw-r--r-- | lisp/faces.el | 2 | ||||
| -rw-r--r-- | lisp/frame.el | 1 | ||||
| -rw-r--r-- | lisp/ibuf-ext.el | 69 | ||||
| -rw-r--r-- | lisp/ibuffer.el | 9 | ||||
| -rw-r--r-- | lisp/international/mule.el | 16 | ||||
| -rw-r--r-- | lisp/minibuf-eldef.el | 6 | ||||
| -rw-r--r-- | lisp/subr.el | 18 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 23 | ||||
| -rw-r--r-- | lisp/vc-arch.el | 2 |
12 files changed, 191 insertions, 85 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bf08d2643f3..83f8a0e1cf0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,51 @@ | |||
| 1 | 2004-06-03 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * subr.el (read-number): Use canonical format for default in prompt. | ||
| 4 | |||
| 5 | * minibuf-eldef.el (minibuffer-default-in-prompt-regexps): Add | ||
| 6 | regexp for " [...]" style defaults. | ||
| 7 | |||
| 8 | 2004-06-02 Romain Francoise <romain@orebokech.com> | ||
| 9 | |||
| 10 | * ibuf-ext.el (ibuffer-jump-to-buffer): Add support for filter | ||
| 11 | groups: if the user asks for a hidden buffer, open the | ||
| 12 | corresponding filter group to expose it. | ||
| 13 | |||
| 14 | * ibuffer.el (ibuffer-mode-map): Add key binding `M-g' to | ||
| 15 | `ibuffer-jump-to-buffer'. | ||
| 16 | (ibuffer-jump-offer-only-visible-buffers): New user option. | ||
| 17 | |||
| 18 | 2004-06-02 Juanma Barranquero <lektu@terra.es> | ||
| 19 | |||
| 20 | * faces.el (frame-update-faces): Add empty docstring so the one | ||
| 21 | for `ignore' doesn't show through. | ||
| 22 | |||
| 23 | * subr.el (process-kill-without-query): Remove spurious "\n" on | ||
| 24 | obsolescence string. | ||
| 25 | (focus-frame, unfocus-frame): Add obsolescence declaration and | ||
| 26 | empty docstring. | ||
| 27 | |||
| 28 | * international/mule.el (register-char-codings): Make alias for | ||
| 29 | `ignore'. Move docstring to obsolescence info and remove | ||
| 30 | redundancy. | ||
| 31 | |||
| 32 | 2004-06-02 Kim F. Storm <storm@cua.dk> | ||
| 33 | |||
| 34 | * frame.el (blink-cursor-start): Turn cursor off initially so blink | ||
| 35 | starts after blink-cursor-delay rather than 2*blink-cursor-delay. | ||
| 36 | |||
| 37 | 2004-05-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 38 | |||
| 39 | * vc-arch.el (vc-arch-state): Don't assume the file exists. | ||
| 40 | |||
| 41 | 2004-05-31 Lars Hansen <larsh@math.ku.dk> | ||
| 42 | |||
| 43 | * desktop.el (desktop-save): Don't save minor modes without a | ||
| 44 | known mode initialization function. | ||
| 45 | |||
| 1 | 2004-05-30 Luc Teirlinck <teirllm@auburn.edu> | 46 | 2004-05-30 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 47 | ||
| 3 | * replace.el (query-replace-interactive): Convert defvar into | 48 | * replace.el (query-replace-interactive): Convert defvar -> defcustom. |
| 4 | defcustom. | ||
| 5 | 49 | ||
| 6 | * autorevert.el: Update `Commentary' section. | 50 | * autorevert.el: Update `Commentary' section. |
| 7 | 51 | ||
| @@ -17,8 +61,8 @@ | |||
| 17 | Sync with Tramp. | 61 | Sync with Tramp. |
| 18 | 62 | ||
| 19 | * net/tramp.el (tramp-let-maybe): Reverse args of `get'. | 63 | * net/tramp.el (tramp-let-maybe): Reverse args of `get'. |
| 20 | (tramp-let-maybe): Move to an earlier spot in the file. Patch by | 64 | (tramp-let-maybe): Move to an earlier spot in the file. |
| 21 | Andreas Schwab. | 65 | Patch by Andreas Schwab. |
| 22 | 66 | ||
| 23 | 2004-05-30 Andreas Schwab <schwab@suse.de> | 67 | 2004-05-30 Andreas Schwab <schwab@suse.de> |
| 24 | 68 | ||
| @@ -47,21 +91,20 @@ | |||
| 47 | 91 | ||
| 48 | * ange-ftp.el (ange-ftp-file-remote-p): New defun. | 92 | * ange-ftp.el (ange-ftp-file-remote-p): New defun. |
| 49 | (top): Remove setting of `file-remote-p' property for | 93 | (top): Remove setting of `file-remote-p' property for |
| 50 | `ange-ftp-hook-function'. Add `ange-ftp' property to | 94 | `ange-ftp-hook-function'. Add `ange-ftp' property to `file-remote-p'. |
| 51 | `file-remote-p'. | ||
| 52 | 95 | ||
| 53 | 2004-05-29 Michael Albinus <michael.albinus@gmx.de> | 96 | 2004-05-29 Michael Albinus <michael.albinus@gmx.de> |
| 54 | 97 | ||
| 55 | Version 2.0.41 of Tramp released. | 98 | Version 2.0.41 of Tramp released. |
| 56 | 99 | ||
| 57 | * tramp.el (tramp-wait-for-regexp, tramp-wait-for-output): Throw | 100 | * tramp.el (tramp-wait-for-regexp, tramp-wait-for-output): |
| 58 | away if process has died. Reported by Luc Teirlinck | 101 | Throw away if process has died. |
| 59 | <teirllm@dms.auburn.edu>. | 102 | Reported by Luc Teirlinck <teirllm@dms.auburn.edu>. |
| 60 | (tramp-out-of-band-prompt-regexp): Renamed to | 103 | (tramp-out-of-band-prompt-regexp): Rename to |
| 61 | `tramp-process-alive-regexp', because its usage is widen. | 104 | `tramp-process-alive-regexp', because its usage is widen. |
| 62 | (tramp-actions-copy-out-of-band): Apply it. | 105 | (tramp-actions-copy-out-of-band): Apply it. |
| 63 | (tramp-actions-before-shell, tramp-multi-actions): Add | 106 | (tramp-actions-before-shell, tramp-multi-actions): |
| 64 | `tramp-action-process-alive' action. | 107 | Add `tramp-action-process-alive' action. |
| 65 | (tramp-action-process-alive): New defun. | 108 | (tramp-action-process-alive): New defun. |
| 66 | (tramp-file-name-handler-alist, tramp-file-name-for-operation): | 109 | (tramp-file-name-handler-alist, tramp-file-name-for-operation): |
| 67 | Add entry for `file-remote-p'. | 110 | Add entry for `file-remote-p'. |
| @@ -73,8 +116,8 @@ | |||
| 73 | `file-remote-p'. | 116 | `file-remote-p'. |
| 74 | 117 | ||
| 75 | * tramp-uu.el (tramp-uuencode-region): Padding characters aren't | 118 | * tramp-uu.el (tramp-uuencode-region): Padding characters aren't |
| 76 | counted for (last) line. Reported by Aaron Ucko | 119 | counted for (last) line. [They should or they shouldn't? --Stef] |
| 77 | <ucko@ncbi.nlm.nih.gov>. | 120 | Reported by Aaron Ucko <ucko@ncbi.nlm.nih.gov>. |
| 78 | 121 | ||
| 79 | 2004-05-29 Kai Grossjohann <kai.grossjohann@gmx.net> | 122 | 2004-05-29 Kai Grossjohann <kai.grossjohann@gmx.net> |
| 80 | 123 | ||
| @@ -97,8 +140,8 @@ | |||
| 97 | filenames starting with "/:" -- those are reserved for | 140 | filenames starting with "/:" -- those are reserved for |
| 98 | file-name-non-special. | 141 | file-name-non-special. |
| 99 | 142 | ||
| 100 | * tramp-smb.el (tramp-smb-open-connection): Use | 143 | * tramp-smb.el (tramp-smb-open-connection): |
| 101 | tramp-set-process-query-on-exit-flag compat function. | 144 | Use tramp-set-process-query-on-exit-flag compat function. |
| 102 | 145 | ||
| 103 | 2004-05-29 Richard M. Stallman <rms@gnu.org> | 146 | 2004-05-29 Richard M. Stallman <rms@gnu.org> |
| 104 | 147 | ||
| @@ -108,7 +151,7 @@ | |||
| 108 | (eval-last-sexp-print-value): Print char equivalent regardless | 151 | (eval-last-sexp-print-value): Print char equivalent regardless |
| 109 | of standard-output value. | 152 | of standard-output value. |
| 110 | 153 | ||
| 111 | * thumbs.el (thumbs-subst-char-in-string): Deleted. | 154 | * thumbs.el (thumbs-subst-char-in-string): Delete. |
| 112 | (thumbs-thumbname): Use subst-char-in-string. | 155 | (thumbs-thumbname): Use subst-char-in-string. |
| 113 | (thumbs-resize-image): Use condition-case, not ignore-errors. | 156 | (thumbs-resize-image): Use condition-case, not ignore-errors. |
| 114 | (thumbs-kill-buffer): Likewise. | 157 | (thumbs-kill-buffer): Likewise. |
| @@ -217,8 +260,10 @@ | |||
| 217 | 2004-05-28 Juanma Barranquero <lektu@terra.es> | 260 | 2004-05-28 Juanma Barranquero <lektu@terra.es> |
| 218 | 261 | ||
| 219 | * cus-edit.el (customize-face, customize-face-other-window) | 262 | * cus-edit.el (customize-face, customize-face-other-window) |
| 220 | (custom-face-edit-delete): Make arguments match their use in docstring. | 263 | (custom-face-edit-delete): Make arguments match their use in |
| 221 | (custom-unloaded-symbol-p, custom-unloaded-widget-p): Docstring typo. | 264 | docstring. |
| 265 | (custom-unloaded-symbol-p, custom-unloaded-widget-p): Fix typo in | ||
| 266 | docstring. | ||
| 222 | 267 | ||
| 223 | * cvs-status.el (cvs-tree-merge, cvs-tags->tree): Use `butlast', | 268 | * cvs-status.el (cvs-tree-merge, cvs-tags->tree): Use `butlast', |
| 224 | not `cvs-butlast'. | 269 | not `cvs-butlast'. |
| @@ -693,7 +738,8 @@ | |||
| 693 | 738 | ||
| 694 | 2004-05-11 Juanma Barranquero <lektu@terra.es> | 739 | 2004-05-11 Juanma Barranquero <lektu@terra.es> |
| 695 | 740 | ||
| 696 | * custom.el (custom-initialize-default, defcustom): Typo in docstring. | 741 | * custom.el (custom-initialize-default, defcustom): |
| 742 | Fix typo in docstring. | ||
| 697 | 743 | ||
| 698 | * files.el (set-visited-file-name, file-expand-wildcards): | 744 | * files.el (set-visited-file-name, file-expand-wildcards): |
| 699 | Fix docstring. | 745 | Fix docstring. |
diff --git a/lisp/comint.el b/lisp/comint.el index c5e903fc58f..12d8e1fcbb7 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1182,7 +1182,7 @@ start of the text to scan for history references, rather | |||
| 1182 | than the logical beginning of line." | 1182 | than the logical beginning of line." |
| 1183 | (save-excursion | 1183 | (save-excursion |
| 1184 | (let ((toend (- (line-end-position) (point))) | 1184 | (let ((toend (- (line-end-position) (point))) |
| 1185 | (start (comint-line-beginning-position))) | 1185 | (start (or start (comint-line-beginning-position)))) |
| 1186 | (goto-char start) | 1186 | (goto-char start) |
| 1187 | (while (progn | 1187 | (while (progn |
| 1188 | (skip-chars-forward "^!^" (- (line-end-position) toend)) | 1188 | (skip-chars-forward "^!^" (- (line-end-position) toend)) |
| @@ -1482,7 +1482,8 @@ Similarly for Soar, Scheme, etc." | |||
| 1482 | (concat input "\n"))) | 1482 | (concat input "\n"))) |
| 1483 | 1483 | ||
| 1484 | (let ((beg (marker-position pmark)) | 1484 | (let ((beg (marker-position pmark)) |
| 1485 | (end (if no-newline (point) (1- (point))))) | 1485 | (end (if no-newline (point) (1- (point)))) |
| 1486 | (inhibit-modification-hooks t)) | ||
| 1486 | (when (> end beg) | 1487 | (when (> end beg) |
| 1487 | ;; Set text-properties for the input field | 1488 | ;; Set text-properties for the input field |
| 1488 | (add-text-properties | 1489 | (add-text-properties |
| @@ -1578,7 +1579,8 @@ See `comint-carriage-motion' for details.") | |||
| 1578 | freeze its attributes in place, even when more input comes a long | 1579 | freeze its attributes in place, even when more input comes a long |
| 1579 | and moves the prompt overlay." | 1580 | and moves the prompt overlay." |
| 1580 | (when comint-last-prompt-overlay | 1581 | (when comint-last-prompt-overlay |
| 1581 | (let ((inhibit-read-only t)) | 1582 | (let ((inhibit-read-only t) |
| 1583 | (inhibit-modification-hooks t)) | ||
| 1582 | (add-text-properties (overlay-start comint-last-prompt-overlay) | 1584 | (add-text-properties (overlay-start comint-last-prompt-overlay) |
| 1583 | (overlay-end comint-last-prompt-overlay) | 1585 | (overlay-end comint-last-prompt-overlay) |
| 1584 | (overlay-properties comint-last-prompt-overlay))))) | 1586 | (overlay-properties comint-last-prompt-overlay))))) |
| @@ -1709,7 +1711,8 @@ Make backspaces delete the previous character." | |||
| 1709 | (goto-char (process-mark process)) ; in case a filter moved it | 1711 | (goto-char (process-mark process)) ; in case a filter moved it |
| 1710 | 1712 | ||
| 1711 | (unless comint-use-prompt-regexp-instead-of-fields | 1713 | (unless comint-use-prompt-regexp-instead-of-fields |
| 1712 | (let ((inhibit-read-only t)) | 1714 | (let ((inhibit-read-only t) |
| 1715 | (inhibit-modification-hooks t)) | ||
| 1713 | (add-text-properties comint-last-output-start (point) | 1716 | (add-text-properties comint-last-output-start (point) |
| 1714 | '(rear-nonsticky t | 1717 | '(rear-nonsticky t |
| 1715 | field output | 1718 | field output |
| @@ -1718,7 +1721,8 @@ Make backspaces delete the previous character." | |||
| 1718 | ;; Highlight the prompt, where we define `prompt' to mean | 1721 | ;; Highlight the prompt, where we define `prompt' to mean |
| 1719 | ;; the most recent output that doesn't end with a newline. | 1722 | ;; the most recent output that doesn't end with a newline. |
| 1720 | (let ((prompt-start (save-excursion (forward-line 0) (point))) | 1723 | (let ((prompt-start (save-excursion (forward-line 0) (point))) |
| 1721 | (inhibit-read-only t)) | 1724 | (inhibit-read-only t) |
| 1725 | (inhibit-modification-hooks t)) | ||
| 1722 | (when comint-prompt-read-only | 1726 | (when comint-prompt-read-only |
| 1723 | (or (= (point-min) prompt-start) | 1727 | (or (= (point-min) prompt-start) |
| 1724 | (get-text-property (1- prompt-start) 'read-only) | 1728 | (get-text-property (1- prompt-start) 'read-only) |
| @@ -2347,7 +2351,8 @@ read-only property of `fence', unless it already is read-only. | |||
| 2347 | If the character after point does not have a front-sticky | 2351 | If the character after point does not have a front-sticky |
| 2348 | read-only property, any read-only property of `fence' on the | 2352 | read-only property, any read-only property of `fence' on the |
| 2349 | preceding newline is removed." | 2353 | preceding newline is removed." |
| 2350 | (let* ((pt (point)) (lst (get-text-property pt 'front-sticky))) | 2354 | (let* ((pt (point)) (lst (get-text-property pt 'front-sticky)) |
| 2355 | (inhibit-modification-hooks t)) | ||
| 2351 | (and (bolp) | 2356 | (and (bolp) |
| 2352 | (not (bobp)) | 2357 | (not (bobp)) |
| 2353 | (if (and (get-text-property pt 'read-only) | 2358 | (if (and (get-text-property pt 'read-only) |
| @@ -2966,10 +2971,8 @@ Typing SPC flushes the help buffer." | |||
| 2966 | 2971 | ||
| 2967 | ;; Read the next key, to process SPC. | 2972 | ;; Read the next key, to process SPC. |
| 2968 | (let (key first) | 2973 | (let (key first) |
| 2969 | (if (save-excursion | 2974 | (if (with-current-buffer (get-buffer "*Completions*") |
| 2970 | (set-buffer (get-buffer "*Completions*")) | 2975 | (set (make-local-variable 'comint-displayed-dynamic-completions) |
| 2971 | (set (make-local-variable | ||
| 2972 | 'comint-displayed-dynamic-completions) | ||
| 2973 | completions) | 2976 | completions) |
| 2974 | (setq key (read-key-sequence nil) | 2977 | (setq key (read-key-sequence nil) |
| 2975 | first (aref key 0)) | 2978 | first (aref key 0)) |
diff --git a/lisp/desktop.el b/lisp/desktop.el index a21d132e03b..3888262f02f 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -326,7 +326,7 @@ NAME is the name of the buffer-local variable indicating that the minor | |||
| 326 | mode is active. RESTORE-FUNCTION is the function to activate the minor mode. | 326 | mode is active. RESTORE-FUNCTION is the function to activate the minor mode. |
| 327 | called. RESTORE-FUNCTION nil means don't try to restore the minor mode. | 327 | called. RESTORE-FUNCTION nil means don't try to restore the minor mode. |
| 328 | Only minor modes for which the name of the buffer-local variable | 328 | Only minor modes for which the name of the buffer-local variable |
| 329 | and the name of the minor mode function are different have to added to | 329 | and the name of the minor mode function are different have to be added to |
| 330 | this table." | 330 | this table." |
| 331 | :type 'sexp | 331 | :type 'sexp |
| 332 | :group 'desktop) | 332 | :group 'desktop) |
| @@ -589,16 +589,17 @@ See also `desktop-base-file-name'." | |||
| 589 | major-mode | 589 | major-mode |
| 590 | ;; minor modes | 590 | ;; minor modes |
| 591 | (let (ret) | 591 | (let (ret) |
| 592 | (mapcar | 592 | (mapc |
| 593 | #'(lambda (mim) | 593 | #'(lambda (minor-mode) |
| 594 | (and | 594 | (and |
| 595 | (boundp mim) | 595 | (boundp minor-mode) |
| 596 | (symbol-value mim) | 596 | (symbol-value minor-mode) |
| 597 | (setq ret | 597 | (let ((special (assq minor-mode desktop-minor-mode-table))) |
| 598 | (cons | 598 | (when (or special (functionp minor-mode)) |
| 599 | (let ((special (assq mim desktop-minor-mode-table))) | 599 | (setq ret |
| 600 | (if special (cadr special) mim)) | 600 | (cons |
| 601 | ret)))) | 601 | (if special (cadr special) minor-mode) |
| 602 | ret)))))) | ||
| 602 | (mapcar #'car minor-mode-alist)) | 603 | (mapcar #'car minor-mode-alist)) |
| 603 | ret) | 604 | ret) |
| 604 | (point) | 605 | (point) |
diff --git a/lisp/faces.el b/lisp/faces.el index 06b5ec3fc97..721c2fa3631 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1809,7 +1809,7 @@ created." | |||
| 1809 | 1809 | ||
| 1810 | ;; Update a frame's faces when we change its default font. | 1810 | ;; Update a frame's faces when we change its default font. |
| 1811 | 1811 | ||
| 1812 | (defalias 'frame-update-faces 'ignore) | 1812 | (defalias 'frame-update-faces 'ignore "") |
| 1813 | (make-obsolete 'frame-update-faces "no longer necessary." "21.1") | 1813 | (make-obsolete 'frame-update-faces "no longer necessary." "21.1") |
| 1814 | 1814 | ||
| 1815 | ;; Update the colors of FACE, after FRAME's own colors have been | 1815 | ;; Update the colors of FACE, after FRAME's own colors have been |
diff --git a/lisp/frame.el b/lisp/frame.el index b02660dff3b..585d78cdc13 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1350,6 +1350,7 @@ if appropriate. It also arranges to cancel that timer when the next | |||
| 1350 | command starts, by installing a pre-command hook." | 1350 | command starts, by installing a pre-command hook." |
| 1351 | (when (null blink-cursor-timer) | 1351 | (when (null blink-cursor-timer) |
| 1352 | (add-hook 'pre-command-hook 'blink-cursor-end) | 1352 | (add-hook 'pre-command-hook 'blink-cursor-end) |
| 1353 | (internal-show-cursor nil nil) | ||
| 1353 | (setq blink-cursor-timer | 1354 | (setq blink-cursor-timer |
| 1354 | (run-with-timer blink-cursor-interval blink-cursor-interval | 1355 | (run-with-timer blink-cursor-interval blink-cursor-interval |
| 1355 | 'blink-cursor-timer-function)))) | 1356 | 'blink-cursor-timer-function)))) |
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 9492d5565f6..96678d2bc9a 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ibuf-ext.el --- extensions for ibuffer | 1 | ;;; ibuf-ext.el --- extensions for ibuffer |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Colin Walters <walters@verbum.org> | 5 | ;; Author: Colin Walters <walters@verbum.org> |
| 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> | 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> |
| @@ -1224,19 +1224,62 @@ to move by. The default is `ibuffer-marked-char'." | |||
| 1224 | 1224 | ||
| 1225 | ;;;###autoload | 1225 | ;;;###autoload |
| 1226 | (defun ibuffer-jump-to-buffer (name) | 1226 | (defun ibuffer-jump-to-buffer (name) |
| 1227 | "Move point to the buffer whose name is NAME." | 1227 | "Move point to the buffer whose name is NAME. |
| 1228 | |||
| 1229 | If called interactively, prompt for a buffer name and go to the | ||
| 1230 | corresponding line in the Ibuffer buffer. If said buffer is in a | ||
| 1231 | hidden group filter, open it. | ||
| 1232 | |||
| 1233 | If `ibuffer-jump-offer-only-visible-buffers' is non-nil, only offer | ||
| 1234 | visible buffers in the completion list. Calling the command with | ||
| 1235 | a prefix argument reverses the meaning of that variable." | ||
| 1228 | (interactive (list nil)) | 1236 | (interactive (list nil)) |
| 1229 | (let ((table (mapcar #'(lambda (x) | 1237 | (let ((only-visible ibuffer-jump-offer-only-visible-buffers)) |
| 1230 | (cons (buffer-name (car x)) | 1238 | (when current-prefix-arg |
| 1231 | (caddr x))) | 1239 | (setq only-visible (not only-visible))) |
| 1232 | (ibuffer-current-state-list t)))) | 1240 | (if only-visible |
| 1233 | (when (null table) | 1241 | (let ((table (mapcar #'(lambda (x) |
| 1234 | (error "No buffers!")) | 1242 | (buffer-name (car x))) |
| 1235 | (when (interactive-p) | 1243 | (ibuffer-current-state-list)))) |
| 1236 | (setq name (completing-read "Jump to buffer: " table nil t))) | 1244 | (when (null table) |
| 1237 | (ibuffer-aif (assoc name table) | 1245 | (error "No buffers!")) |
| 1238 | (goto-char (cdr it)) | 1246 | (when (interactive-p) |
| 1239 | (error "No buffer with name %s" name)))) | 1247 | (setq name (completing-read "Jump to buffer: " |
| 1248 | table nil t)))) | ||
| 1249 | (when (interactive-p) | ||
| 1250 | (setq name (read-buffer "Jump to buffer: " nil t)))) | ||
| 1251 | (when (not (string= "" name)) | ||
| 1252 | (let (buf-point) | ||
| 1253 | ;; Blindly search for our buffer: it is very likely that it is | ||
| 1254 | ;; not in a hidden filter group. | ||
| 1255 | (ibuffer-map-lines #'(lambda (buf marks) | ||
| 1256 | (when (string= (buffer-name buf) name) | ||
| 1257 | (setq buf-point (point)) | ||
| 1258 | nil)) | ||
| 1259 | t nil) | ||
| 1260 | (when (and | ||
| 1261 | (null buf-point) | ||
| 1262 | (not (null ibuffer-hidden-filter-groups))) | ||
| 1263 | ;; We did not find our buffer. It must be in a hidden filter | ||
| 1264 | ;; group, so go through all hidden filter groups to find it. | ||
| 1265 | (catch 'found | ||
| 1266 | (dolist (group ibuffer-hidden-filter-groups) | ||
| 1267 | (ibuffer-jump-to-filter-group group) | ||
| 1268 | (ibuffer-toggle-filter-group) | ||
| 1269 | (ibuffer-map-lines #'(lambda (buf marks) | ||
| 1270 | (when (string= (buffer-name buf) name) | ||
| 1271 | (setq buf-point (point)) | ||
| 1272 | nil)) | ||
| 1273 | t group) | ||
| 1274 | (if buf-point | ||
| 1275 | (throw 'found nil) | ||
| 1276 | (ibuffer-toggle-filter-group))))) | ||
| 1277 | (if (null buf-point) | ||
| 1278 | ;; Still not found even though we expanded all hidden filter | ||
| 1279 | ;; groups: that must be because it's hidden by predicate: | ||
| 1280 | ;; we won't bother trying to display it. | ||
| 1281 | (error "No buffer with name %s" name) | ||
| 1282 | (goto-char buf-point)))))) | ||
| 1240 | 1283 | ||
| 1241 | ;;;###autoload | 1284 | ;;;###autoload |
| 1242 | (defun ibuffer-diff-with-file () | 1285 | (defun ibuffer-diff-with-file () |
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index ab8290cfae8..fef9b7f811d 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ibuffer.el --- operate on buffers like dired | 1 | ;;; ibuffer.el --- operate on buffers like dired |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Colin Walters <walters@verbum.org> | 5 | ;; Author: Colin Walters <walters@verbum.org> |
| 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> | 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> |
| @@ -268,6 +268,12 @@ This variable takes precedence over filtering, and even | |||
| 268 | (const :tag "Always except minibuffer" :value :nomini)) | 268 | (const :tag "Always except minibuffer" :value :nomini)) |
| 269 | :group 'ibuffer) | 269 | :group 'ibuffer) |
| 270 | 270 | ||
| 271 | (defcustom ibuffer-jump-offer-only-visible-buffers nil | ||
| 272 | "If non-nil, only offer buffers visible in the Ibuffer buffer | ||
| 273 | in completion lists of the `ibuffer-jump-to-buffer' command." | ||
| 274 | :type 'boolean | ||
| 275 | :group 'ibuffer) | ||
| 276 | |||
| 271 | (defcustom ibuffer-use-header-line (boundp 'header-line-format) | 277 | (defcustom ibuffer-use-header-line (boundp 'header-line-format) |
| 272 | "If non-nil, display a header line containing current filters." | 278 | "If non-nil, display a header line containing current filters." |
| 273 | :type 'boolean | 279 | :type 'boolean |
| @@ -357,6 +363,7 @@ directory, like `default-directory'." | |||
| 357 | (define-key map (kbd "u") 'ibuffer-unmark-forward) | 363 | (define-key map (kbd "u") 'ibuffer-unmark-forward) |
| 358 | (define-key map (kbd "=") 'ibuffer-diff-with-file) | 364 | (define-key map (kbd "=") 'ibuffer-diff-with-file) |
| 359 | (define-key map (kbd "j") 'ibuffer-jump-to-buffer) | 365 | (define-key map (kbd "j") 'ibuffer-jump-to-buffer) |
| 366 | (define-key map (kbd "M-g") 'ibuffer-jump-to-buffer) | ||
| 360 | (define-key map (kbd "DEL") 'ibuffer-unmark-backward) | 367 | (define-key map (kbd "DEL") 'ibuffer-unmark-backward) |
| 361 | (define-key map (kbd "M-DEL") 'ibuffer-unmark-all) | 368 | (define-key map (kbd "M-DEL") 'ibuffer-unmark-all) |
| 362 | (define-key map (kbd "* *") 'ibuffer-unmark-all) | 369 | (define-key map (kbd "* *") 'ibuffer-unmark-all) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index de9d3ef8e2c..c4c7be3a225 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -592,11 +592,9 @@ character code range. Thus FUNC should iterate over [START, END]." | |||
| 592 | (make-char charset (+ i start) start) | 592 | (make-char charset (+ i start) start) |
| 593 | (make-char charset (+ i start) (+ start chars -1))))))) | 593 | (make-char charset (+ i start) (+ start chars -1))))))) |
| 594 | 594 | ||
| 595 | (defun register-char-codings (coding-system safe-chars) | 595 | (defalias 'register-char-codings 'ignore "") |
| 596 | "This is an obsolete function. | ||
| 597 | It exists just for backward compatibility, and it does nothing.") | ||
| 598 | (make-obsolete 'register-char-codings | 596 | (make-obsolete 'register-char-codings |
| 599 | "Unnecessary function. Calling it has no effect." | 597 | "it exists just for backward compatibility, and does nothing." |
| 600 | "21.3") | 598 | "21.3") |
| 601 | 599 | ||
| 602 | (defconst char-coding-system-table nil | 600 | (defconst char-coding-system-table nil |
| @@ -1401,7 +1399,7 @@ Each element must be one of the names listed in the variable | |||
| 1401 | (let* ((M (char-after (+ pos 4))) | 1399 | (let* ((M (char-after (+ pos 4))) |
| 1402 | (L (char-after (+ pos 5))) | 1400 | (L (char-after (+ pos 5))) |
| 1403 | (encoding (match-string 2)) | 1401 | (encoding (match-string 2)) |
| 1404 | (encoding-info (assoc-string | 1402 | (encoding-info (assoc-string |
| 1405 | encoding | 1403 | encoding |
| 1406 | ctext-non-standard-encodings-alist t)) | 1404 | ctext-non-standard-encodings-alist t)) |
| 1407 | (coding (if encoding-info | 1405 | (coding (if encoding-info |
| @@ -1445,7 +1443,7 @@ Each element must be one of the names listed in the variable | |||
| 1445 | (dolist (elt charset) | 1443 | (dolist (elt charset) |
| 1446 | (aset table (make-char elt) slot))) | 1444 | (aset table (make-char elt) slot))) |
| 1447 | ((char-table-p charset) | 1445 | ((char-table-p charset) |
| 1448 | (map-char-table #'(lambda (k v) | 1446 | (map-char-table #'(lambda (k v) |
| 1449 | (if (and v (> k 128)) (aset table k slot))) | 1447 | (if (and v (> k 128)) (aset table k slot))) |
| 1450 | charset)))))) | 1448 | charset)))))) |
| 1451 | table)) | 1449 | table)) |
| @@ -1501,7 +1499,7 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place." | |||
| 1501 | (- (point) last-pos))) | 1499 | (- (point) last-pos))) |
| 1502 | (save-excursion | 1500 | (save-excursion |
| 1503 | (goto-char last-pos) | 1501 | (goto-char last-pos) |
| 1504 | (insert (string-to-multibyte | 1502 | (insert (string-to-multibyte |
| 1505 | (format "\e%%/%d%c%c%s" | 1503 | (format "\e%%/%d%c%c%s" |
| 1506 | noctets | 1504 | noctets |
| 1507 | (+ (/ len 128) 128) | 1505 | (+ (/ len 128) 128) |
| @@ -1668,7 +1666,7 @@ function by default." | |||
| 1668 | (goto-char tail-start) | 1666 | (goto-char tail-start) |
| 1669 | (re-search-forward "[\r\n]\^L" nil t) | 1667 | (re-search-forward "[\r\n]\^L" nil t) |
| 1670 | (if (re-search-forward | 1668 | (if (re-search-forward |
| 1671 | "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]" | 1669 | "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]" |
| 1672 | tail-end t) | 1670 | tail-end t) |
| 1673 | ;; The prefix is what comes before "local variables:" in its | 1671 | ;; The prefix is what comes before "local variables:" in its |
| 1674 | ;; line. The suffix is what comes after "local variables:" | 1672 | ;; line. The suffix is what comes after "local variables:" |
| @@ -1688,7 +1686,7 @@ function by default." | |||
| 1688 | "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*" | 1686 | "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*" |
| 1689 | suffix "[\r\n]")) | 1687 | suffix "[\r\n]")) |
| 1690 | (re-end | 1688 | (re-end |
| 1691 | (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix | 1689 | (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix |
| 1692 | "[\r\n]?")) | 1690 | "[\r\n]?")) |
| 1693 | (pos (1- (point)))) | 1691 | (pos (1- (point)))) |
| 1694 | (forward-char -1) ; skip back \r or \n. | 1692 | (forward-char -1) ; skip back \r or \n. |
diff --git a/lisp/minibuf-eldef.el b/lisp/minibuf-eldef.el index 10bf38f945f..908b77aab33 100644 --- a/lisp/minibuf-eldef.el +++ b/lisp/minibuf-eldef.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; minibuf-eldef.el --- Only show defaults in prompts when applicable | 1 | ;;; minibuf-eldef.el --- Only show defaults in prompts when applicable |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 2000, 2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc. |
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Miles Bader <miles@gnu.org> | 5 | ;; Author: Miles Bader <miles@gnu.org> |
| 6 | ;; Keywords: convenience | 6 | ;; Keywords: convenience |
| @@ -36,7 +36,7 @@ | |||
| 36 | ;;; Code: | 36 | ;;; Code: |
| 37 | 37 | ||
| 38 | (defvar minibuffer-default-in-prompt-regexps | 38 | (defvar minibuffer-default-in-prompt-regexps |
| 39 | '(("\\( (default\\>.*)\\):? \\'" . 1)) | 39 | '(("\\( (default\\>.*)\\):? \\'" . 1) ("\\( \\[.*\\]\\):? *\\'" . 1)) |
| 40 | "*A list of regexps matching the parts of minibuffer prompts showing defaults. | 40 | "*A list of regexps matching the parts of minibuffer prompts showing defaults. |
| 41 | When `minibuffer-electric-default-mode' is active, these regexps are | 41 | When `minibuffer-electric-default-mode' is active, these regexps are |
| 42 | used to identify the portions of prompts to elide. | 42 | used to identify the portions of prompts to elide. |
| @@ -157,5 +157,5 @@ Returns non-nil if the new state is enabled." | |||
| 157 | 157 | ||
| 158 | (provide 'minibuf-eldef) | 158 | (provide 'minibuf-eldef) |
| 159 | 159 | ||
| 160 | ;;; arch-tag: 7e421fae-c275-4729-b0da-7836af377d3d | 160 | ;; arch-tag: 7e421fae-c275-4729-b0da-7836af377d3d |
| 161 | ;;; minibuf-eldef.el ends here | 161 | ;;; minibuf-eldef.el ends here |
diff --git a/lisp/subr.el b/lisp/subr.el index cd52efcebde..747f1925ad5 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -851,9 +851,11 @@ and `event-end' functions." | |||
| 851 | (make-obsolete 'dot-min 'point-min "before 19.15") | 851 | (make-obsolete 'dot-min 'point-min "before 19.15") |
| 852 | (make-obsolete 'dot-marker 'point-marker "before 19.15") | 852 | (make-obsolete 'dot-marker 'point-marker "before 19.15") |
| 853 | (make-obsolete 'buffer-flush-undo 'buffer-disable-undo "before 19.15") | 853 | (make-obsolete 'buffer-flush-undo 'buffer-disable-undo "before 19.15") |
| 854 | (make-obsolete 'baud-rate "use the baud-rate variable instead." "before 19.15") | 854 | (make-obsolete 'baud-rate "use the `baud-rate' variable instead." "before 19.15") |
| 855 | (make-obsolete 'compiled-function-p 'byte-code-function-p "before 19.15") | 855 | (make-obsolete 'compiled-function-p 'byte-code-function-p "before 19.15") |
| 856 | (make-obsolete 'define-function 'defalias "20.1") | 856 | (make-obsolete 'define-function 'defalias "20.1") |
| 857 | (make-obsolete 'focus-frame "it does nothing." "19.32") | ||
| 858 | (make-obsolete 'unfocus-frame "it does nothing." "19.32") | ||
| 857 | 859 | ||
| 858 | (defun insert-string (&rest args) | 860 | (defun insert-string (&rest args) |
| 859 | "Mocklisp-compatibility insert function. | 861 | "Mocklisp-compatibility insert function. |
| @@ -870,8 +872,8 @@ is converted into a string by expressing it in decimal." | |||
| 870 | "Return the value of the `baud-rate' variable." | 872 | "Return the value of the `baud-rate' variable." |
| 871 | baud-rate) | 873 | baud-rate) |
| 872 | 874 | ||
| 873 | (defalias 'focus-frame 'ignore) | 875 | (defalias 'focus-frame 'ignore "") |
| 874 | (defalias 'unfocus-frame 'ignore) | 876 | (defalias 'unfocus-frame 'ignore "") |
| 875 | 877 | ||
| 876 | 878 | ||
| 877 | ;;;; Obsolescence declarations for variables. | 879 | ;;;; Obsolescence declarations for variables. |
| @@ -1186,7 +1188,7 @@ Optional args SENTINEL and FILTER specify the sentinel and filter | |||
| 1186 | ;; compatibility | 1188 | ;; compatibility |
| 1187 | 1189 | ||
| 1188 | (make-obsolete 'process-kill-without-query | 1190 | (make-obsolete 'process-kill-without-query |
| 1189 | "use `process-query-on-exit-flag'\nor `set-process-query-on-exit-flag'." | 1191 | "use `process-query-on-exit-flag' or `set-process-query-on-exit-flag'." |
| 1190 | "21.5") | 1192 | "21.5") |
| 1191 | (defun process-kill-without-query (process &optional flag) | 1193 | (defun process-kill-without-query (process &optional flag) |
| 1192 | "Say no query needed if PROCESS is running when Emacs is exited. | 1194 | "Say no query needed if PROCESS is running when Emacs is exited. |
| @@ -1333,9 +1335,11 @@ Optional DEFAULT is a default password to use instead of empty input." | |||
| 1333 | (let ((n nil)) | 1335 | (let ((n nil)) |
| 1334 | (when default | 1336 | (when default |
| 1335 | (setq prompt | 1337 | (setq prompt |
| 1336 | (if (string-match "\\(\\):[^:]*" prompt) | 1338 | (if (string-match "\\(\\):[ \t]*\\'" prompt) |
| 1337 | (replace-match (format " [%s]" default) t t prompt 1) | 1339 | (replace-match (format " (default %s)" default) t t prompt 1) |
| 1338 | (concat prompt (format " [%s] " default))))) | 1340 | (replace-regexp-in-string "[ \t]*\\'" |
| 1341 | (format " (default %s) " default) | ||
| 1342 | prompt t t)))) | ||
| 1339 | (while | 1343 | (while |
| 1340 | (progn | 1344 | (progn |
| 1341 | (let ((str (read-from-minibuffer prompt nil nil nil nil | 1345 | (let ((str (read-from-minibuffer prompt nil nil nil nil |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 99e693abb94..15348205c51 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -1793,7 +1793,7 @@ Formats current entry according to variable `bibtex-entry-format'." | |||
| 1793 | (goto-char (point-min)) | 1793 | (goto-char (point-min)) |
| 1794 | (let* ((fields-alist (bibtex-parse-entry)) | 1794 | (let* ((fields-alist (bibtex-parse-entry)) |
| 1795 | (case-fold-search t) | 1795 | (case-fold-search t) |
| 1796 | (field (bibtex-assoc-regexp "\\(OPT\\)?crossref\\>" | 1796 | (field (bibtex-assoc-regexp "\\`\\(OPT\\)?crossref\\'" |
| 1797 | fields-alist))) | 1797 | fields-alist))) |
| 1798 | (setq crossref-key (and field | 1798 | (setq crossref-key (and field |
| 1799 | (not (string-match bibtex-empty-field-re | 1799 | (not (string-match bibtex-empty-field-re |
| @@ -1807,7 +1807,7 @@ Formats current entry according to variable `bibtex-entry-format'." | |||
| 1807 | (when (nth 3 rfield) ; we should have an alternative | 1807 | (when (nth 3 rfield) ; we should have an alternative |
| 1808 | (setq alternatives-there t | 1808 | (setq alternatives-there t |
| 1809 | field (bibtex-assoc-regexp | 1809 | field (bibtex-assoc-regexp |
| 1810 | (concat "\\(ALT\\)?" (car rfield) "\\>") | 1810 | (concat "\\`\\(ALT\\)?" (car rfield) "\\'") |
| 1811 | fields-alist)) | 1811 | fields-alist)) |
| 1812 | (if (and field | 1812 | (if (and field |
| 1813 | (not (string-match bibtex-empty-field-re | 1813 | (not (string-match bibtex-empty-field-re |
| @@ -2317,7 +2317,7 @@ Return alist of strings if parsing was completed, `aborted' otherwise." | |||
| 2317 | ;; user has aborted by typing a key --> return `aborted' | 2317 | ;; user has aborted by typing a key --> return `aborted' |
| 2318 | (throw 'userkey 'aborted)) | 2318 | (throw 'userkey 'aborted)) |
| 2319 | (setq key (bibtex-reference-key-in-string bounds)) | 2319 | (setq key (bibtex-reference-key-in-string bounds)) |
| 2320 | (if (not (assoc-string key strings t)) | 2320 | (if (not (assoc key strings)) |
| 2321 | (push (cons key (bibtex-text-in-string bounds t)) | 2321 | (push (cons key (bibtex-text-in-string bounds t)) |
| 2322 | strings)) | 2322 | strings)) |
| 2323 | (goto-char (bibtex-end-of-text-in-string bounds))) | 2323 | (goto-char (bibtex-end-of-text-in-string bounds))) |
| @@ -2722,24 +2722,27 @@ according to `bibtex-entry-field-alist', but are not yet present." | |||
| 2722 | (let* ((fields-alist (bibtex-parse-entry)) | 2722 | (let* ((fields-alist (bibtex-parse-entry)) |
| 2723 | (field-list (bibtex-field-list | 2723 | (field-list (bibtex-field-list |
| 2724 | (substring (cdr (assoc "=type=" fields-alist)) | 2724 | (substring (cdr (assoc "=type=" fields-alist)) |
| 2725 | 1)))) ; don't want @ | 2725 | 1))) ; don't want @ |
| 2726 | (case-fold-search t)) | ||
| 2726 | (dolist (field (car field-list)) | 2727 | (dolist (field (car field-list)) |
| 2727 | (unless (assoc-string (car field) fields-alist t) | 2728 | (unless (bibtex-assoc-regexp (concat "\\`\\(ALT\\)?" (car field) "\\'") |
| 2729 | fields-alist) | ||
| 2728 | (bibtex-make-field field))) | 2730 | (bibtex-make-field field))) |
| 2729 | (dolist (field (cdr field-list)) | 2731 | (dolist (field (cdr field-list)) |
| 2730 | (unless (assoc-string (car field) fields-alist t) | 2732 | (unless (bibtex-assoc-regexp (concat "\\`\\(OPT\\)?" (car field) "\\'") |
| 2733 | fields-alist) | ||
| 2731 | (bibtex-make-optional-field field)))))) | 2734 | (bibtex-make-optional-field field)))))) |
| 2732 | 2735 | ||
| 2733 | (defun bibtex-parse-entry () | 2736 | (defun bibtex-parse-entry () |
| 2734 | "Parse entry at point, return an alist. | 2737 | "Parse entry at point, return an alist. |
| 2735 | The alist elements have the form (FIELD . TEXT), where FIELD can also be | 2738 | The alist elements have the form (FIELD . TEXT), where FIELD can also be |
| 2736 | the special strings \"=type=\" and \"=key=\". | 2739 | the special strings \"=type=\" and \"=key=\". For the FIELD \"=key=\" |
| 2737 | Move point to the end of the last field." | 2740 | TEXT may be nil. Move point to the end of the last field." |
| 2738 | (let (alist bounds) | 2741 | (let (alist bounds) |
| 2739 | (when (looking-at bibtex-entry-head) | 2742 | (when (looking-at bibtex-entry-maybe-empty-head) |
| 2740 | (push (cons "=type=" (match-string bibtex-type-in-head)) alist) | 2743 | (push (cons "=type=" (match-string bibtex-type-in-head)) alist) |
| 2741 | (push (cons "=key=" (match-string bibtex-key-in-head)) alist) | 2744 | (push (cons "=key=" (match-string bibtex-key-in-head)) alist) |
| 2742 | (goto-char (match-end bibtex-key-in-head)) | 2745 | (goto-char (match-end 0)) |
| 2743 | (while (setq bounds (bibtex-parse-field bibtex-field-name)) | 2746 | (while (setq bounds (bibtex-parse-field bibtex-field-name)) |
| 2744 | (push (cons (bibtex-name-in-field bounds) | 2747 | (push (cons (bibtex-name-in-field bounds) |
| 2745 | (bibtex-text-in-field-bounds bounds)) | 2748 | (bibtex-text-in-field-bounds bounds)) |
diff --git a/lisp/vc-arch.el b/lisp/vc-arch.el index 6c67581a5a8..a439174556e 100644 --- a/lisp/vc-arch.el +++ b/lisp/vc-arch.el | |||
| @@ -272,7 +272,7 @@ Return non-nil if FILE is unchanged." | |||
| 272 | ;; Buh? Unexpected format. | 272 | ;; Buh? Unexpected format. |
| 273 | 'edited | 273 | 'edited |
| 274 | (let ((ats (file-attributes file))) | 274 | (let ((ats (file-attributes file))) |
| 275 | (if (and (= (nth 7 ats) (string-to-number (match-string 2))) | 275 | (if (and (eq (nth 7 ats) (string-to-number (match-string 2))) |
| 276 | (equal (format-time-string "%s" (nth 5 ats)) | 276 | (equal (format-time-string "%s" (nth 5 ats)) |
| 277 | (match-string 1))) | 277 | (match-string 1))) |
| 278 | 'up-to-date | 278 | 'up-to-date |