emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r117676: progmodes/cc-fonts.el (c-font-lock-declarat


From: Alan Mackenzie
Subject: [Emacs-diffs] trunk r117676: progmodes/cc-fonts.el (c-font-lock-declarators): Remove check for
Date: Sat, 09 Aug 2014 20:59:48 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117676
revision-id: address@hidden
parent: address@hidden
committer: Alan Mackenzie <address@hidden>
branch nick: trunk
timestamp: Sat 2014-08-09 20:54:04 +0000
message:
  progmodes/cc-fonts.el (c-font-lock-declarators): Remove check for
  top-level that can cause unacceptable slow-down in scrolling.
  See email Subject: Huge {...} blocks in C/C++ again, from Dmitry Antipov
  from 2013-10-14 in emacs-devel.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/progmodes/cc-fonts.el     ccfonts.el-20091113204419-o5vbwnq5f7feedwu-2930
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-08-08 14:35:40 +0000
+++ b/lisp/ChangeLog    2014-08-09 20:54:04 +0000
@@ -1,3 +1,10 @@
+2014-08-09  Alan Mackenzie  <address@hidden>
+
+       * progmodes/cc-fonts.el (c-font-lock-declarators): Remove check
+       for top-level that can cause unacceptable slow-down in scrolling.
+       See email Subject: Huge {...} blocks in C/C++ again, from Dmitry
+       Antipov from 2013-10-14 in emacs-devel.
+
 2014-08-08  RĂ¼diger Sonderfeld  <address@hidden>
 
        * ibuffer.el (ibuffer-mode-map): Use toggle button for

=== modified file 'lisp/progmodes/cc-fonts.el'
--- a/lisp/progmodes/cc-fonts.el        2014-08-02 18:52:48 +0000
+++ b/lisp/progmodes/cc-fonts.el        2014-08-09 20:54:04 +0000
@@ -1128,11 +1128,7 @@
 
       (setq next-pos (match-beginning 0)
            id-face (if (and (eq (char-after next-pos) ?\()
-                            (not brackets-after-id)
-                            (let (c-last-identifier-range)
-                              (save-excursion
-                                (goto-char next-pos)
-                                (c-at-toplevel-p))))
+                            (not brackets-after-id))
                        'font-lock-function-name-face
                      'font-lock-variable-name-face)
            got-init (and (match-beginning 1)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]