diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 33 | ||||
| -rw-r--r-- | lisp/hi-lock.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 |
3 files changed, 25 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cc30dc82341..01fb7223226 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,16 @@ | |||
| 1 | 2013-01-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol | ||
| 4 | (bug#13297). | ||
| 5 | |||
| 1 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> | 6 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 7 | ||
| 3 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove some | 8 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove some |
| 4 | checks made superfluous by the \_< operator. | 9 | checks made superfluous by the \_< operator. |
| 10 | * progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe | ||
| 11 | temporarily) broken indentation. | ||
| 12 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): | ||
| 13 | Highlight nested constants, too. \_< broke that. | ||
| 5 | 14 | ||
| 6 | 2013-01-27 Nobuyoshi Nakada <nobu@ruby-lang.org> | 15 | 2013-01-27 Nobuyoshi Nakada <nobu@ruby-lang.org> |
| 7 | 16 | ||
| @@ -113,8 +122,8 @@ | |||
| 113 | 122 | ||
| 114 | 2013-01-22 Michael Albinus <michael.albinus@gmx.de> | 123 | 2013-01-22 Michael Albinus <michael.albinus@gmx.de> |
| 115 | 124 | ||
| 116 | * net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): Mark | 125 | * net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): |
| 117 | descriptive parts with `display' property. | 126 | Mark descriptive parts with `display' property. |
| 118 | 127 | ||
| 119 | 2013-01-21 Agustín Martín Domingo <agustin.martin@hispalinux.es> | 128 | 2013-01-21 Agustín Martín Domingo <agustin.martin@hispalinux.es> |
| 120 | 129 | ||
| @@ -143,13 +152,13 @@ | |||
| 143 | 152 | ||
| 144 | * net/tramp-adb.el (top): Require `time-date'. | 153 | * net/tramp-adb.el (top): Require `time-date'. |
| 145 | (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'. | 154 | (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'. |
| 146 | (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use | 155 | (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): |
| 147 | `tramp-file-name-handler'. | 156 | Use `tramp-file-name-handler'. |
| 148 | (tramp-adb-maybe-open-connection): Use | 157 | (tramp-adb-maybe-open-connection): |
| 149 | `tramp-compat-set-process-query-on-exit-flag'. | 158 | Use `tramp-compat-set-process-query-on-exit-flag'. |
| 150 | 159 | ||
| 151 | * net/tramp-sh.el (tramp-sh-handle-file-acl): Use | 160 | * net/tramp-sh.el (tramp-sh-handle-file-acl): |
| 152 | `tramp-compat-funcall'. | 161 | Use `tramp-compat-funcall'. |
| 153 | 162 | ||
| 154 | * net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and | 163 | * net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and |
| 155 | `tramp-compat-funcall'. | 164 | `tramp-compat-funcall'. |
| @@ -189,8 +198,8 @@ | |||
| 189 | 2013-01-19 Christian Wittern <cwittern@gmail.com> (tiny change) | 198 | 2013-01-19 Christian Wittern <cwittern@gmail.com> (tiny change) |
| 190 | Chong Yidong <cyd@gnu.org> | 199 | Chong Yidong <cyd@gnu.org> |
| 191 | 200 | ||
| 192 | * image-mode.el (image-next-file, image-previous-file): New | 201 | * image-mode.el (image-next-file, image-previous-file): |
| 193 | commands (Bug#8453). | 202 | New commands (Bug#8453). |
| 194 | (image-mode-map): Bind them to n and p. | 203 | (image-mode-map): Bind them to n and p. |
| 195 | (image-mode--images-in-directory): New helper function. | 204 | (image-mode--images-in-directory): New helper function. |
| 196 | 205 | ||
| @@ -218,8 +227,8 @@ | |||
| 218 | 227 | ||
| 219 | * autorevert.el (auto-revert-use-notify): In the :set function, do | 228 | * autorevert.el (auto-revert-use-notify): In the :set function, do |
| 220 | not modify `kill-buffer-hook'. | 229 | not modify `kill-buffer-hook'. |
| 221 | (auto-revert-notify-rm-watch): Remove | 230 | (auto-revert-notify-rm-watch): |
| 222 | `auto-revert-notify-rm-watch' from `kill-buffer-hook'. | 231 | Remove `auto-revert-notify-rm-watch' from `kill-buffer-hook'. |
| 223 | (auto-revert-notify-add-watch): Do not call | 232 | (auto-revert-notify-add-watch): Do not call |
| 224 | `auto-revert-notify-rm-watch', but add it to a buffer local | 233 | `auto-revert-notify-rm-watch', but add it to a buffer local |
| 225 | `kill-buffer-hook'. | 234 | `kill-buffer-hook'. |
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index e7948614241..cbd8ac5ebad 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el | |||
| @@ -562,7 +562,8 @@ then remove all hi-lock highlighting." | |||
| 562 | (when keyword | 562 | (when keyword |
| 563 | (let ((face (hi-lock-keyword->face keyword))) | 563 | (let ((face (hi-lock-keyword->face keyword))) |
| 564 | ;; Make `face' the next one to use by default. | 564 | ;; Make `face' the next one to use by default. |
| 565 | (add-to-list 'hi-lock--unused-faces (face-name face))) | 565 | (when (symbolp face) ;Don't add it if it's a list (bug#13297). |
| 566 | (add-to-list 'hi-lock--unused-faces (face-name face)))) | ||
| 566 | (font-lock-remove-keywords nil (list keyword)) | 567 | (font-lock-remove-keywords nil (list keyword)) |
| 567 | (setq hi-lock-interactive-patterns | 568 | (setq hi-lock-interactive-patterns |
| 568 | (delq keyword hi-lock-interactive-patterns)) | 569 | (delq keyword hi-lock-interactive-patterns)) |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 989c00365a0..19d1ffe0a3b 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -905,7 +905,7 @@ current block, a sibling block, or an outer block. Do that (abs N) times." | |||
| 905 | ((and backward (looking-at "^=end\\>")) | 905 | ((and backward (looking-at "^=end\\>")) |
| 906 | (re-search-backward "^=begin\\>")) | 906 | (re-search-backward "^=begin\\>")) |
| 907 | (t | 907 | (t |
| 908 | (setq pos (current-indentation)) | 908 | (setq pos (ruby-calculate-indent)) |
| 909 | (cond | 909 | (cond |
| 910 | ;; Deeper indentation, we found a block. | 910 | ;; Deeper indentation, we found a block. |
| 911 | ;; FIXME: We can't recognize empty blocks this way. | 911 | ;; FIXME: We can't recognize empty blocks this way. |
| @@ -1613,7 +1613,7 @@ See `font-lock-syntax-table'.") | |||
| 1613 | '("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+" | 1613 | '("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+" |
| 1614 | 0 font-lock-variable-name-face) | 1614 | 0 font-lock-variable-name-face) |
| 1615 | ;; constants | 1615 | ;; constants |
| 1616 | '("\\_<\\([A-Z]+\\(\\w\\|_\\)*\\)" | 1616 | '("\\(?:\\_<\\|::\\)\\([A-Z]+\\(\\w\\|_\\)*\\)" |
| 1617 | 1 font-lock-type-face) | 1617 | 1 font-lock-type-face) |
| 1618 | '("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-constant-face) | 1618 | '("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-constant-face) |
| 1619 | ;; expression expansion | 1619 | ;; expression expansion |