annotate lisp/subr.el @ 684:bd574e49bfac

*** empty log message ***
author Roland McGrath <roland@gnu.org>
date Thu, 04 Jun 1992 04:33:43 +0000
parents 85fd29f25c75
children e4253da532fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
658
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 648
diff changeset
1 ;;; subr.el --- basic lisp subroutines for Emacs
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 648
diff changeset
2
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 1985, 1986 Free Software Foundation, Inc.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
4
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
5 ;; This file is part of GNU Emacs.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
6
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
7 ;; GNU Emacs is free software; you can redistribute it and/or modify
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
8 ;; it under the terms of the GNU General Public License as published by
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
9 ;; the Free Software Foundation; either version 1, or (at your option)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
10 ;; any later version.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
11
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
12 ;; GNU Emacs is distributed in the hope that it will be useful,
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
15 ;; GNU General Public License for more details.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
16
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
17 ;; You should have received a copy of the GNU General Public License
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
18 ;; along with GNU Emacs; see the file COPYING. If not, write to
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
19 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
20
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
21
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
22 (defun one-window-p (&optional arg)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
23 "Returns non-nil if there is only one window.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
24 Optional arg NOMINI non-nil means don't count the minibuffer
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
25 even if it is active."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
26 (eq (selected-window)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
27 (next-window (selected-window) (if arg 'arg))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
28
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
29 (defun walk-windows (proc &optional minibuf all-screens)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
30 "Cycle through all visible windows, calling PROC for each one.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
31 PROC is called with a window as argument.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
32 Optional second arg MINIBUF t means count the minibuffer window
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
33 even if not active. If MINIBUF is neither t nor nil it means
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
34 not to count the minibuffer even if it is active.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
35 Optional third arg ALL-SCREENS t means include all windows in all screens;
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
36 otherwise cycle within the selected screen."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
37 (let* ((walk-windows-start (selected-window))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
38 (walk-windows-current walk-windows-start))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
39 (while (progn
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
40 (setq walk-windows-current
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
41 (next-window walk-windows-current minibuf all-screens))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
42 (funcall proc walk-windows-current)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
43 (not (eq walk-windows-current walk-windows-start))))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
44
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
45 (defun read-quoted-char (&optional prompt)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
46 "Like `read-char', except that if the first character read is an octal
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
47 digit, we read up to two more octal digits and return the character
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
48 represented by the octal number consisting of those digits.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
49 Optional argument PROMPT specifies a string to use to prompt the user."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
50 (let ((count 0) (code 0) char)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
51 (while (< count 3)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
52 (let ((inhibit-quit (zerop count))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
53 (help-form nil))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
54 (and prompt (message "%s-" prompt))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
55 (setq char (read-char))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
56 (if inhibit-quit (setq quit-flag nil)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
57 (cond ((null char))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
58 ((and (<= ?0 char) (<= char ?7))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
59 (setq code (+ (* code 8) (- char ?0))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
60 count (1+ count))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
61 (and prompt (message (setq prompt
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
62 (format "%s %c" prompt char)))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
63 ((> count 0)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
64 (setq unread-command-char char count 259))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
65 (t (setq code char count 259))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
66 (logand 255 code)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
67
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
68 (defun error (&rest args)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
69 "Signal an error, making error message by passing all args to `format'."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
70 (while t
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
71 (signal 'error (list (apply 'format args)))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
72
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
73 (defun undefined ()
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
74 (interactive)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
75 (ding))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
76
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
77 ;Prevent the \{...} documentation construct
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
78 ;from mentioning keys that run this command.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
79 (put 'undefined 'suppress-keymap t)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
80
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
81 (defun suppress-keymap (map &optional nodigits)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
82 "Make MAP override all normally self-inserting keys to be undefined.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
83 Normally, as an exception, digits and minus-sign are set to make prefix args,
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
84 but optional second arg NODIGITS non-nil treats them like other chars."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
85 (let ((i 0))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
86 (while (<= i 127)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
87 (if (eql (lookup-key global-map (char-to-string i)) 'self-insert-command)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
88 (define-key map (char-to-string i) 'undefined))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
89 (setq i (1+ i))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
90 (or nodigits
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
91 (let (loop)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
92 (define-key map "-" 'negative-argument)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
93 ;; Make plain numbers do numeric args.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
94 (setq loop ?0)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
95 (while (<= loop ?9)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
96 (define-key map (char-to-string loop) 'digit-argument)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
97 (setq loop (1+ loop))))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
98
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
99 ;; now in fns.c
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
100 ;(defun nth (n list)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
101 ; "Returns the Nth element of LIST.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
102 ;N counts from zero. If LIST is not that long, nil is returned."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
103 ; (car (nthcdr n list)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
104 ;
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
105 ;(defun copy-alist (alist)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
106 ; "Return a copy of ALIST.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
107 ;This is a new alist which represents the same mapping
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
108 ;from objects to objects, but does not share the alist structure with ALIST.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
109 ;The objects mapped (cars and cdrs of elements of the alist)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
110 ;are shared, however."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
111 ; (setq alist (copy-sequence alist))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
112 ; (let ((tail alist))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
113 ; (while tail
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
114 ; (if (consp (car tail))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
115 ; (setcar tail (cons (car (car tail)) (cdr (car tail)))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
116 ; (setq tail (cdr tail))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
117 ; alist)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
118
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
119 ;Moved to keymap.c
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
120 ;(defun copy-keymap (keymap)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
121 ; "Return a copy of KEYMAP"
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
122 ; (while (not (keymapp keymap))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
123 ; (setq keymap (signal 'wrong-type-argument (list 'keymapp keymap))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
124 ; (if (vectorp keymap)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
125 ; (copy-sequence keymap)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
126 ; (copy-alist keymap)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
127
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
128 (defun substitute-key-definition (olddef newdef keymap)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
129 "Replace OLDDEF with NEWDEF for any keys in KEYMAP now defined as OLDDEF.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
130 In other words, OLDDEF is replaced with NEWDEF where ever it appears.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
131 Prefix keymaps reached from KEYMAP are not checked recursively;
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
132 perhaps they ought to be."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
133 (if (arrayp keymap)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
134 (let ((len (length keymap))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
135 (i 0))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
136 (while (< i len)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
137 (if (eq (aref keymap i) olddef)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
138 (aset keymap i newdef))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
139 (setq i (1+ i))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
140 (while keymap
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
141 (if (eq (cdr-safe (car-safe keymap)) olddef)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
142 (setcdr (car keymap) newdef))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
143 (setq keymap (cdr keymap)))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
144
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
145 ;; Avoids useless byte-compilation.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
146 ;; In the future, would be better to fix byte compiler
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
147 ;; not to really compile in cases like this,
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
148 ;; and use defun here.
293
7e7575d7b6d0 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 144
diff changeset
149 (fset 'ignore '(lambda (&rest ignore)
7e7575d7b6d0 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 144
diff changeset
150 "Do nothing.
7e7575d7b6d0 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 144
diff changeset
151 Accept any number of arguments, but ignore them."
7e7575d7b6d0 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 144
diff changeset
152 nil))
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
153
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
154
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
155 ; old names
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
156 (fset 'make-syntax-table 'copy-syntax-table)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
157 (fset 'dot 'point)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
158 (fset 'dot-marker 'point-marker)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
159 (fset 'dot-min 'point-min)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
160 (fset 'dot-max 'point-max)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
161 (fset 'window-dot 'window-point)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
162 (fset 'set-window-dot 'set-window-point)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
163 (fset 'read-input 'read-string)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
164 (fset 'send-string 'process-send-string)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
165 (fset 'send-region 'process-send-region)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
166 (fset 'show-buffer 'set-window-buffer)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
167 (fset 'buffer-flush-undo 'buffer-disable-undo)
675
85fd29f25c75 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 668
diff changeset
168 (fset 'eval-current-buffer 'eval-buffer)
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
169
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
170 ; alternate names
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
171 (fset 'string= 'string-equal)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
172 (fset 'string< 'string-lessp)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
173 (fset 'move-marker 'set-marker)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
174 (fset 'eql 'eq)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
175 (fset 'not 'null)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
176 (fset 'numberp 'integerp)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
177 (fset 'rplaca 'setcar)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
178 (fset 'rplacd 'setcdr)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
179 (fset 'beep 'ding) ;preserve lingual purtity
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
180 (fset 'indent-to-column 'indent-to)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
181 (fset 'backward-delete-char 'delete-backward-char)
353
38d331b3a0b8 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 293
diff changeset
182 (fset 'search-forward-regexp (symbol-function 're-search-forward))
38d331b3a0b8 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 293
diff changeset
183 (fset 'search-backward-regexp (symbol-function 're-search-backward))
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
184
388
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
185 ;;; global-map, esc-map, and ctl-x-map have their values set up
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
186 ;;; in keymap.c.
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
187 (defvar global-map nil
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
188 "Default global keymap mapping Emacs keyboard input into commands.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
189 The value is a keymap which is usually (but not necessarily) Emacs's
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
190 global map.")
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
191
388
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
192 (defvar esc-map nil
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
193 "Default keymap for ESC (meta) commands.
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
194 The normal global definition of the character ESC indirects to this keymap.")
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
195
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
196 (defvar ctl-x-map nil
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
197 "Default keymap for C-x commands.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
198 The normal global definition of the character C-x indirects to this keymap.")
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
199
388
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
200 (defvar ctl-x-4-map (make-sparse-keymap)
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
201 "Keymap for subcommands of C-x 4")
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
202 (fset 'ctl-x-4-prefix ctl-x-4-map)
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
203 (define-key ctl-x-map "4" 'ctl-x-4-prefix)
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
204
388
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
205 (defvar ctl-x-3-map (make-sparse-keymap)
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
206 "Keymap for screen commands.")
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
207 (fset 'ctl-x-3-prefix ctl-x-3-map)
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
208 (define-key ctl-x-map "3" 'ctl-x-3-prefix)
498bcec1cf3a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 384
diff changeset
209
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
210
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
211 (defun run-hooks (&rest hooklist)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
212 "Takes hook names and runs each one in turn. Major mode functions use this.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
213 Each argument should be a symbol, a hook variable.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
214 These symbols are processed in the order specified.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
215 If a hook symbol has a non-nil value, that value may be a function
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
216 or a list of functions to be called to run the hook.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
217 If the value is a function, it is called with no arguments.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
218 If it is a list, the elements are called, in order, with no arguments."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
219 (while hooklist
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
220 (let ((sym (car hooklist)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
221 (and (boundp sym)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
222 (symbol-value sym)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
223 (let ((value (symbol-value sym)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
224 (if (and (listp value) (not (eq (car value) 'lambda)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
225 (mapcar 'funcall value)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
226 (funcall value)))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
227 (setq hooklist (cdr hooklist))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
228
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
229 ;; Tell C code how to call this function.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
230 (defconst run-hooks 'run-hooks
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
231 "Variable by which C primitives find the function `run-hooks'.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
232 Don't change it.")
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
233
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
234 (defun add-hook (hook function)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
235 "Add to the value of HOOK the function FUNCTION unless already present.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
236 HOOK should be a symbol, and FUNCTION may be any valid function.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
237 HOOK's value should be a list of functions, not a single function.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
238 If HOOK is void, it is first set to nil."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
239 (or (boundp hook) (set hook nil))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
240 (or (if (consp function)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
241 ;; Clever way to tell whether a given lambda-expression
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
242 ;; is equal to anything in the hook.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
243 (let ((tail (assoc (cdr function) (symbol-value hook))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
244 (equal function tail))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
245 (memq function (symbol-value hook)))
384
9dab5ca1890f *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 353
diff changeset
246 (set hook (cons function (symbol-value hook)))))
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
247
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
248 (defun momentary-string-display (string pos &optional exit-char message)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
249 "Momentarily display STRING in the buffer at POS.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
250 Display remains until next character is typed.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
251 If the char is EXIT-CHAR (optional third arg, default is SPC) it is swallowed;
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
252 otherwise it is then available as input (as a command if nothing else).
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
253 Display MESSAGE (optional fourth arg) in the echo area.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
254 If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
255 (or exit-char (setq exit-char ?\ ))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
256 (let ((buffer-read-only nil)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
257 (modified (buffer-modified-p))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
258 (name buffer-file-name)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
259 insert-end)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
260 (unwind-protect
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
261 (progn
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
262 (save-excursion
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
263 (goto-char pos)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
264 ;; defeat file locking... don't try this at home, kids!
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
265 (setq buffer-file-name nil)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
266 (insert-before-markers string)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
267 (setq insert-end (point)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
268 (message (or message "Type %s to continue editing.")
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
269 (single-key-description exit-char))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
270 (let ((char (read-char)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
271 (or (eq char exit-char)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
272 (setq unread-command-char char))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
273 (if insert-end
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
274 (save-excursion
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
275 (delete-region pos insert-end)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
276 (setq buffer-file-name name)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
277 (set-buffer-modified-p modified))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
278
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
279 (defun start-process-shell-command (name buffer &rest args)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
280 "Start a program in a subprocess. Return the process object for it.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
281 Args are NAME BUFFER COMMAND &rest COMMAND-ARGS.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
282 NAME is name for process. It is modified if necessary to make it unique.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
283 BUFFER is the buffer or (buffer-name) to associate with the process.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
284 Process output goes at end of that buffer, unless you specify
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
285 an output stream or filter function to handle the output.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
286 BUFFER may be also nil, meaning that this process is not associated
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
287 with any buffer
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
288 Third arg is command name, the name of a shell command.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
289 Remaining arguments are the arguments for the command.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
290 Wildcards and redirection are handle as usual in the shell."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
291 (if (eq system-type 'vax-vms)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
292 (apply 'start-process name buffer args)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
293 (start-process name buffer shell-file-name "-c"
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
294 (concat "exec " (mapconcat 'identity args " ")))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
295
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
296 (defun eval-after-load (file form)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
297 "Arrange that, if FILE is ever loaded, FORM will be run at that time.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
298 This makes or adds to an entry on `after-load-alist'.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
299 FILE should be the name of a library, with no directory name."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
300 (or (assoc file after-load-alist)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
301 (setq after-load-alist (cons (list file) after-load-alist)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
302 (nconc (assoc file after-load-alist) (list form))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
303 form)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
304
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
305 (defun eval-next-after-load (file)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
306 "Read the following input sexp, and run it whenever FILE is loaded.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
307 This makes or adds to an entry on `after-load-alist'.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
308 FILE should be the name of a library, with no directory name."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
309 (eval-after-load file (read)))
144
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
310
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
311 (defmacro defun-inline (name args &rest body)
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
312 "Create an \"inline defun\" (actually a macro).
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
313 Use just like `defun'."
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
314 (nconc (list 'defmacro name '(&rest args))
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
315 (if (stringp (car body))
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
316 (prog1 (list (car body))
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
317 (setq body (or (cdr body) body))))
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
318 (list (list 'cons (list 'quote
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
319 (cons 'lambda (cons args body)))
535ec1aa78ef *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 114
diff changeset
320 'args))))
114
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
321
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
322 (defun user-original-login-name ()
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
323 "Return user's login name from original login.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
324 This tries to remain unaffected by `su', by looking in environment variables."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
325 (or (getenv "LOGNAME") (getenv "USER") (user-login-name)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
326
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
327 (defun force-mode-line-update (&optional all)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
328 "Force the mode-line of the current buffer to be redisplayed.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
329 With optional non-nil ALL then force then force redisplay of all mode-lines."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
330 (if all (save-excursion (set-buffer (other-buffer))))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
331 (set-buffer-modified-p (buffer-modified-p)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
332
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
333 (defun keyboard-translate (from to)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
334 "Translate character FROM to TO at a low level.
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
335 This function creates a `keyboard-translate-table' if necessary
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
336 and then modifies one entry in it."
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
337 (or (boundp 'keyboard-translate-table)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
338 (let ((table (make-string 256))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
339 (i 0))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
340 (while (< i 256)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
341 (aset table i i)
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
342 (setq i (1+ i)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
343 (setq keyboard-translate-table table)))
899728e6052a Initial revision
David Lawrence <tale@gnu.org>
parents:
diff changeset
344 (aset keyboard-translate-table from to))
648
70b112526394 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 388
diff changeset
345
70b112526394 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 388
diff changeset
346
70b112526394 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 388
diff changeset
347 (defmacro lambda (&rest cdr)
668
47871343371e *** empty log message ***
Noah Friedman <friedman@splode.com>
parents: 667
diff changeset
348 "Macro which allows one to write (lambda ...) for anonymous functions
47871343371e *** empty log message ***
Noah Friedman <friedman@splode.com>
parents: 667
diff changeset
349 instead of having to write (function (lambda ...)) or '(lambda ...), the
47871343371e *** empty log message ***
Noah Friedman <friedman@splode.com>
parents: 667
diff changeset
350 latter of which won't get byte-compiled."
648
70b112526394 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 388
diff changeset
351 (` (function (lambda (,@ cdr)))))
658
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 648
diff changeset
352
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 648
diff changeset
353 ;;; subr.el ends here