1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/changeset/e6f8eb002359/
changeset: e6f8eb002359
user: acm
date: 2012-12-23 11:35:20
summary: Speed up fontification where there's large brace blocks.
cc-fonts.el (c-font-lock-enclosing-decls): Add a limit to a call of
c-beginning-of-decl-1.
affected #: 1 file
diff -r 0c31562f87fd76a707124ecddba15835454e25d9 -r e6f8eb00235954a871e6f44c161e09d34cd2af69 cc-fonts.el
--- a/cc-fonts.el
+++ b/cc-fonts.el
@@ -1558,6 +1558,7 @@
;; prevent a repeat invocation. See elisp/lispref page "Search-based
;; Fontification".
(let* ((paren-state (c-parse-state))
+ (decl-search-lim (c-determine-limit 1000))
decl-context in-typedef ps-elt)
;; Are we in any nested struct/union/class/etc. braces?
(while paren-state
@@ -1566,7 +1567,7 @@
(when (and (atom ps-elt)
(eq (char-after ps-elt) ?\{))
(goto-char ps-elt)
- (setq decl-context (c-beginning-of-decl-1)
+ (setq decl-context (c-beginning-of-decl-1 decl-search-lim)
in-typedef (looking-at c-typedef-key))
(if in-typedef (c-forward-token-2))
(when (and c-opt-block-decls-with-vars-key
Repository URL: https://bitbucket.org/xemacs/cc-mode/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches
1 new commit in prog-modes:
https://bitbucket.org/xemacs/prog-modes/changeset/59fd3f8a0af0/
changeset: 59fd3f8a0af0
user: matsl
date: 2012-12-16 01:55:05
summary: Go-mode sync with upstream version 14989.
affected #: 2 files
diff -r eacc4cb30d0cac7eab6d454237ffc2f85ea249f1 -r 59fd3f8a0af0e7edcaed099fa206d9886e12cbf8 ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-12-16 Mats Lidell <matsl(a)xemacs.org>
+
+ * go-mode.el: Sync with upstream version 14989.
+
2012-09-03 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 2.27 released.
diff -r eacc4cb30d0cac7eab6d454237ffc2f85ea249f1 -r 59fd3f8a0af0e7edcaed099fa206d9886e12cbf8 go-mode.el
--- a/go-mode.el
+++ b/go-mode.el
@@ -28,7 +28,7 @@
;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-;;; Synced up with: upstream go-mode.el 13677:c5f564efc620
+;;; Synced up with: upstream go-mode.el 14989:a522fb590152
;;; Commentary:
@@ -462,7 +462,7 @@
(if (or (>= (point) limit) (eobp))
(setq result nil)
(setq cs (go-mode-cs))
- (if cs
+ (if (and cs (>= (car cs) (point)))
(if (eq (= (char-after (car cs)) ?/) comment)
;; If inside the expected comment/string, highlight it.
(progn
Repository URL: https://bitbucket.org/xemacs/prog-modes/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches
APPROVE COMMIT
NOTE: This patch has been committed
# HG changeset patch
# User Mats Lidell <matsl(a)xemacs.org>
# Date 1355444376 -3600
# Node ID 9dc294ae3004d8bf4a793daeef11f559601ccb43
# Parent 7f4c8574a590f3e3457bdecf5716aa21a64626c8
Fix erroneous regular xpression in register.el. Thank you Stephen Turnbull.
lisp/ChangeLog additions:
2012-12-14 Mats Lidell <matsl(a)xemacs.org>
* register.el (describe-register-1): Fix erroneous regular
expression. Thank you Stephen Turnbull.
tests/ChangeLog additions:
2012-12-14 Mats Lidell <matsl(a)xemacs.org>
* automated/register-tests.el: New. Test for register.el. Test
case for bug in regular expression in describe-register-1
diff -r 7f4c8574a590 -r 9dc294ae3004 lisp/ChangeLog
--- a/lisp/ChangeLog Tue Nov 06 23:12:06 2012 +0000
+++ b/lisp/ChangeLog Fri Dec 14 01:19:36 2012 +0100
@@ -1,3 +1,8 @@
+2012-12-14 Mats Lidell <matsl(a)xemacs.org>
+
+ * register.el (describe-register-1): Fix erroneous regular
+ expression. Thank you Stephen Turnbull.
+
2012-11-06 Aidan Kehoe <kehoea(a)parhasard.net>
* cl-macs.el (equal, member, assoc, rassoc):
diff -r 7f4c8574a590 -r 9dc294ae3004 lisp/register.el
--- a/lisp/register.el Tue Nov 06 23:12:06 2012 +0000
+++ b/lisp/register.el Fri Dec 14 01:19:36 2012 +0100
@@ -1,6 +1,6 @@
;;; register.el --- register commands for Emacs
-;; Copyright (C) 1985, 1993, 1994, 1997 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1993, 1994, 1997, 2012 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: internal, dumped
@@ -237,7 +237,7 @@
(princ val))
(cond
;; Extract first N characters starting with first non-whitespace.
- ((string-match (format "[^ \t\n].\\{,%d\\}"
+ ((string-match (format "[^ \t\n].\\{0,%d\\}"
;; Deduct 6 for the spaces inserted below.
(min 20 (max 0 (- (window-width) 6))))
val)
diff -r 7f4c8574a590 -r 9dc294ae3004 tests/ChangeLog
--- a/tests/ChangeLog Tue Nov 06 23:12:06 2012 +0000
+++ b/tests/ChangeLog Fri Dec 14 01:19:36 2012 +0100
@@ -1,3 +1,8 @@
+2012-12-14 Mats Lidell <matsl(a)xemacs.org>
+
+ * automated/register-tests.el: New. Test for register.el. Test
+ case for bug in regular expression in describe-register-1
+
2012-10-13 Mats Lidell <matsl(a)xemacs.org>
* automated/process-tests.el: Simple test cases for
diff -r 7f4c8574a590 -r 9dc294ae3004 tests/automated/register-tests.el
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/automated/register-tests.el Fri Dec 14 01:19:36 2012 +0100
@@ -0,0 +1,48 @@
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; Author: Mats Lidell <matsl(a)xemacs.org>
+;; Maintainer:
+;; Created: 2012
+;; Keywords: tests
+
+;; This file is part of XEmacs.
+
+;; XEmacs is free software: you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by the
+;; Free Software Foundation, either version 3 of the License, or (at your
+;; option) any later version.
+
+;; XEmacs is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+;; for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Synched up with: Not in FSF.
+
+;;; Commentary:
+
+;; Test tag support.
+;; See test-harness.el for instructions on how to run these tests.
+
+(require 'test-harness)
+
+(let ((s "Short"))
+ (with-output-to-temp-buffer "*Output Register Tests*"
+ (set-register 'a s)
+ (Assert (equal (get-register 'a) s))
+ (Assert (equal (describe-register-1 'a t) s))
+ (Assert (equal (describe-register-1 'a) s))))
+
+;; describe-register-1 without verbose on depends on window-width
+;; which is 10!? in batch mode. Hence the short part of the string
+;; returned
+
+(let ((s "String longer than 5 chars"))
+ (with-output-to-temp-buffer "*Output Register Tests*"
+ (set-register 'a s)
+ (Assert (equal (get-register 'a) s))
+ (Assert (equal (describe-register-1 'a t) s))
+ (Assert (equal (describe-register-1 'a) (subseq s 0 5)))))
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches
1 new commit in XEmacs:
https://bitbucket.org/xemacs/xemacs/changeset/9dc294ae3004/
changeset: 9dc294ae3004
user: matsl
date: 2012-12-14 01:19:36
summary: Fix erroneous regular xpression in register.el. Thank you Stephen Turnbull.
lisp/ChangeLog additions:
2012-12-14 Mats Lidell <matsl(a)xemacs.org>
* register.el (describe-register-1): Fix erroneous regular
expression. Thank you Stephen Turnbull.
tests/ChangeLog additions:
2012-12-14 Mats Lidell <matsl(a)xemacs.org>
* automated/register-tests.el: New. Test for register.el. Test
case for bug in regular expression in describe-register-1
affected #: 4 files
diff -r 7f4c8574a590f3e3457bdecf5716aa21a64626c8 -r 9dc294ae3004d8bf4a793daeef11f559601ccb43 lisp/ChangeLog
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-14 Mats Lidell <matsl(a)xemacs.org>
+
+ * register.el (describe-register-1): Fix erroneous regular
+ expression. Thank you Stephen Turnbull.
+
2012-11-06 Aidan Kehoe <kehoea(a)parhasard.net>
* cl-macs.el (equal, member, assoc, rassoc):
diff -r 7f4c8574a590f3e3457bdecf5716aa21a64626c8 -r 9dc294ae3004d8bf4a793daeef11f559601ccb43 lisp/register.el
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -1,6 +1,6 @@
;;; register.el --- register commands for Emacs
-;; Copyright (C) 1985, 1993, 1994, 1997 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1993, 1994, 1997, 2012 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: internal, dumped
@@ -237,7 +237,7 @@
(princ val))
(cond
;; Extract first N characters starting with first non-whitespace.
- ((string-match (format "[^ \t\n].\\{,%d\\}"
+ ((string-match (format "[^ \t\n].\\{0,%d\\}"
;; Deduct 6 for the spaces inserted below.
(min 20 (max 0 (- (window-width) 6))))
val)
diff -r 7f4c8574a590f3e3457bdecf5716aa21a64626c8 -r 9dc294ae3004d8bf4a793daeef11f559601ccb43 tests/ChangeLog
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-14 Mats Lidell <matsl(a)xemacs.org>
+
+ * automated/register-tests.el: New. Test for register.el. Test
+ case for bug in regular expression in describe-register-1
+
2012-10-13 Mats Lidell <matsl(a)xemacs.org>
* automated/process-tests.el: Simple test cases for
diff -r 7f4c8574a590f3e3457bdecf5716aa21a64626c8 -r 9dc294ae3004d8bf4a793daeef11f559601ccb43 tests/automated/register-tests.el
--- /dev/null
+++ b/tests/automated/register-tests.el
@@ -0,0 +1,48 @@
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; Author: Mats Lidell <matsl(a)xemacs.org>
+;; Maintainer:
+;; Created: 2012
+;; Keywords: tests
+
+;; This file is part of XEmacs.
+
+;; XEmacs is free software: you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by the
+;; Free Software Foundation, either version 3 of the License, or (at your
+;; option) any later version.
+
+;; XEmacs is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+;; for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Synched up with: Not in FSF.
+
+;;; Commentary:
+
+;; Test tag support.
+;; See test-harness.el for instructions on how to run these tests.
+
+(require 'test-harness)
+
+(let ((s "Short"))
+ (with-output-to-temp-buffer "*Output Register Tests*"
+ (set-register 'a s)
+ (Assert (equal (get-register 'a) s))
+ (Assert (equal (describe-register-1 'a t) s))
+ (Assert (equal (describe-register-1 'a) s))))
+
+;; describe-register-1 without verbose on depends on window-width
+;; which is 10!? in batch mode. Hence the short part of the string
+;; returned
+
+(let ((s "String longer than 5 chars"))
+ (with-output-to-temp-buffer "*Output Register Tests*"
+ (set-register 'a s)
+ (Assert (equal (get-register 'a) s))
+ (Assert (equal (describe-register-1 'a t) s))
+ (Assert (equal (describe-register-1 'a) (subseq s 0 5)))))
Repository URL: https://bitbucket.org/xemacs/xemacs/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches