aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2004-11-22 06:00:51 +0000
committerStefan Monnier2004-11-22 06:00:51 +0000
commitd8ac3d271c6ff4377b597006753df7dc074d1b55 (patch)
tree192990e5db8b5c93521ab1a6fd74edd9527b1507 /lisp
parentabe0aa3e2a84edd77b72dac37f9ffae9901a7ae8 (diff)
downloademacs-d8ac3d271c6ff4377b597006753df7dc074d1b55.tar.gz
emacs-d8ac3d271c6ff4377b597006753df7dc074d1b55.zip
(syntax-after): Undo last change.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/descr-text.el10
-rw-r--r--lisp/paren.el8
-rw-r--r--lisp/subr.el18
4 files changed, 27 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index de55e25b772..09af28a06d0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * descr-text.el (describe-char):
4 * paren.el (show-paren-function):
5 * subr.el (syntax-after): Undo last change.
6
7 * progmodes/python.el (run-python): Don't hard code *Python*.
8 Don't modify global process-environment.
9 (python-send-region, python-load-file): Don't assume that
10 python-buffer == (process-buffer (python-proc)).
11 (python-switch-to-python): Simplify.
12
13 * dired.el (dired-align-file): Don't assume line starts with spaces.
14
12004-11-21 Jay Belanger <belanger@truman.edu> 152004-11-21 Jay Belanger <belanger@truman.edu>
2 16
3 * calc/calc-ext.el (math-read-big-expr, math-read-big-bigp): 17 * calc/calc-ext.el (math-read-big-expr, math-read-big-bigp):
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 7dd6966a486..49b9b12154a 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -1,6 +1,7 @@
1;;; descr-text.el --- describe text mode 1;;; descr-text.el --- describe text mode
2 2
3;; Copyright (c) 1994, 95, 96, 2001, 02, 03, 04 Free Software Foundation, Inc. 3;; Copyright (c) 1994, 1995, 1996, 2001, 2002, 2003, 2004
4;; Free Software Foundation, Inc.
4 5
5;; Author: Boris Goldowsky <boris@gnu.org> 6;; Author: Boris Goldowsky <boris@gnu.org>
6;; Keywords: faces 7;; Keywords: faces
@@ -507,10 +508,7 @@ as well as widgets, buttons, overlays, and text properties."
507 (format "%d" (nth 1 split)) 508 (format "%d" (nth 1 split))
508 (format "%d %d" (nth 1 split) (nth 2 split))))) 509 (format "%d %d" (nth 1 split) (nth 2 split)))))
509 ("syntax" 510 ("syntax"
510 ,(let* ((st (if parse-sexp-lookup-properties 511 ,(let ((syntax (syntax-after pos)))
511 (get-char-property pos 'syntax-table)))
512 (syntax (if (consp st) st
513 (aref (or st (syntax-table)) (char-after pos)))))
514 (with-temp-buffer 512 (with-temp-buffer
515 (internal-describe-syntax-value syntax) 513 (internal-describe-syntax-value syntax)
516 (buffer-string)))) 514 (buffer-string))))
@@ -687,5 +685,5 @@ as well as widgets, buttons, overlays, and text properties."
687 685
688(provide 'descr-text) 686(provide 'descr-text)
689 687
690;;; arch-tag: fc55a498-f3e9-4312-b5bd-98cc02480af1 688;; arch-tag: fc55a498-f3e9-4312-b5bd-98cc02480af1
691;;; descr-text.el ends here 689;;; descr-text.el ends here
diff --git a/lisp/paren.el b/lisp/paren.el
index 10695a41098..e654cc2cc10 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -1,6 +1,6 @@
1;;; paren.el --- highlight matching paren 1;;; paren.el --- highlight matching paren
2 2
3;; Copyright (C) 1993, 1996, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1996, 2001, 2004 Free Software Foundation, Inc.
4 4
5;; Author: rms@gnu.org 5;; Author: rms@gnu.org
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -139,8 +139,8 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
139(defun show-paren-function () 139(defun show-paren-function ()
140 (if show-paren-mode 140 (if show-paren-mode
141 (let ((oldpos (point)) 141 (let ((oldpos (point))
142 (dir (cond ((eq (car (syntax-after (1- (point)))) ?\)) -1) 142 (dir (cond ((eq (car (syntax-after (1- (point)))) 5) -1)
143 ((eq (car (syntax-after (point))) ?\() 1))) 143 ((eq (car (syntax-after (point))) 4) 1)))
144 pos mismatch face) 144 pos mismatch face)
145 ;; 145 ;;
146 ;; Find the other end of the sexp. 146 ;; Find the other end of the sexp.
@@ -246,5 +246,5 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
246 246
247(provide 'paren) 247(provide 'paren)
248 248
249;;; arch-tag: d0969b88-7ac0-4bd0-bd53-e73b892b86a9 249;; arch-tag: d0969b88-7ac0-4bd0-bd53-e73b892b86a9
250;;; paren.el ends here 250;;; paren.el ends here
diff --git a/lisp/subr.el b/lisp/subr.el
index c8dfedbd8c6..b40c64c63eb 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2227,20 +2227,12 @@ from `standard-syntax-table' otherwise."
2227 table)) 2227 table))
2228 2228
2229(defun syntax-after (pos) 2229(defun syntax-after (pos)
2230 "Return the syntax of the char after POS. 2230 "Return the raw syntax of the char after POS."
2231The value is either a syntax class character (a character that designates
2232a syntax in `modify-syntax-entry'), or a cons cell
2233of the form (CLASS . MATCH), where CLASS is the syntax class character
2234and MATCH is the matching parenthesis."
2235 (unless (or (< pos (point-min)) (>= pos (point-max))) 2231 (unless (or (< pos (point-min)) (>= pos (point-max)))
2236 (let* ((st (if parse-sexp-lookup-properties 2232 (let ((st (if parse-sexp-lookup-properties
2237 (get-char-property pos 'syntax-table))) 2233 (get-char-property pos 'syntax-table))))
2238 (value 2234 (if (consp st) st
2239 (if (consp st) st 2235 (aref (or st (syntax-table)) (char-after pos))))))
2240 (aref (or st (syntax-table)) (char-after pos))))
2241 (code (if (consp value) (car value) value)))
2242 (setq code (aref "-.w_()'\"$\\/<>@!|" code))
2243 (if (consp value) (cons code (cdr value)) code))))
2244 2236
2245(defun add-to-invisibility-spec (arg) 2237(defun add-to-invisibility-spec (arg)
2246 "Add elements to `buffer-invisibility-spec'. 2238 "Add elements to `buffer-invisibility-spec'.