aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJoakim Verona2013-01-28 00:03:33 +0100
committerJoakim Verona2013-01-28 00:03:33 +0100
commit7a87fee72cf24500ee9e7f0b4a3effe77e2b3a53 (patch)
treea2ab223572d6bb71463836da2c95fa512234a255 /lisp
parent41d9ac9abdae964900a6f31087e6b9160635b2ba (diff)
parentb162502414d491f6893d962a49a88dfabac86fbf (diff)
downloademacs-7a87fee72cf24500ee9e7f0b4a3effe77e2b3a53.tar.gz
emacs-7a87fee72cf24500ee9e7f0b4a3effe77e2b3a53.zip
auto upstream
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/autorevert.el17
-rw-r--r--lisp/progmodes/ruby-mode.el8
3 files changed, 25 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7c510771264..cc30dc82341 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,18 @@
12013-01-27 Dmitry Gutov <dgutov@yandex.ru>
2
3 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove some
4 checks made superfluous by the \_< operator.
5
62013-01-27 Nobuyoshi Nakada <nobu@ruby-lang.org>
7
8 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Use "\\_<"
9 instead of "\\b".
10
112013-01-27 Michael Albinus <michael.albinus@gmx.de>
12
13 * autorevert.el (auto-revert-handler): Notifications which result
14 from a saved file shall not be taken into account. (Bug#13557)
15
12013-01-26 Andreas Schwab <schwab@linux-m68k.org> 162013-01-26 Andreas Schwab <schwab@linux-m68k.org>
2 17
3 * emacs-lisp/lisp-mode.el (lisp-mode-variables): Add optional 18 * emacs-lisp/lisp-mode.el (lisp-mode-variables): Add optional
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 25a953e1719..9270b98ac83 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -612,21 +612,16 @@ This is an internal function used by Auto-Revert Mode."
612 (or (and buffer-file-name 612 (or (and buffer-file-name
613 (or auto-revert-remote-files 613 (or auto-revert-remote-files
614 (not (file-remote-p buffer-file-name))) 614 (not (file-remote-p buffer-file-name)))
615 (or (not auto-revert-use-notify)
616 auto-revert-notify-modified-p)
615 (if auto-revert-tail-mode 617 (if auto-revert-tail-mode
616 (and (or (not auto-revert-use-notify) 618 (and (file-readable-p buffer-file-name)
617 auto-revert-notify-modified-p)
618 (file-readable-p buffer-file-name)
619 (/= auto-revert-tail-pos 619 (/= auto-revert-tail-pos
620 (setq size 620 (setq size
621 (nth 7 (file-attributes 621 (nth 7 (file-attributes
622 buffer-file-name))))) 622 buffer-file-name)))))
623 ;; When `auto-revert-use-notify' is set, we do 623 (and (file-readable-p buffer-file-name)
624 ;; not apply further checks for performance 624 (not (verify-visited-file-modtime buffer)))))
625 ;; reasons.
626 (if auto-revert-use-notify
627 auto-revert-notify-modified-p
628 (and (file-readable-p buffer-file-name)
629 (not (verify-visited-file-modtime buffer))))))
630 (and (or auto-revert-mode 625 (and (or auto-revert-mode
631 global-auto-revert-non-file-buffers) 626 global-auto-revert-non-file-buffers)
632 revert-buffer-function 627 revert-buffer-function
@@ -634,8 +629,8 @@ This is an internal function used by Auto-Revert Mode."
634 (functionp buffer-stale-function) 629 (functionp buffer-stale-function)
635 (funcall buffer-stale-function t)))) 630 (funcall buffer-stale-function t))))
636 eob eoblist) 631 eob eoblist)
632 (setq auto-revert-notify-modified-p nil)
637 (when revert 633 (when revert
638 (setq auto-revert-notify-modified-p nil)
639 (when (and auto-revert-verbose 634 (when (and auto-revert-verbose
640 (not (eq revert 'fast))) 635 (not (eq revert 'fast)))
641 (message "Reverting buffer `%s'." (buffer-name))) 636 (message "Reverting buffer `%s'." (buffer-name)))
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index a42a66dfa87..989c00365a0 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1552,7 +1552,7 @@ See `font-lock-syntax-table'.")
1552 1 font-lock-function-name-face) 1552 1 font-lock-function-name-face)
1553 ;; keywords 1553 ;; keywords
1554 (cons (concat 1554 (cons (concat
1555 "\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(defined\\?\\|" 1555 "\\(^\\|[^.@$]\\|\\.\\.\\)\\_<\\(defined\\?\\|"
1556 (regexp-opt 1556 (regexp-opt
1557 '("alias_method" 1557 '("alias_method"
1558 "alias" 1558 "alias"
@@ -1602,7 +1602,7 @@ See `font-lock-syntax-table'.")
1602 `(,ruby-here-doc-beg-re 0 (unless (ruby-singleton-class-p (match-beginning 0)) 1602 `(,ruby-here-doc-beg-re 0 (unless (ruby-singleton-class-p (match-beginning 0))
1603 'font-lock-string-face)) 1603 'font-lock-string-face))
1604 ;; variables 1604 ;; variables
1605 '("\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(nil\\|self\\|true\\|false\\)\\>" 1605 '("\\(^\\|[^.@$]\\|\\.\\.\\)\\_<\\(nil\\|self\\|true\\|false\\)\\>"
1606 2 font-lock-variable-name-face) 1606 2 font-lock-variable-name-face)
1607 ;; symbols 1607 ;; symbols
1608 '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" 1608 '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
@@ -1613,8 +1613,8 @@ 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 '("\\(^\\|[^_]\\)\\b\\([A-Z]+\\(\\w\\|_\\)*\\)" 1616 '("\\_<\\([A-Z]+\\(\\w\\|_\\)*\\)"
1617 2 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
1620 '(ruby-match-expression-expansion 1620 '(ruby-match-expression-expansion