aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-09-05 00:05:56 -0700
committerGlenn Morris2012-09-05 00:05:56 -0700
commit7e570fbf3ef8ccd31df2651f5d2775c5697d5950 (patch)
tree2a722a870a0240ded0b1fcffb34f52a1d7d668e3
parent1a1ecd2b14f38fcd995516a71b49c8810eac5828 (diff)
parentf1220388bca64f31182daacfb2eefcc8053af11a (diff)
downloademacs-7e570fbf3ef8ccd31df2651f5d2775c5697d5950.tar.gz
emacs-7e570fbf3ef8ccd31df2651f5d2775c5697d5950.zip
Merge from emacs-24; up to 2012-05-05T02:50:20Z!monnier@iro.umontreal.ca
-rw-r--r--lisp/ChangeLog22
-rw-r--r--lisp/calendar/holidays.el2
-rw-r--r--lisp/emulation/cua-rect.el2
-rw-r--r--lisp/play/blackbox.el2
-rw-r--r--lisp/progmodes/flymake.el5
-rw-r--r--lisp/progmodes/sh-script.el31
-rw-r--r--lisp/textmodes/picture.el8
7 files changed, 52 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 64dda45276c..817175ebfeb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,25 @@
12012-09-05 Glenn Morris <rgm@gnu.org>
2
3 * emulation/cua-rect.el (cua--init-rectangles):
4 * textmodes/picture.el (picture-mode-map):
5 * play/blackbox.el (blackbox-mode-map): Remap right-char and left-char
6 like forward-char and backward-char. (Bug#12317)
7
82012-09-05 Leo Liu <sdl.web@gmail.com>
9
10 * progmodes/flymake.el (flymake-warning-re): New variable.
11 (flymake-parse-line): Use it.
12
132012-09-05 Glenn Morris <rgm@gnu.org>
14
15 * calendar/holidays.el (holiday-christian-holidays):
16 Rename an entry. (Bug#12289)
17
182012-09-05 Stefan Monnier <monnier@iro.umontreal.ca>
19
20 * progmodes/sh-script.el (sh-font-lock-paren): Don't burp at BOB
21 (bug#12222).
22
12012-09-04 Stefan Monnier <monnier@iro.umontreal.ca> 232012-09-04 Stefan Monnier <monnier@iro.umontreal.ca>
2 24
3 * loadup.el: Load macroexp. Remove hack. 25 * loadup.el: Load macroexp. Remove hack.
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el
index 043d402f612..9643a1e2905 100644
--- a/lisp/calendar/holidays.el
+++ b/lisp/calendar/holidays.el
@@ -250,7 +250,7 @@ See the documentation for `calendar-holidays' for details."
250 (if calendar-christian-all-holidays-flag 250 (if calendar-christian-all-holidays-flag
251 (append 251 (append
252 (holiday-fixed 1 6 "Epiphany") 252 (holiday-fixed 1 6 "Epiphany")
253 (holiday-julian 12 25 "Eastern Orthodox Christmas") 253 (holiday-julian 12 25 "Christmas (Julian calendar)")
254 (holiday-greek-orthodox-easter) 254 (holiday-greek-orthodox-easter)
255 (holiday-fixed 8 15 "Assumption") 255 (holiday-fixed 8 15 "Assumption")
256 (holiday-advent 0 "Advent"))))) 256 (holiday-advent 0 "Advent")))))
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index 39ce5901524..f63d79adf47 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -1423,7 +1423,9 @@ With prefix arg, indent to that column."
1423 (define-key cua--rectangle-keymap [remap set-mark-command] 'cua-toggle-rectangle-mark) 1423 (define-key cua--rectangle-keymap [remap set-mark-command] 'cua-toggle-rectangle-mark)
1424 1424
1425 (define-key cua--rectangle-keymap [remap forward-char] 'cua-resize-rectangle-right) 1425 (define-key cua--rectangle-keymap [remap forward-char] 'cua-resize-rectangle-right)
1426 (define-key cua--rectangle-keymap [remap right-char] 'cua-resize-rectangle-right)
1426 (define-key cua--rectangle-keymap [remap backward-char] 'cua-resize-rectangle-left) 1427 (define-key cua--rectangle-keymap [remap backward-char] 'cua-resize-rectangle-left)
1428 (define-key cua--rectangle-keymap [remap left-char] 'cua-resize-rectangle-left)
1427 (define-key cua--rectangle-keymap [remap next-line] 'cua-resize-rectangle-down) 1429 (define-key cua--rectangle-keymap [remap next-line] 'cua-resize-rectangle-down)
1428 (define-key cua--rectangle-keymap [remap previous-line] 'cua-resize-rectangle-up) 1430 (define-key cua--rectangle-keymap [remap previous-line] 'cua-resize-rectangle-up)
1429 (define-key cua--rectangle-keymap [remap end-of-line] 'cua-resize-rectangle-eol) 1431 (define-key cua--rectangle-keymap [remap end-of-line] 'cua-resize-rectangle-eol)
diff --git a/lisp/play/blackbox.el b/lisp/play/blackbox.el
index db2e18188e5..16189600156 100644
--- a/lisp/play/blackbox.el
+++ b/lisp/play/blackbox.el
@@ -97,7 +97,9 @@
97 (let ((map (make-keymap))) 97 (let ((map (make-keymap)))
98 (suppress-keymap map t) 98 (suppress-keymap map t)
99 (blackbox-redefine-key map 'backward-char 'bb-left) 99 (blackbox-redefine-key map 'backward-char 'bb-left)
100 (blackbox-redefine-key map 'left-char 'bb-left)
100 (blackbox-redefine-key map 'forward-char 'bb-right) 101 (blackbox-redefine-key map 'forward-char 'bb-right)
102 (blackbox-redefine-key map 'right-char 'bb-right)
101 (blackbox-redefine-key map 'previous-line 'bb-up) 103 (blackbox-redefine-key map 'previous-line 'bb-up)
102 (blackbox-redefine-key map 'next-line 'bb-down) 104 (blackbox-redefine-key map 'next-line 'bb-down)
103 (blackbox-redefine-key map 'move-end-of-line 'bb-eol) 105 (blackbox-redefine-key map 'move-end-of-line 'bb-eol)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index ad285274928..10d5fdf9c64 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -977,6 +977,9 @@ from compile.el")
977;; :type '(repeat (string number number number)) 977;; :type '(repeat (string number number number))
978;;) 978;;)
979 979
980(defvar flymake-warning-re "^[wW]arning"
981 "Regexp matching against err-text to detect a warning.")
982
980(defun flymake-parse-line (line) 983(defun flymake-parse-line (line)
981 "Parse LINE to see if it is an error or warning. 984 "Parse LINE to see if it is an error or warning.
982Return its components if so, nil otherwise." 985Return its components if so, nil otherwise."
@@ -997,7 +1000,7 @@ Return its components if so, nil otherwise."
997 (match-string (nth 4 (car patterns)) line) 1000 (match-string (nth 4 (car patterns)) line)
998 (flymake-patch-err-text (substring line (match-end 0))))) 1001 (flymake-patch-err-text (substring line (match-end 0)))))
999 (or err-text (setq err-text "<no error text>")) 1002 (or err-text (setq err-text "<no error text>"))
1000 (if (and err-text (string-match "^[wW]arning" err-text)) 1003 (if (and err-text (string-match flymake-warning-re err-text))
1001 (setq err-type "w") 1004 (setq err-type "w")
1002 ) 1005 )
1003 (flymake-log 3 "parse line: file-idx=%s line-idx=%s file=%s line=%s text=%s" file-idx line-idx 1006 (flymake-log 3 "parse line: file-idx=%s line-idx=%s file=%s line=%s text=%s" file-idx line-idx
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index a422462775d..b4d550bcee0 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1062,21 +1062,22 @@ subshells can nest."
1062 (backward-char 1)) 1062 (backward-char 1))
1063 (when (eq (char-before) ?|) 1063 (when (eq (char-before) ?|)
1064 (backward-char 1) t))) 1064 (backward-char 1) t)))
1065 (when (progn (backward-char 2) 1065 (and (> (point) (1+ (point-min)))
1066 (if (> start (line-end-position)) 1066 (progn (backward-char 2)
1067 (put-text-property (point) (1+ start) 1067 (if (> start (line-end-position))
1068 'syntax-multiline t)) 1068 (put-text-property (point) (1+ start)
1069 ;; FIXME: The `in' may just be a random argument to 1069 'syntax-multiline t))
1070 ;; a normal command rather than the real `in' keyword. 1070 ;; FIXME: The `in' may just be a random argument to
1071 ;; I.e. we should look back to try and find the 1071 ;; a normal command rather than the real `in' keyword.
1072 ;; corresponding `case'. 1072 ;; I.e. we should look back to try and find the
1073 (and (looking-at ";[;&]\\|\\_<in") 1073 ;; corresponding `case'.
1074 ;; ";; esac )" is a case that looks like a case-pattern 1074 (and (looking-at ";[;&]\\|\\_<in")
1075 ;; but it's really just a close paren after a case 1075 ;; ";; esac )" is a case that looks like a case-pattern
1076 ;; statement. I.e. if we skipped over `esac' just now, 1076 ;; but it's really just a close paren after a case
1077 ;; we're not looking at a case-pattern. 1077 ;; statement. I.e. if we skipped over `esac' just now,
1078 (not (looking-at "..[ \t\n]+esac[^[:word:]_]")))) 1078 ;; we're not looking at a case-pattern.
1079 sh-st-punc)))) 1079 (not (looking-at "..[ \t\n]+esac[^[:word:]_]"))))
1080 sh-st-punc))))
1080 1081
1081(defun sh-font-lock-backslash-quote () 1082(defun sh-font-lock-backslash-quote ()
1082 (if (eq (save-excursion (nth 3 (syntax-ppss (match-beginning 0)))) ?\') 1083 (if (eq (save-excursion (nth 3 (syntax-ppss (match-beginning 0)))) ?\')
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el
index 24a4ac1b033..e663c1b45f4 100644
--- a/lisp/textmodes/picture.el
+++ b/lisp/textmodes/picture.el
@@ -612,13 +612,15 @@ Leaves the region surrounding the rectangle."
612 (define-key map [remap self-insert-command] 'picture-self-insert) 612 (define-key map [remap self-insert-command] 'picture-self-insert)
613 (define-key map [remap self-insert-command] 'picture-self-insert) 613 (define-key map [remap self-insert-command] 'picture-self-insert)
614 (define-key map [remap completion-separator-self-insert-command] 614 (define-key map [remap completion-separator-self-insert-command]
615 'picture-self-insert) 615 'picture-self-insert)
616 (define-key map [remap completion-separator-self-insert-autofilling] 616 (define-key map [remap completion-separator-self-insert-autofilling]
617 'picture-self-insert) 617 'picture-self-insert)
618 (define-key map [remap forward-char] 'picture-forward-column) 618 (define-key map [remap forward-char] 'picture-forward-column)
619 (define-key map [remap right-char] 'picture-forward-column)
619 (define-key map [remap backward-char] 'picture-backward-column) 620 (define-key map [remap backward-char] 'picture-backward-column)
621 (define-key map [remap left-char] 'picture-backward-column)
620 (define-key map [remap delete-char] 'picture-clear-column) 622 (define-key map [remap delete-char] 'picture-clear-column)
621 ;; There are two possibilities for what is normally on DEL. 623 ;; There are two possibilities for what is normally on DEL.
622 (define-key map [remap backward-delete-char-untabify] 624 (define-key map [remap backward-delete-char-untabify]
623 'picture-backward-clear-column) 625 'picture-backward-clear-column)
624 (define-key map [remap delete-backward-char] 'picture-backward-clear-column) 626 (define-key map [remap delete-backward-char] 'picture-backward-clear-column)