aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ffap.el2
-rw-r--r--lisp/files.el24
-rw-r--r--lisp/misearch.el7
-rw-r--r--lisp/progmodes/cc-fonts.el45
4 files changed, 42 insertions, 36 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index d4e30a05dcc..452275ab8c2 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1004,7 +1004,7 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered."
1004 ;; Slightly controversial decisions: 1004 ;; Slightly controversial decisions:
1005 ;; * strip trailing "@" and ":" 1005 ;; * strip trailing "@" and ":"
1006 ;; * no commas (good for latex) 1006 ;; * no commas (good for latex)
1007 (file "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") 1007 (file "--:\\\\$\\{\\}+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
1008 ;; An url, or maybe a email/news message-id: 1008 ;; An url, or maybe a email/news message-id:
1009 (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?") 1009 (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?")
1010 ;; Find a string that does *not* contain a colon: 1010 ;; Find a string that does *not* contain a colon:
diff --git a/lisp/files.el b/lisp/files.el
index 0fdf0048ac4..eca52e0ddd3 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3931,17 +3931,19 @@ the old visited file has been renamed to the new name FILENAME."
3931 (make-local-variable 'backup-inhibited) 3931 (make-local-variable 'backup-inhibited)
3932 (setq backup-inhibited t))) 3932 (setq backup-inhibited t)))
3933 (let ((oauto buffer-auto-save-file-name)) 3933 (let ((oauto buffer-auto-save-file-name))
3934 ;; If auto-save was not already on, turn it on if appropriate. 3934 (cond ((null filename)
3935 (if (not buffer-auto-save-file-name) 3935 (setq buffer-auto-save-file-name nil))
3936 (and buffer-file-name auto-save-default 3936 ((not buffer-auto-save-file-name)
3937 (auto-save-mode t)) 3937 ;; If auto-save was not already on, turn it on if appropriate.
3938 ;; If auto save is on, start using a new name. 3938 (and buffer-file-name auto-save-default (auto-save-mode t)))
3939 ;; We deliberately don't rename or delete the old auto save 3939 (t
3940 ;; for the old visited file name. This is because perhaps 3940 ;; If auto save is on, start using a new name. We
3941 ;; the user wants to save the new state and then compare with the 3941 ;; deliberately don't rename or delete the old auto save
3942 ;; previous state from the auto save file. 3942 ;; for the old visited file name. This is because
3943 (setq buffer-auto-save-file-name 3943 ;; perhaps the user wants to save the new state and then
3944 (make-auto-save-file-name))) 3944 ;; compare with the previous state from the auto save
3945 ;; file.
3946 (setq buffer-auto-save-file-name (make-auto-save-file-name))))
3945 ;; Rename the old auto save file if any. 3947 ;; Rename the old auto save file if any.
3946 (and oauto buffer-auto-save-file-name 3948 (and oauto buffer-auto-save-file-name
3947 (file-exists-p oauto) 3949 (file-exists-p oauto)
diff --git a/lisp/misearch.el b/lisp/misearch.el
index 65969113d93..157b04d8a9e 100644
--- a/lisp/misearch.el
+++ b/lisp/misearch.el
@@ -92,9 +92,12 @@ Isearch starts.")
92The value is nil when the search still is in the initial buffer.") 92The value is nil when the search still is in the initial buffer.")
93 93
94;;;###autoload 94;;;###autoload
95(defvar multi-isearch-buffer-list nil) 95(defvar multi-isearch-buffer-list nil
96 "Sequence of buffers visited by multiple buffers Isearch.
97This is nil if Isearch is not currently searching more than one buffer.")
96;;;###autoload 98;;;###autoload
97(defvar multi-isearch-file-list nil) 99(defvar multi-isearch-file-list nil
100 "Sequence of files visited by multiple file buffers Isearch.")
98 101
99(defvar multi-isearch-orig-search-fun nil) 102(defvar multi-isearch-orig-search-fun nil)
100(defvar multi-isearch-orig-wrap nil) 103(defvar multi-isearch-orig-wrap nil)
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 9a1273ddcce..44172b05a56 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -539,28 +539,29 @@ stuff. Used on level 1 and higher."
539 (let* ((re (c-make-keywords-re nil 539 (let* ((re (c-make-keywords-re nil
540 (c-lang-const c-cpp-include-directives))) 540 (c-lang-const c-cpp-include-directives)))
541 (re-depth (regexp-opt-depth re))) 541 (re-depth (regexp-opt-depth re)))
542 `((,(concat noncontinued-line-end 542 ;; We used to use a font-lock "anchored matcher" here for
543 (c-lang-const c-opt-cpp-prefix) 543 ;; the paren syntax. This failed when the ">" was at EOL,
544 re 544 ;; since `font-lock-fontify-anchored-keywords' terminated
545 (c-lang-const c-syntactic-ws) 545 ;; its loop at EOL without executing our lambda form at
546 "\\(<[^>\n\r]*>?\\)") 546 ;; all.
547 (,(+ ncle-depth re-depth sws-depth 1) 547 `((,(c-make-font-lock-search-function
548 font-lock-string-face) 548 (concat noncontinued-line-end
549 549 (c-lang-const c-opt-cpp-prefix)
550 ;; Use an anchored matcher to put paren syntax 550 re
551 ;; on the brackets. 551 (c-lang-const c-syntactic-ws)
552 (,(byte-compile 552 "\\(<[^>\n\r]*>?\\)")
553 `(lambda (limit) 553 `(,(+ ncle-depth re-depth sws-depth 1)
554 (let ((beg (match-beginning 554 font-lock-string-face t)
555 ,(+ ncle-depth re-depth sws-depth 1))) 555 `((let ((beg (match-beginning
556 (end (1- (match-end ,(+ ncle-depth re-depth 556 ,(+ ncle-depth re-depth sws-depth 1)))
557 sws-depth 1))))) 557 (end (1- (match-end ,(+ ncle-depth re-depth
558 (if (eq (char-after end) ?>) 558 sws-depth 1)))))
559 (progn 559 (if (eq (char-after end) ?>)
560 (c-mark-<-as-paren beg) 560 (progn
561 (c-mark->-as-paren end)) 561 (c-mark-<-as-paren beg)
562 (c-unmark-<->-as-paren beg))) 562 (c-mark->-as-paren end))
563 nil))))))) 563 (c-unmark-<->-as-paren beg)))
564 nil))))))
564 565
565 ;; #define. 566 ;; #define.
566 ,@(when (c-lang-const c-opt-cpp-macro-define) 567 ,@(when (c-lang-const c-opt-cpp-macro-define)