diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 45 | ||||
| -rw-r--r-- | lisp/cedet/cedet.el | 14 | ||||
| -rw-r--r-- | lisp/cedet/ede.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/srecode.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio.el | 4 | ||||
| -rw-r--r-- | lisp/isearch.el | 1 | ||||
| -rw-r--r-- | lisp/mouse.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-awk.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 16 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 2 | ||||
| -rw-r--r-- | lisp/replace.el | 102 | ||||
| -rw-r--r-- | lisp/simple.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/remember.el | 3 |
17 files changed, 142 insertions, 80 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9fba2817b1e..fdf12be0a1c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,48 @@ | |||
| 1 | 2013-02-02 Christopher Schmidt <christopher@ch.ristopher.com> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | ||
| 4 | Identify g++ template instantiation trace. (Bug#12287) | ||
| 5 | (compilation-mode-hook, compilation-start-hook) | ||
| 6 | (compilation-window-height): Simplify docstrings. (Bug#13379) | ||
| 7 | |||
| 8 | 2013-02-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9 | |||
| 10 | * mouse.el (mouse-drag-track): Always deactivate the mark before | ||
| 11 | running the final event's command since that command is in charge of | ||
| 12 | activating the mark if needed (bug#13523). | ||
| 13 | |||
| 14 | 2013-02-02 Juri Linkov <juri@jurta.org> | ||
| 15 | |||
| 16 | * replace.el (perform-replace): Move let-bindings of isearch-* | ||
| 17 | variables deeper to the loop that searches for the next match. | ||
| 18 | Add bindings for `isearch-nonincremental' and `isearch-adjusted'. | ||
| 19 | Use `isearch-search-fun-default' instead of `isearch-search-fun'. | ||
| 20 | (Bug#13579) | ||
| 21 | |||
| 22 | * isearch.el (isearch-search-fun-default): Check for null | ||
| 23 | first element of isearch-cmds as a precaution when it's used | ||
| 24 | with inactive isearch. | ||
| 25 | |||
| 26 | 2013-02-02 Andrew W. Nosenko <andrew.w.nosenko@gmail.com> (tiny change) | ||
| 27 | |||
| 28 | * net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range" | ||
| 29 | error when buffer in question is narrowed so position 1 is out of | ||
| 30 | visible part. | ||
| 31 | |||
| 32 | 2013-02-02 Glenn Morris <rgm@gnu.org> | ||
| 33 | |||
| 34 | * textmodes/remember.el (remember-clipboard): Doc fix. | ||
| 35 | |||
| 36 | 2013-02-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 37 | |||
| 38 | * progmodes/make-mode.el (makefile-fill-paragraph): Reset syntax-table | ||
| 39 | properties (bug#13179). | ||
| 40 | |||
| 41 | 2013-02-02 Juri Linkov <juri@jurta.org> | ||
| 42 | |||
| 43 | * progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face | ||
| 44 | instead of hard-coded default face `match'. (Bug#9438) | ||
| 45 | |||
| 1 | 2012-02-01 Christopher Schmidt <christopher@ch.ristopher.com> | 46 | 2012-02-01 Christopher Schmidt <christopher@ch.ristopher.com> |
| 2 | 47 | ||
| 3 | * vc/vc-arch.el (vc-arch-registered): | 48 | * vc/vc-arch.el (vc-arch-registered): |
diff --git a/lisp/cedet/cedet.el b/lisp/cedet/cedet.el index d876b65303c..e8720bc6624 100644 --- a/lisp/cedet/cedet.el +++ b/lisp/cedet/cedet.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: David Ponce <david@dponce.com> | 5 | ;; Author: David Ponce <david@dponce.com> |
| 6 | ;; Maintainer: Eric M. Ludlam <zappo@gnu.org> | 6 | ;; Maintainer: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Version: 1.1 | 7 | ;; Version: 2.0 |
| 8 | ;; Keywords: OO, lisp | 8 | ;; Keywords: OO, lisp |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -35,7 +35,7 @@ | |||
| 35 | 35 | ||
| 36 | (declare-function inversion-find-version "inversion") | 36 | (declare-function inversion-find-version "inversion") |
| 37 | 37 | ||
| 38 | (defconst cedet-version "1.1" | 38 | (defconst cedet-version "2.0" |
| 39 | "Current version of CEDET.") | 39 | "Current version of CEDET.") |
| 40 | 40 | ||
| 41 | (defconst cedet-packages | 41 | (defconst cedet-packages |
| @@ -43,12 +43,12 @@ | |||
| 43 | ;;PACKAGE MIN-VERSION INSTALLDIR DOCDIR | 43 | ;;PACKAGE MIN-VERSION INSTALLDIR DOCDIR |
| 44 | (cedet ,cedet-version "common" "common" ) | 44 | (cedet ,cedet-version "common" "common" ) |
| 45 | (eieio "1.4" nil "eieio" ) | 45 | (eieio "1.4" nil "eieio" ) |
| 46 | (semantic "2.1" nil "semantic/doc") | 46 | (semantic "2.2" nil "semantic/doc") |
| 47 | (srecode "1.1" nil "srecode" ) | 47 | (srecode "1.2" nil "srecode" ) |
| 48 | (ede "1.1" nil "ede" ) | 48 | (ede "1.2" nil "ede" ) |
| 49 | (speedbar "1.0.4" nil "speedbar" ) | 49 | (speedbar "1.0.4" nil "speedbar" ) |
| 50 | (cogre "1.1" nil "cogre" ) | 50 | (cogre "1.2" nil "cogre" ) |
| 51 | (cedet-contrib "1.1" "contrib" nil ) | 51 | (cedet-contrib "1.2" "contrib" nil ) |
| 52 | ) | 52 | ) |
| 53 | "Table of CEDET packages to install.") | 53 | "Table of CEDET packages to install.") |
| 54 | 54 | ||
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el index 12b8f558d65..3867f628b93 100644 --- a/lisp/cedet/ede.el +++ b/lisp/cedet/ede.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | ;; Keywords: project, make | 6 | ;; Keywords: project, make |
| 7 | ;; Version: 1.0 | 7 | ;; Version: 1.2 |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -60,7 +60,7 @@ | |||
| 60 | (declare-function ede-up-directory "ede/files") | 60 | (declare-function ede-up-directory "ede/files") |
| 61 | (declare-function semantic-lex-make-spp-table "semantic/lex-spp") | 61 | (declare-function semantic-lex-make-spp-table "semantic/lex-spp") |
| 62 | 62 | ||
| 63 | (defconst ede-version "1.0" | 63 | (defconst ede-version "1.2" |
| 64 | "Current version of the Emacs EDE.") | 64 | "Current version of the Emacs EDE.") |
| 65 | 65 | ||
| 66 | ;;; Code: | 66 | ;;; Code: |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index decd3b15812..edf2d0cb21a 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | ;; Keywords: syntax tools | 6 | ;; Keywords: syntax tools |
| 7 | ;; Version: 2.1beta | 7 | ;; Version: 2.2 |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -38,7 +38,7 @@ | |||
| 38 | (require 'semantic/tag) | 38 | (require 'semantic/tag) |
| 39 | (require 'semantic/lex) | 39 | (require 'semantic/lex) |
| 40 | 40 | ||
| 41 | (defvar semantic-version "2.1beta" | 41 | (defvar semantic-version "2.2" |
| 42 | "Current version of Semantic.") | 42 | "Current version of Semantic.") |
| 43 | 43 | ||
| 44 | (declare-function inversion-test "inversion") | 44 | (declare-function inversion-test "inversion") |
diff --git a/lisp/cedet/srecode.el b/lisp/cedet/srecode.el index 3201374bc92..2e2cb8a3f80 100644 --- a/lisp/cedet/srecode.el +++ b/lisp/cedet/srecode.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 5 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 6 | ;; Keywords: codegeneration | 6 | ;; Keywords: codegeneration |
| 7 | ;; Version: 1.0 | 7 | ;; Version: 1.2 |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -41,7 +41,7 @@ | |||
| 41 | (require 'mode-local) | 41 | (require 'mode-local) |
| 42 | (load "srecode/loaddefs" nil 'nomessage) | 42 | (load "srecode/loaddefs" nil 'nomessage) |
| 43 | 43 | ||
| 44 | (defvar srecode-version "1.0" | 44 | (defvar srecode-version "1.2" |
| 45 | "Current version of the Semantic Recoder.") | 45 | "Current version of the Semantic Recoder.") |
| 46 | 46 | ||
| 47 | ;;; Code: | 47 | ;;; Code: |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 7a22e1222c9..626bc0f6dc6 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; Copyright (C) 1995-1996, 1998-2013 Free Software Foundation, Inc. | 4 | ;; Copyright (C) 1995-1996, 1998-2013 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 | ;; Author: Eric M. Ludlam <zappo@gnu.org> |
| 7 | ;; Version: 1.3 | 7 | ;; Version: 1.4 |
| 8 | ;; Keywords: OO, lisp | 8 | ;; Keywords: OO, lisp |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -46,7 +46,7 @@ | |||
| 46 | 46 | ||
| 47 | (eval-when-compile (require 'cl)) ;FIXME: Use cl-lib! | 47 | (eval-when-compile (require 'cl)) ;FIXME: Use cl-lib! |
| 48 | 48 | ||
| 49 | (defvar eieio-version "1.3" | 49 | (defvar eieio-version "1.4" |
| 50 | "Current version of EIEIO.") | 50 | "Current version of EIEIO.") |
| 51 | 51 | ||
| 52 | (defun eieio-version () | 52 | (defun eieio-version () |
diff --git a/lisp/isearch.el b/lisp/isearch.el index e16e3840d0d..31b1918429f 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2520,6 +2520,7 @@ Can be changed via `isearch-search-fun-function' for special needs." | |||
| 2520 | ;; the user adds and removes characters in the search string | 2520 | ;; the user adds and removes characters in the search string |
| 2521 | ;; (or when using nonincremental word isearch) | 2521 | ;; (or when using nonincremental word isearch) |
| 2522 | (let ((lax (not (or isearch-nonincremental | 2522 | (let ((lax (not (or isearch-nonincremental |
| 2523 | (null (car isearch-cmds)) | ||
| 2523 | (eq (length isearch-string) | 2524 | (eq (length isearch-string) |
| 2524 | (length (isearch--state-string | 2525 | (length (isearch--state-string |
| 2525 | (car isearch-cmds)))))))) | 2526 | (car isearch-cmds)))))))) |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 9c7bf6f9c36..a1aa104495a 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -880,9 +880,9 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by | |||
| 880 | (copy-region-as-kill (mark) (point))))) | 880 | (copy-region-as-kill (mark) (point))))) |
| 881 | 881 | ||
| 882 | ;; Otherwise, run binding of terminating up-event. | 882 | ;; Otherwise, run binding of terminating up-event. |
| 883 | (deactivate-mark) | ||
| 883 | (if do-multi-click | 884 | (if do-multi-click |
| 884 | (goto-char start-point) | 885 | (goto-char start-point) |
| 885 | (deactivate-mark) | ||
| 886 | (unless moved-off-start | 886 | (unless moved-off-start |
| 887 | (pop-mark))) | 887 | (pop-mark))) |
| 888 | 888 | ||
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 4f31e95aeff..1dee9e89676 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -3413,7 +3413,9 @@ Erase echoed commands if exists." | |||
| 3413 | 0 (min tramp-echo-mark-marker-length (1- (point-max)))) | 3413 | 0 (min tramp-echo-mark-marker-length (1- (point-max)))) |
| 3414 | (tramp-compat-funcall | 3414 | (tramp-compat-funcall |
| 3415 | 'buffer-substring-no-properties | 3415 | 'buffer-substring-no-properties |
| 3416 | 1 (min (1+ tramp-echo-mark-marker-length) (point-max)))))) | 3416 | (point-min) |
| 3417 | (min (+ (point-min) tramp-echo-mark-marker-length) | ||
| 3418 | (point-max)))))) | ||
| 3417 | ;; No echo to be handled, now we can look for the regexp. | 3419 | ;; No echo to be handled, now we can look for the regexp. |
| 3418 | ;; Sometimes, lines are much to long, and we run into a "Stack | 3420 | ;; Sometimes, lines are much to long, and we run into a "Stack |
| 3419 | ;; overflow in regexp matcher". For example, //DIRED// lines of | 3421 | ;; overflow in regexp matcher". For example, //DIRED// lines of |
diff --git a/lisp/progmodes/cc-awk.el b/lisp/progmodes/cc-awk.el index 0711bc983e8..4b3fc91b0ff 100644 --- a/lisp/progmodes/cc-awk.el +++ b/lisp/progmodes/cc-awk.el | |||
| @@ -142,7 +142,7 @@ | |||
| 142 | 142 | ||
| 143 | (defconst c-awk-harmless-line-char-re "[^_#/\"\\\\\n\r]") | 143 | (defconst c-awk-harmless-line-char-re "[^_#/\"\\\\\n\r]") |
| 144 | ;; Matches any character but a _, #, /, ", \, or newline. N.B. _" starts a | 144 | ;; Matches any character but a _, #, /, ", \, or newline. N.B. _" starts a |
| 145 | ;; localisation string in gawk 3.1 | 145 | ;; localization string in gawk 3.1 |
| 146 | (defconst c-awk-harmless-line-string*-re | 146 | (defconst c-awk-harmless-line-string*-re |
| 147 | (concat "\\(" c-awk-harmless-line-char-re "\\|" c-awk-esc-pair-re "\\|" c-awk-harmless-_ "\\)*")) | 147 | (concat "\\(" c-awk-harmless-line-char-re "\\|" c-awk-esc-pair-re "\\|" c-awk-harmless-_ "\\)*")) |
| 148 | ;; Matches a (possibly empty) sequence of chars without unescaped /, ", \, | 148 | ;; Matches a (possibly empty) sequence of chars without unescaped /, ", \, |
| @@ -795,7 +795,8 @@ | |||
| 795 | (setq anchor (point)) | 795 | (setq anchor (point)) |
| 796 | (search-forward-regexp c-awk-harmless-string*-here-re nil t) | 796 | (search-forward-regexp c-awk-harmless-string*-here-re nil t) |
| 797 | ;; We are now looking at either a " or a / or a brace/paren/semicolon. | 797 | ;; We are now looking at either a " or a / or a brace/paren/semicolon. |
| 798 | ;; Do our thing on the string, regexp or divsion sign or update our state. | 798 | ;; Do our thing on the string, regexp or division sign or update |
| 799 | ;; our state. | ||
| 799 | (setq anchor-state-/div | 800 | (setq anchor-state-/div |
| 800 | (cond | 801 | (cond |
| 801 | ((looking-at "_?\"") | 802 | ((looking-at "_?\"") |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index eb73b77bf52..d2a9617e28e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -42,24 +42,21 @@ | |||
| 42 | 42 | ||
| 43 | ;;;###autoload | 43 | ;;;###autoload |
| 44 | (defcustom compilation-mode-hook nil | 44 | (defcustom compilation-mode-hook nil |
| 45 | "List of hook functions run by `compilation-mode' (see `run-mode-hooks')." | 45 | "List of hook functions run by `compilation-mode'." |
| 46 | :type 'hook | 46 | :type 'hook |
| 47 | :group 'compilation) | 47 | :group 'compilation) |
| 48 | 48 | ||
| 49 | ;;;###autoload | 49 | ;;;###autoload |
| 50 | (defcustom compilation-start-hook nil | 50 | (defcustom compilation-start-hook nil |
| 51 | "List of hook functions run by `compilation-start' on the compilation process. | 51 | "Hook run after starting a new compilation process. |
| 52 | \(See `run-hook-with-args'). | 52 | The hook is run with one argument, the new process." |
| 53 | If you use \"omake -P\" and do not want \\[save-buffers-kill-terminal] to ask whether you want | ||
| 54 | the compilation to be killed, you can use this hook: | ||
| 55 | (add-hook 'compilation-start-hook | ||
| 56 | (lambda (process) (set-process-query-on-exit-flag process nil)) nil t)" | ||
| 57 | :type 'hook | 53 | :type 'hook |
| 58 | :group 'compilation) | 54 | :group 'compilation) |
| 59 | 55 | ||
| 60 | ;;;###autoload | 56 | ;;;###autoload |
| 61 | (defcustom compilation-window-height nil | 57 | (defcustom compilation-window-height nil |
| 62 | "Number of lines in a compilation window. If nil, use Emacs default." | 58 | "Number of lines in a compilation window. |
| 59 | If nil, use Emacs default." | ||
| 63 | :type '(choice (const :tag "Default" nil) | 60 | :type '(choice (const :tag "Default" nil) |
| 64 | integer) | 61 | integer) |
| 65 | :group 'compilation) | 62 | :group 'compilation) |
| @@ -265,7 +262,8 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 265 | \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ | 262 | \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ |
| 266 | \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)?\\)?:\ | 263 | \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)?\\)?:\ |
| 267 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 264 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ |
| 268 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\)\\|\ | 265 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|\\[ skipping .+ \\]\\|\ |
| 266 | \\(?:instantiated\\|required\\) from\\|[Nn]ote\\)\\|\ | ||
| 269 | *[Ee]rror\\|[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" | 267 | *[Ee]rror\\|[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" |
| 270 | 1 (2 . 4) (3 . 5) (6 . 7)) | 268 | 1 (2 . 4) (3 . 5) (6 . 7)) |
| 271 | 269 | ||
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index ef321addf24..d8c39f2ddef 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -359,7 +359,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 359 | (when grep-highlight-matches | 359 | (when grep-highlight-matches |
| 360 | (let* ((beg (match-end 0)) | 360 | (let* ((beg (match-end 0)) |
| 361 | (end (save-excursion (goto-char beg) (line-end-position))) | 361 | (end (save-excursion (goto-char beg) (line-end-position))) |
| 362 | (mbeg (text-property-any beg end 'font-lock-face 'match))) | 362 | (mbeg (text-property-any beg end 'font-lock-face grep-match-face))) |
| 363 | (when mbeg | 363 | (when mbeg |
| 364 | (- mbeg beg))))) | 364 | (- mbeg beg))))) |
| 365 | . | 365 | . |
| @@ -367,7 +367,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 367 | (when grep-highlight-matches | 367 | (when grep-highlight-matches |
| 368 | (let* ((beg (match-end 0)) | 368 | (let* ((beg (match-end 0)) |
| 369 | (end (save-excursion (goto-char beg) (line-end-position))) | 369 | (end (save-excursion (goto-char beg) (line-end-position))) |
| 370 | (mbeg (text-property-any beg end 'font-lock-face 'match)) | 370 | (mbeg (text-property-any beg end 'font-lock-face grep-match-face)) |
| 371 | (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end)))) | 371 | (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end)))) |
| 372 | (when mend | 372 | (when mend |
| 373 | (- mend beg))))))) | 373 | (- mend beg))))))) |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index be718135f99..20673866bc4 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1304,6 +1304,12 @@ Fill comments, backslashed lines, and variable definitions specially." | |||
| 1304 | (save-restriction | 1304 | (save-restriction |
| 1305 | (narrow-to-region beginning end) | 1305 | (narrow-to-region beginning end) |
| 1306 | (makefile-backslash-region (point-min) (point-max) t) | 1306 | (makefile-backslash-region (point-min) (point-max) t) |
| 1307 | ;; Backslashed newlines are marked as punctuation, so when | ||
| 1308 | ;; fill-delete-newlines turns the LF into SPC, we end up with spaces | ||
| 1309 | ;; which back-to-indentation (called via fill-newline -> | ||
| 1310 | ;; fill-indent-to-left-margin -> indent-line-to) thinks are real code | ||
| 1311 | ;; (bug#13179). | ||
| 1312 | (remove-text-properties (point-min) (point-max) '(syntax-table)) | ||
| 1307 | (let ((fill-paragraph-function nil) | 1313 | (let ((fill-paragraph-function nil) |
| 1308 | ;; Adjust fill-column to allow space for the backslash. | 1314 | ;; Adjust fill-column to allow space for the backslash. |
| 1309 | (fill-column (- fill-column 1))) | 1315 | (fill-column (- fill-column 1))) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2cb108cc316..35c5ba19e33 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2334,7 +2334,7 @@ Argument OUTPUT is a string with the output from the comint process." | |||
| 2334 | ;; encounters an exception, it prints the _entire_ stack | 2334 | ;; encounters an exception, it prints the _entire_ stack |
| 2335 | ;; trace. To handle all of these cases, we want to find | 2335 | ;; trace. To handle all of these cases, we want to find |
| 2336 | ;; the _last_ stack frame printed in the most recent | 2336 | ;; the _last_ stack frame printed in the most recent |
| 2337 | ;; batch of output, then jump to the corrsponding | 2337 | ;; batch of output, then jump to the corresponding |
| 2338 | ;; file/line number. | 2338 | ;; file/line number. |
| 2339 | (goto-char (point-max)) | 2339 | (goto-char (point-max)) |
| 2340 | (when (re-search-backward python-pdbtrack-stacktrace-info-regexp nil t) | 2340 | (when (re-search-backward python-pdbtrack-stacktrace-info-regexp nil t) |
diff --git a/lisp/replace.el b/lisp/replace.el index fb251821445..7757426cf95 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -1819,19 +1819,6 @@ make, or the user didn't cancel the call." | |||
| 1819 | case-fold-search)) | 1819 | case-fold-search)) |
| 1820 | (nocasify (not (and case-replace case-fold-search))) | 1820 | (nocasify (not (and case-replace case-fold-search))) |
| 1821 | (literal (or (not regexp-flag) (eq regexp-flag 'literal))) | 1821 | (literal (or (not regexp-flag) (eq regexp-flag 'literal))) |
| 1822 | (search-function | ||
| 1823 | (or (if regexp-flag | ||
| 1824 | replace-re-search-function | ||
| 1825 | replace-search-function) | ||
| 1826 | (let ((isearch-regexp regexp-flag) | ||
| 1827 | (isearch-word delimited-flag) | ||
| 1828 | (isearch-lax-whitespace | ||
| 1829 | replace-lax-whitespace) | ||
| 1830 | (isearch-regexp-lax-whitespace | ||
| 1831 | replace-regexp-lax-whitespace) | ||
| 1832 | (isearch-case-fold-search case-fold-search) | ||
| 1833 | (isearch-forward t)) | ||
| 1834 | (isearch-search-fun)))) | ||
| 1835 | (search-string from-string) | 1822 | (search-string from-string) |
| 1836 | (real-match-data nil) ; The match data for the current match. | 1823 | (real-match-data nil) ; The match data for the current match. |
| 1837 | (next-replacement nil) | 1824 | (next-replacement nil) |
| @@ -1894,39 +1881,62 @@ make, or the user didn't cancel the call." | |||
| 1894 | ;; Loop finding occurrences that perhaps should be replaced. | 1881 | ;; Loop finding occurrences that perhaps should be replaced. |
| 1895 | (while (and keep-going | 1882 | (while (and keep-going |
| 1896 | (not (or (eobp) (and limit (>= (point) limit)))) | 1883 | (not (or (eobp) (and limit (>= (point) limit)))) |
| 1897 | ;; Use the next match if it is already known; | 1884 | ;; Let-bind global isearch-* variables to values used |
| 1898 | ;; otherwise, search for a match after moving forward | 1885 | ;; to search the next replacement. These let-bindings |
| 1899 | ;; one char if progress is required. | 1886 | ;; should be effective both at the time of calling |
| 1900 | (setq real-match-data | 1887 | ;; `isearch-search-fun-default' and also at the |
| 1901 | (cond ((consp match-again) | 1888 | ;; time of funcalling `search-function'. |
| 1902 | (goto-char (nth 1 match-again)) | 1889 | ;; These isearch-* bindings can't be placed higher |
| 1903 | (replace-match-data | 1890 | ;; outside of this loop because then another I-search |
| 1904 | t real-match-data match-again)) | 1891 | ;; used after `recursive-edit' might override them. |
| 1905 | ;; MATCH-AGAIN non-nil means accept an | 1892 | (let* ((isearch-regexp regexp-flag) |
| 1906 | ;; adjacent match. | 1893 | (isearch-word delimited-flag) |
| 1907 | (match-again | 1894 | (isearch-lax-whitespace |
| 1908 | (and | 1895 | replace-lax-whitespace) |
| 1909 | (funcall search-function search-string | 1896 | (isearch-regexp-lax-whitespace |
| 1910 | limit t) | 1897 | replace-regexp-lax-whitespace) |
| 1911 | ;; For speed, use only integers and | 1898 | (isearch-case-fold-search case-fold-search) |
| 1912 | ;; reuse the list used last time. | 1899 | (isearch-adjusted nil) |
| 1913 | (replace-match-data t real-match-data))) | 1900 | (isearch-nonincremental t) ; don't use lax word mode |
| 1914 | ((and (< (1+ (point)) (point-max)) | 1901 | (isearch-forward t) |
| 1915 | (or (null limit) | 1902 | (search-function |
| 1916 | (< (1+ (point)) limit))) | 1903 | (or (if regexp-flag |
| 1917 | ;; If not accepting adjacent matches, | 1904 | replace-re-search-function |
| 1918 | ;; move one char to the right before | 1905 | replace-search-function) |
| 1919 | ;; searching again. Undo the motion | 1906 | (isearch-search-fun-default)))) |
| 1920 | ;; if the search fails. | 1907 | ;; Use the next match if it is already known; |
| 1921 | (let ((opoint (point))) | 1908 | ;; otherwise, search for a match after moving forward |
| 1922 | (forward-char 1) | 1909 | ;; one char if progress is required. |
| 1923 | (if (funcall | 1910 | (setq real-match-data |
| 1924 | search-function search-string | 1911 | (cond ((consp match-again) |
| 1925 | limit t) | 1912 | (goto-char (nth 1 match-again)) |
| 1926 | (replace-match-data | 1913 | (replace-match-data |
| 1927 | t real-match-data) | 1914 | t real-match-data match-again)) |
| 1928 | (goto-char opoint) | 1915 | ;; MATCH-AGAIN non-nil means accept an |
| 1929 | nil)))))) | 1916 | ;; adjacent match. |
| 1917 | (match-again | ||
| 1918 | (and | ||
| 1919 | (funcall search-function search-string | ||
| 1920 | limit t) | ||
| 1921 | ;; For speed, use only integers and | ||
| 1922 | ;; reuse the list used last time. | ||
| 1923 | (replace-match-data t real-match-data))) | ||
| 1924 | ((and (< (1+ (point)) (point-max)) | ||
| 1925 | (or (null limit) | ||
| 1926 | (< (1+ (point)) limit))) | ||
| 1927 | ;; If not accepting adjacent matches, | ||
| 1928 | ;; move one char to the right before | ||
| 1929 | ;; searching again. Undo the motion | ||
| 1930 | ;; if the search fails. | ||
| 1931 | (let ((opoint (point))) | ||
| 1932 | (forward-char 1) | ||
| 1933 | (if (funcall | ||
| 1934 | search-function search-string | ||
| 1935 | limit t) | ||
| 1936 | (replace-match-data | ||
| 1937 | t real-match-data) | ||
| 1938 | (goto-char opoint) | ||
| 1939 | nil))))))) | ||
| 1930 | 1940 | ||
| 1931 | ;; Record whether the match is nonempty, to avoid an infinite loop | 1941 | ;; Record whether the match is nonempty, to avoid an infinite loop |
| 1932 | ;; repeatedly matching the same empty string. | 1942 | ;; repeatedly matching the same empty string. |
diff --git a/lisp/simple.el b/lisp/simple.el index 3481a736648..d7541f68778 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -802,7 +802,7 @@ other words, it will work just like `just-one-space' command." | |||
| 802 | (unless (= start end) | 802 | (unless (= start end) |
| 803 | (cons orig-pos (buffer-substring start (point))))) | 803 | (cons orig-pos (buffer-substring start (point))))) |
| 804 | ;; If this run causes no change in buffer content, delete all spaces, | 804 | ;; If this run causes no change in buffer content, delete all spaces, |
| 805 | ;; otherwise delete all excees spaces. | 805 | ;; otherwise delete all excess spaces. |
| 806 | (delete-region (if (and (not single-shot) (zerop n) (= mid end)) | 806 | (delete-region (if (and (not single-shot) (zerop n) (= mid end)) |
| 807 | start mid) end) | 807 | start mid) end) |
| 808 | (insert (make-string n ?\s)))) | 808 | (insert (make-string n ?\s)))) |
diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el index 6ff4c720b71..eeb04ef250f 100644 --- a/lisp/textmodes/remember.el +++ b/lisp/textmodes/remember.el | |||
| @@ -432,8 +432,7 @@ If you want to remember a region, supply a universal prefix to | |||
| 432 | ;;;###autoload | 432 | ;;;###autoload |
| 433 | (defun remember-clipboard () | 433 | (defun remember-clipboard () |
| 434 | "Remember the contents of the current clipboard. | 434 | "Remember the contents of the current clipboard. |
| 435 | Most useful for remembering things from Netscape or other X Windows | 435 | Most useful for remembering things from other applications." |
| 436 | application." | ||
| 437 | (interactive) | 436 | (interactive) |
| 438 | (remember (current-kill 0))) | 437 | (remember (current-kill 0))) |
| 439 | 438 | ||