aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-16 02:06:12 +0000
committerGlenn Morris2007-10-16 02:06:12 +0000
commitd92c7a4637763b33180665fb6963e8d27efa8fcf (patch)
treebb0df5077291462c34b36759d8f806b965d466e2
parented5117041521183b6ac0403bddbb232c8e1e9907 (diff)
downloademacs-d92c7a4637763b33180665fb6963e8d27efa8fcf.tar.gz
emacs-d92c7a4637763b33180665fb6963e8d27efa8fcf.zip
Re-fill copyright header.
(blink-matching-open): Don't report false errors with the `$' syntax class.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/simple.el21
2 files changed, 18 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 79733686e16..155f410f9d2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,12 +1,7 @@
12007-10-15 Juanma Barranquero <lekktu@gmail.com> 12007-10-16 Glenn Morris <rgm@gnu.org>
2 2
3 * filesets.el (filesets-alist-get): Use `let' rather than `let*'. 3 * simple.el (blink-matching-open): Don't report false errors with
4 (filesets-ormap, filesets-sort-case-sensitive-flag) 4 the `$' syntax class.
5 (filesets-remake-shortcut, filesets-ingroup-collect-files):
6 Fix typos in docstrings.
7 (filesets-data-get-name, filesets-data-get-data)
8 (filesets-data-set, filesets-cmd-query-replace-getargs)
9 (filesets-ingroup-collect, filesets-find-or-display-file): Doc fixes.
10 5
112007-10-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62007-10-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12 7
diff --git a/lisp/simple.el b/lisp/simple.el
index 1d87c84c33f..e1cf249f01c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1,7 +1,8 @@
1;;; simple.el --- basic editing commands for Emacs 1;;; simple.el --- basic editing commands for Emacs
2 2
3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
5;; Free Software Foundation, Inc.
5 6
6;; Maintainer: FSF 7;; Maintainer: FSF
7;; Keywords: internal 8;; Keywords: internal
@@ -4485,7 +4486,8 @@ it skips the contents of comments that end before point."
4485 matching-paren 4486 matching-paren
4486 open-paren-line-string 4487 open-paren-line-string
4487 old-start 4488 old-start
4488 new-start) 4489 new-start
4490 isdollar)
4489 (save-excursion 4491 (save-excursion
4490 (save-restriction 4492 (save-restriction
4491 ;; Don't search for matching paren within minibuffer prompt. 4493 ;; Don't search for matching paren within minibuffer prompt.
@@ -4503,7 +4505,7 @@ it skips the contents of comments that end before point."
4503 (error nil))) 4505 (error nil)))
4504 (and blinkpos 4506 (and blinkpos
4505 ;; Not syntax '$'. 4507 ;; Not syntax '$'.
4506 (not (eq (syntax-class (syntax-after blinkpos)) 8)) 4508 (not (setq isdollar (eq (syntax-class (syntax-after blinkpos)) 8)))
4507 (setq matching-paren 4509 (setq matching-paren
4508 (let ((syntax (syntax-after blinkpos))) 4510 (let ((syntax (syntax-after blinkpos)))
4509 (and (consp syntax) 4511 (and (consp syntax)
@@ -4511,12 +4513,19 @@ it skips the contents of comments that end before point."
4511 (cdr syntax))))) 4513 (cdr syntax)))))
4512 (cond 4514 (cond
4513 ((not blinkpos) 4515 ((not blinkpos)
4514 (unless (and blink-matching-paren-distance (> new-start old-start)) 4516 ;; Don't complain when `$' with no blinkpos, because it
4517 ;; could just be the first one in the buffer.
4518 (unless (or (eq (syntax-class (syntax-after (1- oldpos))) 8)
4519 (and blink-matching-paren-distance
4520 (> new-start old-start))
4515 ;; When `blink-matching-paren-distance' is non-nil and we 4521 ;; When `blink-matching-paren-distance' is non-nil and we
4516 ;; didn't find a matching paren within that many characters 4522 ;; didn't find a matching paren within that many characters
4517 ;; don't display a message. 4523 ;; don't display a message.
4518 (message "Unmatched parenthesis"))) 4524 (message "Unmatched parenthesis"))))
4519 ((not (or (eq matching-paren (char-before oldpos)) 4525 ;; isdollar is for:
4526 ;; http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00871.html
4527 ((not (or isdollar
4528 (eq matching-paren (char-before oldpos))
4520 ;; The cdr might hold a new paren-class info rather than 4529 ;; The cdr might hold a new paren-class info rather than
4521 ;; a matching-char info, in which case the two CDRs 4530 ;; a matching-char info, in which case the two CDRs
4522 ;; should match. 4531 ;; should match.