aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-12-05 15:20:02 -0500
committerStefan Monnier2014-12-05 15:20:02 -0500
commitfca389d1d3253c58e198efaa28d175106ce5022a (patch)
treeee26e3194caf1e854c2f5844aa772ae4bafaa314
parent0c3f76c6335de0a2d44db37c9ddf953654ca7f32 (diff)
parente97b6e6f11ceb85f4f3cbe1ecbbc46aa0a8de48a (diff)
downloademacs-fca389d1d3253c58e198efaa28d175106ce5022a.tar.gz
emacs-fca389d1d3253c58e198efaa28d175106ce5022a.zip
Merge from emacs-24
-rw-r--r--admin/gitmerge.el25
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/progmodes/prog-mode.el8
-rw-r--r--lisp/simple.el2
4 files changed, 31 insertions, 18 deletions
diff --git a/admin/gitmerge.el b/admin/gitmerge.el
index d2f906806c8..206f12c08ad 100644
--- a/admin/gitmerge.el
+++ b/admin/gitmerge.el
@@ -90,6 +90,14 @@ Auto-commit"
90 map) 90 map)
91 "Keymap for gitmerge major mode.") 91 "Keymap for gitmerge major mode.")
92 92
93
94(defvar gitmerge-mode-font-lock-keywords
95 `((,gitmerge-log-regexp
96 (1 font-lock-warning-face)
97 (2 font-lock-constant-face)
98 (3 font-lock-builtin-face)
99 (4 font-lock-comment-face))))
100
93(defvar gitmerge--commits nil) 101(defvar gitmerge--commits nil)
94(defvar gitmerge--from nil) 102(defvar gitmerge--from nil)
95 103
@@ -459,23 +467,12 @@ Branch FROM will be prepended to the list."
459 (prog1 (read (buffer-string)) 467 (prog1 (read (buffer-string))
460 (kill-buffer))))) 468 (kill-buffer)))))
461 469
462(defun gitmerge-mode () 470(define-derived-mode gitmerge-mode special-mode "gitmerge"
463 "Major mode for Emacs branch merging." 471 "Major mode for Emacs branch merging."
464 (interactive)
465 (kill-all-local-variables)
466 (setq major-mode 'gitmerge-mode)
467 (setq mode-name "gitmerge")
468 (set-syntax-table text-mode-syntax-table) 472 (set-syntax-table text-mode-syntax-table)
469 (use-local-map gitmerge-mode-map)
470 (make-local-variable 'font-lock-defaults)
471 (setq gitmerge-mode-font-lock-keywords
472 (list (list gitmerge-log-regexp
473 '(1 font-lock-warning-face)
474 '(2 font-lock-constant-face)
475 '(3 font-lock-builtin-face)
476 '(4 font-lock-comment-face))))
477 (setq buffer-read-only t) 473 (setq buffer-read-only t)
478 (setq font-lock-defaults '(gitmerge-mode-font-lock-keywords))) 474 (setq-local truncate-lines t)
475 (setq-local font-lock-defaults '(gitmerge-mode-font-lock-keywords)))
479 476
480(defun gitmerge (from) 477(defun gitmerge (from)
481 "Merge from branch FROM into `default-directory'." 478 "Merge from branch FROM into `default-directory'."
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2c6c377dfce..b4e51a6eebb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,19 @@
12014-12-05 Stefan Monnier <monnier@iro.umontreal.ca> 12014-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * progmodes/prog-mode.el (prettify-symbols--compose-symbol):
4 Fix handling of symbols with different syntax at beginning/end or with
5 symbol rather than word syntax.
6
72014-12-05 Eli Zaretskii <eliz@gnu.org>
8
9 * simple.el (line-move): If noninteractive, call line-move-1, not
10 forward-line, since the former is compatible with line-move-visual
11 both in terms of the column to which it moves and the return
12 value. (Bug#19211)
13
142014-12-05 Stephen Berman <stephen.berman@gmx.net>
152014-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
16
3 * vc/ediff-init.el (ediff-odd-p): Remove. 17 * vc/ediff-init.el (ediff-odd-p): Remove.
4 (ediff-background-face): Use cl-oddp instead. 18 (ediff-background-face): Use cl-oddp instead.
5 (ediff-buffer-live-p): Make it a defsubst. 19 (ediff-buffer-live-p): Make it a defsubst.
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el
index 5037020f94e..1cfe1568813 100644
--- a/lisp/progmodes/prog-mode.el
+++ b/lisp/progmodes/prog-mode.el
@@ -73,11 +73,13 @@ Regexp match data 0 points to the chars."
73 ;; Check that the chars should really be composed into a symbol. 73 ;; Check that the chars should really be composed into a symbol.
74 (let* ((start (match-beginning 0)) 74 (let* ((start (match-beginning 0))
75 (end (match-end 0)) 75 (end (match-end 0))
76 (syntaxes (if (eq (char-syntax (char-after start)) ?w) 76 (syntaxes-beg (if (memq (char-syntax (char-after start)) '(?w ?_))
77 '(?w ?_) '(?. ?\\)))
78 (syntaxes-end (if (memq (char-syntax (char-before end)) '(?w ?_))
77 '(?w ?_) '(?. ?\\))) 79 '(?w ?_) '(?. ?\\)))
78 match) 80 match)
79 (if (or (memq (char-syntax (or (char-before start) ?\s)) syntaxes) 81 (if (or (memq (char-syntax (or (char-before start) ?\s)) syntaxes-beg)
80 (memq (char-syntax (or (char-after end) ?\s)) syntaxes) 82 (memq (char-syntax (or (char-after end) ?\s)) syntaxes-end)
81 ;; syntax-ppss could modify the match data (bug#14595) 83 ;; syntax-ppss could modify the match data (bug#14595)
82 (progn (setq match (match-string 0)) (nth 8 (syntax-ppss)))) 84 (progn (setq match (match-string 0)) (nth 8 (syntax-ppss))))
83 ;; No composition for you. Let's actually remove any composition 85 ;; No composition for you. Let's actually remove any composition
diff --git a/lisp/simple.el b/lisp/simple.el
index 46b346a8fd2..900828aad1c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5541,7 +5541,7 @@ TRY-VSCROLL controls whether to vscroll tall lines: if either
5541`auto-window-vscroll' or TRY-VSCROLL is nil, this function will 5541`auto-window-vscroll' or TRY-VSCROLL is nil, this function will
5542not vscroll." 5542not vscroll."
5543 (if noninteractive 5543 (if noninteractive
5544 (forward-line arg) 5544 (line-move-1 arg noerror to-end)
5545 (unless (and auto-window-vscroll try-vscroll 5545 (unless (and auto-window-vscroll try-vscroll
5546 ;; Only vscroll for single line moves 5546 ;; Only vscroll for single line moves
5547 (= (abs arg) 1) 5547 (= (abs arg) 1)