aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-09-29 03:18:24 +0000
committerStefan Monnier2000-09-29 03:18:24 +0000
commit76c64e2476b0096e0508beeb43512475ce4f8874 (patch)
tree73bdee61fb03254e30959287c2166d09f9192e51
parenta7996e05f08ce127f575c28e878121df2d3eb9ff (diff)
downloademacs-76c64e2476b0096e0508beeb43512475ce4f8874.tar.gz
emacs-76c64e2476b0096e0508beeb43512475ce4f8874.zip
(read-expression-map): Define more properly.
(comment-indent-hook): Remove. (string-to-syntax): Bug fix.
-rw-r--r--lisp/simple.el20
1 files changed, 9 insertions, 11 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index dde9c9f8eeb..82b2d52f5cb 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -53,7 +53,7 @@ Other major modes are defined by comparison with this one."
53(defun newline (&optional arg) 53(defun newline (&optional arg)
54 "Insert a newline, and move to left margin of the new line if it's blank. 54 "Insert a newline, and move to left margin of the new line if it's blank.
55The newline is marked with the text-property `hard'. 55The newline is marked with the text-property `hard'.
56With arg, insert that many newlines. 56With ARG, insert that many newlines.
57In Auto Fill mode, if no numeric arg, break the preceding line if it's long." 57In Auto Fill mode, if no numeric arg, break the preceding line if it's long."
58 (interactive "*P") 58 (interactive "*P")
59 (barf-if-buffer-read-only) 59 (barf-if-buffer-read-only)
@@ -521,9 +521,12 @@ in *Help* buffer. See also the command `describe-char-after'."
521 (buffer-substring-no-properties (point) (1+ (point)))) 521 (buffer-substring-no-properties (point) (1+ (point))))
522 encoding-msg pos total percent col hscroll)))))) 522 encoding-msg pos total percent col hscroll))))))
523 523
524(defvar read-expression-map (cons 'keymap minibuffer-local-map) 524(defvar read-expression-map
525 (let ((m (make-sparse-keymap)))
526 (define-key m "\M-\t" 'lisp-complete-symbol)
527 (set-keymap-parent m minibuffer-local-map)
528 m)
525 "Minibuffer keymap used for reading Lisp expressions.") 529 "Minibuffer keymap used for reading Lisp expressions.")
526(define-key read-expression-map "\M-\t" 'lisp-complete-symbol)
527 530
528(defvar read-expression-history nil) 531(defvar read-expression-history nil)
529 532
@@ -2628,11 +2631,6 @@ With argument 0, interchanges line point is in with line mark is in."
2628 (delete-region (point) (+ (point) len1)) 2631 (delete-region (point) (+ (point) len1))
2629 (insert word2))) 2632 (insert word2)))
2630 2633
2631(defvar comment-indent-hook nil
2632 "Obsolete variable for function to compute desired indentation for a comment.
2633This function is called with no args with point at the beginning of
2634the comment's starting delimiter.")
2635
2636(defun backward-word (arg) 2634(defun backward-word (arg)
2637 "Move backward until encountering the end of a word. 2635 "Move backward until encountering the end of a word.
2638With argument, do this that many times. 2636With argument, do this that many times.
@@ -3930,11 +3928,11 @@ text property."
3930 ;; Determine the matching character, if any. 3928 ;; Determine the matching character, if any.
3931 (when (and (> length 1) 3929 (when (and (> length 1)
3932 (memq first-char '(?\( ?\)))) 3930 (memq first-char '(?\( ?\))))
3933 (setq matching-char (aref string i) 3931 (setq matching-char (aref string i)))
3934 i (1+ i))) 3932 (setq i (1+ i))
3935 ;; Add any flags to the syntax code. 3933 ;; Add any flags to the syntax code.
3936 (while (< i length) 3934 (while (< i length)
3937 (let ((flag (or (assq (aref string i) syntax-flag-table) 3935 (let ((flag (or (cdr (assq (aref string i) syntax-flag-table))
3938 (error "Invalid syntax flag in `%s'" string)))) 3936 (error "Invalid syntax flag in `%s'" string))))
3939 (setq code (logior flag code)) 3937 (setq code (logior flag code))
3940 (setq i (1+ i)))) 3938 (setq i (1+ i))))