1992-05-30 22:12:04 +00:00
|
|
|
|
;;; lisp.el --- Lisp editing commands for Emacs
|
|
|
|
|
|
2006-12-07 05:06:17 +00:00
|
|
|
|
;; Copyright (C) 1985, 1986, 1994, 2000, 2001, 2002, 2003, 2004,
|
2008-01-07 01:14:52 +00:00
|
|
|
|
;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
1992-07-22 04:22:30 +00:00
|
|
|
|
|
1992-07-16 21:47:34 +00:00
|
|
|
|
;; Maintainer: FSF
|
1993-03-18 21:29:42 +00:00
|
|
|
|
;; Keywords: lisp, languages
|
1992-07-16 21:47:34 +00:00
|
|
|
|
|
1990-08-27 04:15:41 +00:00
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2007-07-25 04:14:29 +00:00
|
|
|
|
;; the Free Software Foundation; either version 3, or (at your option)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
;; any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs 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
|
1996-01-14 07:34:30 +00:00
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
2005-07-04 17:55:18 +00:00
|
|
|
|
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
|
;; Boston, MA 02110-1301, USA.
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
1993-03-22 03:27:18 +00:00
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
;; Lisp editing commands to go with Lisp major mode. More-or-less
|
|
|
|
|
;; applicable in other modes too.
|
1993-03-22 03:27:18 +00:00
|
|
|
|
|
1992-07-16 21:47:34 +00:00
|
|
|
|
;;; Code:
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
1994-03-15 23:36:48 +00:00
|
|
|
|
;; Note that this variable is used by non-lisp modes too.
|
1997-05-05 15:06:25 +00:00
|
|
|
|
(defcustom defun-prompt-regexp nil
|
2005-04-08 23:10:24 +00:00
|
|
|
|
"*If non-nil, a regexp to ignore before a defun.
|
1994-03-15 23:36:48 +00:00
|
|
|
|
This is only necessary if the opening paren or brace is not in column 0.
|
2005-04-08 23:10:24 +00:00
|
|
|
|
See function `beginning-of-defun'."
|
1997-09-09 02:57:48 +00:00
|
|
|
|
:type '(choice (const nil)
|
|
|
|
|
regexp)
|
1997-05-05 15:06:25 +00:00
|
|
|
|
:group 'lisp)
|
1994-04-20 01:11:35 +00:00
|
|
|
|
(make-variable-buffer-local 'defun-prompt-regexp)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
1997-05-05 15:06:25 +00:00
|
|
|
|
(defcustom parens-require-spaces t
|
2005-04-08 23:10:24 +00:00
|
|
|
|
"If non-nil, `insert-parentheses' inserts whitespace as needed."
|
1997-05-05 15:06:25 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:group 'lisp)
|
1993-06-14 22:58:54 +00:00
|
|
|
|
|
2000-09-29 03:30:04 +00:00
|
|
|
|
(defvar forward-sexp-function nil
|
|
|
|
|
"If non-nil, `forward-sexp' delegates to this function.
|
|
|
|
|
Should take the same arguments and behave similarly to `forward-sexp'.")
|
|
|
|
|
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(defun forward-sexp (&optional arg)
|
|
|
|
|
"Move forward across one balanced expression (sexp).
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do it that many times. Negative arg -N means
|
1991-03-12 20:00:05 +00:00
|
|
|
|
move backward across N balanced expressions."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
|
|
|
|
(or arg (setq arg 1))
|
2000-09-29 03:30:04 +00:00
|
|
|
|
(if forward-sexp-function
|
|
|
|
|
(funcall forward-sexp-function arg)
|
|
|
|
|
(goto-char (or (scan-sexps (point) arg) (buffer-end arg)))
|
|
|
|
|
(if (< arg 0) (backward-prefix-chars))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
|
|
|
|
(defun backward-sexp (&optional arg)
|
|
|
|
|
"Move backward across one balanced expression (sexp).
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do it that many times. Negative arg -N means
|
1991-03-12 20:00:05 +00:00
|
|
|
|
move forward across N balanced expressions."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
|
|
|
|
(or arg (setq arg 1))
|
|
|
|
|
(forward-sexp (- arg)))
|
|
|
|
|
|
2004-12-29 01:32:06 +00:00
|
|
|
|
(defun mark-sexp (&optional arg allow-extend)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
"Set mark ARG sexps from point.
|
1991-03-12 20:00:05 +00:00
|
|
|
|
The place mark goes is the same place \\[forward-sexp] would
|
2001-11-19 22:06:10 +00:00
|
|
|
|
move to with the same argument.
|
2004-12-29 01:32:06 +00:00
|
|
|
|
Interactively, if this command is repeated
|
2005-04-08 23:10:24 +00:00
|
|
|
|
or (in Transient Mark mode) if the mark is active,
|
2004-12-13 03:09:59 +00:00
|
|
|
|
it marks the next ARG sexps after the ones already marked."
|
2004-12-29 01:32:06 +00:00
|
|
|
|
(interactive "P\np")
|
|
|
|
|
(cond ((and allow-extend
|
|
|
|
|
(or (and (eq last-command this-command) (mark t))
|
|
|
|
|
(and transient-mark-mode mark-active)))
|
2004-10-12 16:05:55 +00:00
|
|
|
|
(setq arg (if arg (prefix-numeric-value arg)
|
2004-12-13 03:09:59 +00:00
|
|
|
|
(if (< (mark) (point)) -1 1)))
|
2002-02-15 08:53:15 +00:00
|
|
|
|
(set-mark
|
|
|
|
|
(save-excursion
|
2004-12-13 03:09:59 +00:00
|
|
|
|
(goto-char (mark))
|
|
|
|
|
(forward-sexp arg)
|
|
|
|
|
(point))))
|
2002-02-15 08:53:15 +00:00
|
|
|
|
(t
|
|
|
|
|
(push-mark
|
|
|
|
|
(save-excursion
|
2004-10-12 16:05:55 +00:00
|
|
|
|
(forward-sexp (prefix-numeric-value arg))
|
2002-02-15 08:53:15 +00:00
|
|
|
|
(point))
|
|
|
|
|
nil t))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
|
|
|
|
(defun forward-list (&optional arg)
|
|
|
|
|
"Move forward across one balanced group of parentheses.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do it that many times.
|
1990-08-27 04:15:41 +00:00
|
|
|
|
Negative arg -N means move backward across N groups of parentheses."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(or arg (setq arg 1))
|
|
|
|
|
(goto-char (or (scan-lists (point) arg 0) (buffer-end arg))))
|
|
|
|
|
|
|
|
|
|
(defun backward-list (&optional arg)
|
|
|
|
|
"Move backward across one balanced group of parentheses.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do it that many times.
|
1990-08-27 04:15:41 +00:00
|
|
|
|
Negative arg -N means move forward across N groups of parentheses."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(or arg (setq arg 1))
|
|
|
|
|
(forward-list (- arg)))
|
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(defun down-list (&optional arg)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
"Move forward down one level of parentheses.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do this that many times.
|
2000-10-13 11:46:11 +00:00
|
|
|
|
A negative argument means move backward but still go down a level."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(or arg (setq arg 1))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(let ((inc (if (> arg 0) 1 -1)))
|
|
|
|
|
(while (/= arg 0)
|
|
|
|
|
(goto-char (or (scan-lists (point) inc -1) (buffer-end arg)))
|
|
|
|
|
(setq arg (- arg inc)))))
|
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(defun backward-up-list (&optional arg)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
"Move backward out of one level of parentheses.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do this that many times.
|
2000-10-13 11:46:11 +00:00
|
|
|
|
A negative argument means move forward but still to a less deep spot."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(up-list (- (or arg 1))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(defun up-list (&optional arg)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
"Move forward out of one level of parentheses.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do this that many times.
|
2000-10-13 11:46:11 +00:00
|
|
|
|
A negative argument means move backward but still to a less deep spot."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(or arg (setq arg 1))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(let ((inc (if (> arg 0) 1 -1)))
|
|
|
|
|
(while (/= arg 0)
|
|
|
|
|
(goto-char (or (scan-lists (point) inc 1) (buffer-end arg)))
|
|
|
|
|
(setq arg (- arg inc)))))
|
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(defun kill-sexp (&optional arg)
|
2005-01-17 23:48:10 +00:00
|
|
|
|
"Kill the sexp (balanced expression) following point.
|
|
|
|
|
With ARG, kill that many sexps after point.
|
|
|
|
|
Negative arg -N means kill N sexps before point."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
|
|
|
|
(let ((opoint (point)))
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(forward-sexp (or arg 1))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(kill-region opoint (point))))
|
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(defun backward-kill-sexp (&optional arg)
|
2005-01-17 23:48:10 +00:00
|
|
|
|
"Kill the sexp (balanced expression) preceding point.
|
|
|
|
|
With ARG, kill that many sexps before point.
|
|
|
|
|
Negative arg -N means kill N sexps after point."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(kill-sexp (- (or arg 1))))
|
2004-09-04 12:56:54 +00:00
|
|
|
|
|
|
|
|
|
;; After Zmacs:
|
|
|
|
|
(defun kill-backward-up-list (&optional arg)
|
|
|
|
|
"Kill the form containing the current sexp, leaving the sexp itself.
|
|
|
|
|
A prefix argument ARG causes the relevant number of surrounding
|
|
|
|
|
forms to be removed."
|
|
|
|
|
(interactive "*p")
|
|
|
|
|
(let ((current-sexp (thing-at-point 'sexp)))
|
|
|
|
|
(if current-sexp
|
|
|
|
|
(save-excursion
|
|
|
|
|
(backward-up-list arg)
|
|
|
|
|
(kill-sexp)
|
|
|
|
|
(insert current-sexp))
|
|
|
|
|
(error "Not at a sexp"))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
2000-01-21 02:44:44 +00:00
|
|
|
|
(defvar beginning-of-defun-function nil
|
2000-01-05 15:08:36 +00:00
|
|
|
|
"If non-nil, function for `beginning-of-defun-raw' to call.
|
|
|
|
|
This is used to find the beginning of the defun instead of using the
|
2000-01-21 02:44:44 +00:00
|
|
|
|
normal recipe (see `beginning-of-defun'). Major modes can define this
|
|
|
|
|
if defining `defun-prompt-regexp' is not sufficient to handle the mode's
|
|
|
|
|
needs.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
|
2007-11-22 22:12:22 +00:00
|
|
|
|
The function takes the same argument as `beginning-of-defun' and should
|
|
|
|
|
behave similarly, returning non-nil if it found the beginning of a defun.
|
|
|
|
|
Ideally it should move to a point right before an open-paren which encloses
|
|
|
|
|
the body of the defun.")
|
2000-01-05 15:08:36 +00:00
|
|
|
|
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(defun beginning-of-defun (&optional arg)
|
|
|
|
|
"Move backward to the beginning of a defun.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
With ARG, do it that many times. Negative arg -N
|
1990-08-27 04:15:41 +00:00
|
|
|
|
means move forward to Nth following beginning of defun.
|
|
|
|
|
Returns t unless search stops due to beginning or end of buffer.
|
|
|
|
|
|
2000-01-21 02:44:44 +00:00
|
|
|
|
If variable `beginning-of-defun-function' is non-nil, its value
|
2006-12-17 22:56:39 +00:00
|
|
|
|
is called as a function to find the defun's beginning.
|
|
|
|
|
|
|
|
|
|
Normally a defun is assumed to start where there is a char with
|
|
|
|
|
open-parenthesis syntax at the beginning of a line. If
|
|
|
|
|
`defun-prompt-regexp' is non-nil, then a string which matches
|
|
|
|
|
that regexp may precede the open-parenthesis, and point ends up
|
|
|
|
|
at the beginning of the line.
|
|
|
|
|
|
|
|
|
|
If `defun-prompt-regexp' and `open-paren-in-column-0-is-defun-start'
|
|
|
|
|
are both nil, the function instead finds an open-paren at the
|
|
|
|
|
outermost level."
|
1994-03-18 02:21:52 +00:00
|
|
|
|
(interactive "p")
|
2004-12-14 12:18:11 +00:00
|
|
|
|
(or (not (eq this-command 'beginning-of-defun))
|
2004-12-13 03:09:59 +00:00
|
|
|
|
(eq last-command 'beginning-of-defun)
|
|
|
|
|
(and transient-mark-mode mark-active)
|
|
|
|
|
(push-mark))
|
1994-03-18 02:21:52 +00:00
|
|
|
|
(and (beginning-of-defun-raw arg)
|
|
|
|
|
(progn (beginning-of-line) t)))
|
|
|
|
|
|
|
|
|
|
(defun beginning-of-defun-raw (&optional arg)
|
|
|
|
|
"Move point to the character that starts a defun.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
This is identical to function `beginning-of-defun', except that point
|
|
|
|
|
does not move to the beginning of the line when `defun-prompt-regexp'
|
|
|
|
|
is non-nil.
|
|
|
|
|
|
2000-01-21 02:44:44 +00:00
|
|
|
|
If variable `beginning-of-defun-function' is non-nil, its value
|
|
|
|
|
is called as a function to find the defun's beginning."
|
2006-12-17 22:56:39 +00:00
|
|
|
|
(interactive "p") ; change this to "P", maybe, if we ever come to pass ARG
|
|
|
|
|
; to beginning-of-defun-function.
|
|
|
|
|
(unless arg (setq arg 1))
|
2006-11-08 19:22:33 +00:00
|
|
|
|
(cond
|
|
|
|
|
(beginning-of-defun-function
|
2007-11-22 22:12:22 +00:00
|
|
|
|
(condition-case nil
|
|
|
|
|
(funcall beginning-of-defun-function arg)
|
|
|
|
|
;; We used to define beginning-of-defun-function as taking no argument
|
|
|
|
|
;; but that makes it impossible to implement correct forward motion:
|
|
|
|
|
;; we used to use end-of-defun for that, but it's not supposed to do
|
|
|
|
|
;; the same thing (it moves to the end of a defun not to the beginning
|
|
|
|
|
;; of the next).
|
|
|
|
|
;; In case the beginning-of-defun-function uses the old calling
|
|
|
|
|
;; convention, fallback on the old implementation.
|
|
|
|
|
(wrong-number-of-arguments
|
|
|
|
|
(if (> arg 0)
|
|
|
|
|
(dotimes (i arg)
|
|
|
|
|
(funcall beginning-of-defun-function))
|
|
|
|
|
;; Better not call end-of-defun-function directly, in case
|
|
|
|
|
;; it's not defined.
|
|
|
|
|
(end-of-defun (- arg))))))
|
2006-11-08 19:22:33 +00:00
|
|
|
|
|
|
|
|
|
((or defun-prompt-regexp open-paren-in-column-0-is-defun-start)
|
|
|
|
|
(and (< arg 0) (not (eobp)) (forward-char 1))
|
2000-01-05 15:08:36 +00:00
|
|
|
|
(and (re-search-backward (if defun-prompt-regexp
|
2000-03-24 20:42:41 +00:00
|
|
|
|
(concat (if open-paren-in-column-0-is-defun-start
|
|
|
|
|
"^\\s(\\|" "")
|
2003-05-18 21:51:01 +00:00
|
|
|
|
"\\(?:" defun-prompt-regexp "\\)\\s(")
|
2000-01-05 15:08:36 +00:00
|
|
|
|
"^\\s(")
|
2006-11-08 19:22:33 +00:00
|
|
|
|
nil 'move arg)
|
|
|
|
|
(progn (goto-char (1- (match-end 0)))) t))
|
|
|
|
|
|
2006-12-17 22:56:39 +00:00
|
|
|
|
;; If open-paren-in-column-0-is-defun-start and defun-prompt-regexp
|
|
|
|
|
;; are both nil, column 0 has no significance - so scan forward
|
|
|
|
|
;; from BOB to see how nested point is, then carry on from there.
|
|
|
|
|
;;
|
|
|
|
|
;; It is generally not a good idea to land up here, because the
|
|
|
|
|
;; call to scan-lists below can be extremely slow. This is because
|
|
|
|
|
;; back_comment in syntax.c may have to scan from bob to find the
|
|
|
|
|
;; beginning of each comment. Fixing this is not trivial -- cyd.
|
|
|
|
|
|
|
|
|
|
((eq arg 0))
|
2006-11-08 19:22:33 +00:00
|
|
|
|
(t
|
2006-12-17 22:56:39 +00:00
|
|
|
|
(let ((floor (point-min))
|
|
|
|
|
(ceiling (point-max))
|
|
|
|
|
(arg-+ve (> arg 0)))
|
2006-11-08 19:22:33 +00:00
|
|
|
|
(save-restriction
|
|
|
|
|
(widen)
|
2006-12-17 22:56:39 +00:00
|
|
|
|
(let ((ppss (let (syntax-begin-function
|
|
|
|
|
font-lock-beginning-of-syntax-function)
|
|
|
|
|
(syntax-ppss)))
|
|
|
|
|
;; position of least enclosing paren, or nil.
|
|
|
|
|
encl-pos)
|
|
|
|
|
;; Back out of any comment/string, so that encl-pos will always
|
|
|
|
|
;; become nil if we're at top-level.
|
|
|
|
|
(when (nth 8 ppss)
|
|
|
|
|
(goto-char (nth 8 ppss))
|
|
|
|
|
(setq ppss (syntax-ppss))) ; should be fast, due to cache.
|
|
|
|
|
(setq encl-pos (syntax-ppss-toplevel-pos ppss))
|
|
|
|
|
(if encl-pos (goto-char encl-pos))
|
|
|
|
|
|
|
|
|
|
(and encl-pos arg-+ve (setq arg (1- arg)))
|
|
|
|
|
(and (not encl-pos) (not arg-+ve) (not (looking-at "\\s("))
|
|
|
|
|
(setq arg (1+ arg)))
|
|
|
|
|
|
|
|
|
|
(condition-case nil ; to catch crazy parens.
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (scan-lists (point) (- arg) 0))
|
|
|
|
|
(if arg-+ve
|
|
|
|
|
(if (>= (point) floor)
|
|
|
|
|
t
|
|
|
|
|
(goto-char floor)
|
|
|
|
|
nil)
|
|
|
|
|
;; forward to next (, or trigger the c-c
|
|
|
|
|
(goto-char (1- (scan-lists (point) 1 -1)))
|
|
|
|
|
(if (<= (point) ceiling)
|
|
|
|
|
t
|
|
|
|
|
(goto-char ceiling)
|
|
|
|
|
nil)))
|
|
|
|
|
(error
|
|
|
|
|
(goto-char (if arg-+ve floor ceiling))
|
|
|
|
|
nil))))))))
|
2000-01-05 15:08:36 +00:00
|
|
|
|
|
2007-11-26 20:27:12 +00:00
|
|
|
|
(defvar end-of-defun-function #'forward-sexp
|
|
|
|
|
"Function for `end-of-defun' to call.
|
|
|
|
|
This is used to find the end of the defun.
|
|
|
|
|
It is called with no argument, right after calling `beginning-of-defun-raw'.
|
|
|
|
|
So the function can assume that point is at the beginning of the defun body.")
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
|
|
|
|
(defun buffer-end (arg)
|
2005-04-08 23:10:24 +00:00
|
|
|
|
"Return the \"far end\" position of the buffer, in direction ARG.
|
2005-02-06 10:40:20 +00:00
|
|
|
|
If ARG is positive, that's the end of the buffer.
|
|
|
|
|
Otherwise, that's the beginning of the buffer."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(if (> arg 0) (point-max) (point-min)))
|
|
|
|
|
|
|
|
|
|
(defun end-of-defun (&optional arg)
|
2005-04-08 23:10:24 +00:00
|
|
|
|
"Move forward to next end of defun.
|
|
|
|
|
With argument, do it that many times.
|
1990-08-27 04:15:41 +00:00
|
|
|
|
Negative argument -N means move back to Nth preceding end of defun.
|
|
|
|
|
|
2000-01-05 15:08:36 +00:00
|
|
|
|
An end of a defun occurs right after the close-parenthesis that
|
|
|
|
|
matches the open-parenthesis that starts a defun; see function
|
2000-01-21 02:44:44 +00:00
|
|
|
|
`beginning-of-defun'.
|
|
|
|
|
|
|
|
|
|
If variable `end-of-defun-function' is non-nil, its value
|
|
|
|
|
is called as a function to find the defun's end."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "p")
|
2004-12-14 12:18:11 +00:00
|
|
|
|
(or (not (eq this-command 'end-of-defun))
|
2004-12-13 03:09:59 +00:00
|
|
|
|
(eq last-command 'end-of-defun)
|
|
|
|
|
(and transient-mark-mode mark-active)
|
|
|
|
|
(push-mark))
|
2004-04-14 18:20:23 +00:00
|
|
|
|
(if (or (null arg) (= arg 0)) (setq arg 1))
|
2007-11-26 20:27:12 +00:00
|
|
|
|
(while (> arg 0)
|
|
|
|
|
(let ((pos (point)))
|
|
|
|
|
(end-of-line 1)
|
|
|
|
|
(beginning-of-defun-raw 1)
|
|
|
|
|
(while (unless (eobp)
|
|
|
|
|
(funcall end-of-defun-function)
|
|
|
|
|
(skip-chars-forward " \t")
|
|
|
|
|
(if (looking-at "\\s<\\|\n")
|
|
|
|
|
(forward-line 1))
|
|
|
|
|
;; If we started after the end of the previous function, then
|
|
|
|
|
;; try again with the next one.
|
|
|
|
|
(when (<= (point) pos)
|
|
|
|
|
(or (bobp) (forward-char -1))
|
|
|
|
|
(beginning-of-defun-raw -1)
|
|
|
|
|
'try-again))))
|
|
|
|
|
(setq arg (1- arg)))
|
|
|
|
|
(while (< arg 0)
|
|
|
|
|
(let ((pos (point)))
|
|
|
|
|
(while (unless (bobp)
|
|
|
|
|
(beginning-of-line 1)
|
|
|
|
|
(beginning-of-defun-raw 1)
|
|
|
|
|
(let ((beg (point)))
|
|
|
|
|
(funcall end-of-defun-function)
|
|
|
|
|
(skip-chars-forward " \t")
|
|
|
|
|
(if (looking-at "\\s<\\|\n")
|
|
|
|
|
(forward-line 1))
|
|
|
|
|
;; If we started from within the function just found, then
|
|
|
|
|
;; try again with the previous one.
|
|
|
|
|
(when (>= (point) pos)
|
|
|
|
|
(goto-char beg)
|
|
|
|
|
'try-again)))))
|
|
|
|
|
(setq arg (1+ arg))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
2004-12-29 01:32:06 +00:00
|
|
|
|
(defun mark-defun (&optional allow-extend)
|
1990-08-27 04:15:41 +00:00
|
|
|
|
"Put mark at end of this defun, point at beginning.
|
2002-02-15 08:53:15 +00:00
|
|
|
|
The defun marked is the one that contains point or follows point.
|
2004-12-29 01:32:06 +00:00
|
|
|
|
|
|
|
|
|
Interactively, if this command is repeated
|
2005-04-08 23:10:24 +00:00
|
|
|
|
or (in Transient Mark mode) if the mark is active,
|
2004-12-29 01:32:06 +00:00
|
|
|
|
it marks the next defun after the ones already marked."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(cond ((and allow-extend
|
|
|
|
|
(or (and (eq last-command this-command) (mark t))
|
|
|
|
|
(and transient-mark-mode mark-active)))
|
2002-02-17 15:08:31 +00:00
|
|
|
|
(set-mark
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (mark))
|
|
|
|
|
(end-of-defun)
|
|
|
|
|
(point))))
|
|
|
|
|
(t
|
2004-05-22 07:41:55 +00:00
|
|
|
|
(let ((opoint (point))
|
|
|
|
|
beg end)
|
|
|
|
|
(push-mark opoint)
|
|
|
|
|
;; Try first in this order for the sake of languages with nested
|
|
|
|
|
;; functions where several can end at the same place as with
|
|
|
|
|
;; the offside rule, e.g. Python.
|
|
|
|
|
(beginning-of-defun)
|
|
|
|
|
(setq beg (point))
|
|
|
|
|
(end-of-defun)
|
|
|
|
|
(setq end (point))
|
|
|
|
|
(while (looking-at "^\n")
|
|
|
|
|
(forward-line 1))
|
|
|
|
|
(if (> (point) opoint)
|
|
|
|
|
(progn
|
|
|
|
|
;; We got the right defun.
|
|
|
|
|
(push-mark beg nil t)
|
|
|
|
|
(goto-char end)
|
|
|
|
|
(exchange-point-and-mark))
|
|
|
|
|
;; beginning-of-defun moved back one defun
|
|
|
|
|
;; so we got the wrong one.
|
|
|
|
|
(goto-char opoint)
|
|
|
|
|
(end-of-defun)
|
|
|
|
|
(push-mark (point) nil t)
|
|
|
|
|
(beginning-of-defun))
|
|
|
|
|
(re-search-backward "^\n" (- (point) 1) t)))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
1996-08-29 04:42:40 +00:00
|
|
|
|
(defun narrow-to-defun (&optional arg)
|
|
|
|
|
"Make text outside current defun invisible.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
The defun visible is the one that contains point or follows point.
|
|
|
|
|
Optional ARG is ignored."
|
1996-08-29 04:42:40 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(widen)
|
2004-05-22 07:41:55 +00:00
|
|
|
|
(let ((opoint (point))
|
|
|
|
|
beg end)
|
|
|
|
|
;; Try first in this order for the sake of languages with nested
|
|
|
|
|
;; functions where several can end at the same place as with
|
|
|
|
|
;; the offside rule, e.g. Python.
|
|
|
|
|
(beginning-of-defun)
|
|
|
|
|
(setq beg (point))
|
2004-01-29 17:56:42 +00:00
|
|
|
|
(end-of-defun)
|
2004-05-22 07:41:55 +00:00
|
|
|
|
(setq end (point))
|
|
|
|
|
(while (looking-at "^\n")
|
|
|
|
|
(forward-line 1))
|
|
|
|
|
(unless (> (point) opoint)
|
|
|
|
|
;; beginning-of-defun moved back one defun
|
|
|
|
|
;; so we got the wrong one.
|
|
|
|
|
(goto-char opoint)
|
|
|
|
|
(end-of-defun)
|
|
|
|
|
(setq end (point))
|
|
|
|
|
(beginning-of-defun)
|
|
|
|
|
(setq beg (point)))
|
|
|
|
|
(goto-char end)
|
|
|
|
|
(re-search-backward "^\n" (- (point) 1) t)
|
|
|
|
|
(narrow-to-region beg end))))
|
1996-08-29 04:42:40 +00:00
|
|
|
|
|
2004-05-28 21:12:25 +00:00
|
|
|
|
(defvar insert-pair-alist
|
|
|
|
|
'((?\( ?\)) (?\[ ?\]) (?\{ ?\}) (?\< ?\>) (?\" ?\") (?\' ?\') (?\` ?\'))
|
|
|
|
|
"Alist of paired characters inserted by `insert-pair'.
|
|
|
|
|
Each element looks like (OPEN-CHAR CLOSE-CHAR) or (COMMAND-CHAR
|
|
|
|
|
OPEN-CHAR CLOSE-CHAR). The characters OPEN-CHAR and CLOSE-CHAR
|
|
|
|
|
of the pair whose key is equal to the last input character with
|
|
|
|
|
or without modifiers, are inserted by `insert-pair'.")
|
|
|
|
|
|
|
|
|
|
(defun insert-pair (&optional arg open close)
|
2004-05-01 03:58:43 +00:00
|
|
|
|
"Enclose following ARG sexps in a pair of OPEN and CLOSE characters.
|
|
|
|
|
Leave point after the first character.
|
1996-10-08 23:13:39 +00:00
|
|
|
|
A negative ARG encloses the preceding ARG sexps instead.
|
2004-05-01 03:58:43 +00:00
|
|
|
|
No argument is equivalent to zero: just insert characters
|
|
|
|
|
and leave point between.
|
1994-02-07 22:57:35 +00:00
|
|
|
|
If `parens-require-spaces' is non-nil, this command also inserts a space
|
2004-05-01 03:58:43 +00:00
|
|
|
|
before and after, depending on the surrounding characters.
|
2004-05-28 21:12:25 +00:00
|
|
|
|
If region is active, insert enclosing characters at region boundaries.
|
|
|
|
|
|
|
|
|
|
If arguments OPEN and CLOSE are nil, the character pair is found
|
|
|
|
|
from the variable `insert-pair-alist' according to the last input
|
|
|
|
|
character with or without modifiers. If no character pair is
|
|
|
|
|
found in the variable `insert-pair-alist', then the last input
|
|
|
|
|
character is inserted ARG times."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive "P")
|
2004-05-28 21:12:25 +00:00
|
|
|
|
(if (not (and open close))
|
|
|
|
|
(let ((pair (or (assq last-command-char insert-pair-alist)
|
|
|
|
|
(assq (event-basic-type last-command-event)
|
|
|
|
|
insert-pair-alist))))
|
|
|
|
|
(if pair
|
|
|
|
|
(if (nth 2 pair)
|
|
|
|
|
(setq open (nth 1 pair) close (nth 2 pair))
|
|
|
|
|
(setq open (nth 0 pair) close (nth 1 pair))))))
|
|
|
|
|
(if (and open close)
|
|
|
|
|
(if (and transient-mark-mode mark-active)
|
|
|
|
|
(progn
|
|
|
|
|
(save-excursion (goto-char (region-end)) (insert close))
|
|
|
|
|
(save-excursion (goto-char (region-beginning)) (insert open)))
|
|
|
|
|
(if arg (setq arg (prefix-numeric-value arg))
|
|
|
|
|
(setq arg 0))
|
|
|
|
|
(cond ((> arg 0) (skip-chars-forward " \t"))
|
|
|
|
|
((< arg 0) (forward-sexp arg) (setq arg (- arg))))
|
|
|
|
|
(and parens-require-spaces
|
|
|
|
|
(not (bobp))
|
|
|
|
|
(memq (char-syntax (preceding-char)) (list ?w ?_ (char-syntax close)))
|
|
|
|
|
(insert " "))
|
|
|
|
|
(insert open)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(or (eq arg 0) (forward-sexp arg))
|
|
|
|
|
(insert close)
|
|
|
|
|
(and parens-require-spaces
|
|
|
|
|
(not (eobp))
|
|
|
|
|
(memq (char-syntax (following-char)) (list ?w ?_ (char-syntax open)))
|
|
|
|
|
(insert " "))))
|
|
|
|
|
(insert-char (event-basic-type last-command-event)
|
|
|
|
|
(prefix-numeric-value arg))))
|
|
|
|
|
|
|
|
|
|
(defun insert-parentheses (&optional arg)
|
2005-04-08 23:10:24 +00:00
|
|
|
|
"Enclose following ARG sexps in parentheses.
|
|
|
|
|
Leave point after open-paren.
|
2004-05-01 03:58:43 +00:00
|
|
|
|
A negative ARG encloses the preceding ARG sexps instead.
|
|
|
|
|
No argument is equivalent to zero: just insert `()' and leave point between.
|
|
|
|
|
If `parens-require-spaces' is non-nil, this command also inserts a space
|
|
|
|
|
before and after, depending on the surrounding characters.
|
|
|
|
|
If region is active, insert enclosing characters at region boundaries."
|
|
|
|
|
(interactive "P")
|
|
|
|
|
(insert-pair arg ?\( ?\)))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
2004-05-28 21:12:25 +00:00
|
|
|
|
(defun delete-pair ()
|
|
|
|
|
"Delete a pair of characters enclosing the sexp that follows point."
|
|
|
|
|
(interactive)
|
|
|
|
|
(save-excursion (forward-sexp 1) (delete-char -1))
|
|
|
|
|
(delete-char 1))
|
|
|
|
|
|
|
|
|
|
(defun raise-sexp (&optional arg)
|
|
|
|
|
"Raise ARG sexps higher up the tree."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(let ((s (if (and transient-mark-mode mark-active)
|
|
|
|
|
(buffer-substring (region-beginning) (region-end))
|
|
|
|
|
(buffer-substring
|
|
|
|
|
(point)
|
|
|
|
|
(save-excursion (forward-sexp arg) (point))))))
|
|
|
|
|
(backward-up-list 1)
|
|
|
|
|
(delete-region (point) (save-excursion (forward-sexp 1) (point)))
|
|
|
|
|
(save-excursion (insert s))))
|
|
|
|
|
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(defun move-past-close-and-reindent ()
|
|
|
|
|
"Move past next `)', delete indentation before it, then indent after it."
|
|
|
|
|
(interactive)
|
|
|
|
|
(up-list 1)
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
(while (save-excursion ; this is my contribution
|
|
|
|
|
(let ((before-paren (point)))
|
|
|
|
|
(back-to-indentation)
|
1997-09-07 01:12:07 +00:00
|
|
|
|
(and (= (point) before-paren)
|
|
|
|
|
(progn
|
|
|
|
|
;; Move to end of previous line.
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
;; Verify it doesn't end within a string or comment.
|
|
|
|
|
(let ((end (point))
|
|
|
|
|
state)
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; Get state at start of line.
|
2000-01-05 15:08:36 +00:00
|
|
|
|
(setq state (list 0 nil nil
|
1997-09-07 01:12:07 +00:00
|
|
|
|
(null (calculate-lisp-indent))
|
|
|
|
|
nil nil nil nil
|
|
|
|
|
nil))
|
|
|
|
|
;; Parse state across the line to get state at end.
|
|
|
|
|
(setq state (parse-partial-sexp (point) end nil nil
|
|
|
|
|
state))
|
|
|
|
|
;; Check not in string or comment.
|
|
|
|
|
(and (not (elt state 3)) (not (elt state 4))))))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(delete-indentation))
|
|
|
|
|
(forward-char 1)
|
|
|
|
|
(newline-and-indent))
|
2000-01-05 15:08:36 +00:00
|
|
|
|
|
|
|
|
|
(defun check-parens () ; lame name?
|
|
|
|
|
"Check for unbalanced parentheses in the current buffer.
|
|
|
|
|
More accurately, check the narrowed part of the buffer for unbalanced
|
|
|
|
|
expressions (\"sexps\") in general. This is done according to the
|
|
|
|
|
current syntax table and will find unbalanced brackets or quotes as
|
2005-05-18 08:29:38 +00:00
|
|
|
|
appropriate. (See Info node `(emacs)Parentheses'.) If imbalance is
|
2005-06-21 13:44:23 +00:00
|
|
|
|
found, an error is signaled and point is left at the first unbalanced
|
2005-05-18 08:29:38 +00:00
|
|
|
|
character."
|
2000-01-05 15:08:36 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(condition-case data
|
|
|
|
|
;; Buffer can't have more than (point-max) sexps.
|
|
|
|
|
(scan-sexps (point-min) (point-max))
|
|
|
|
|
(scan-error (goto-char (nth 2 data))
|
|
|
|
|
;; Could print (nth 1 data), which is either
|
|
|
|
|
;; "Containing expression ends prematurely" or
|
|
|
|
|
;; "Unbalanced parentheses", but those may not be so
|
|
|
|
|
;; accurate/helpful, e.g. quotes may actually be
|
|
|
|
|
;; mismatched.
|
2007-11-26 20:27:12 +00:00
|
|
|
|
(error "Unmatched bracket or quote"))))
|
1990-08-27 04:15:41 +00:00
|
|
|
|
|
2007-11-26 20:27:12 +00:00
|
|
|
|
(defun field-complete (table &optional predicate)
|
|
|
|
|
(let* ((pattern (field-string-no-properties))
|
|
|
|
|
(completion (try-completion pattern table predicate)))
|
|
|
|
|
(cond ((eq completion t))
|
|
|
|
|
((null completion)
|
|
|
|
|
(message "Can't find completion for \"%s\"" pattern)
|
|
|
|
|
(ding))
|
|
|
|
|
((not (string= pattern completion))
|
|
|
|
|
(delete-region (field-beginning) (field-end))
|
|
|
|
|
(insert completion)
|
|
|
|
|
;; Don't leave around a completions buffer that's out of date.
|
|
|
|
|
(let ((win (get-buffer-window "*Completions*" 0)))
|
|
|
|
|
(if win (with-selected-window win (bury-buffer)))))
|
|
|
|
|
(t
|
|
|
|
|
(let ((minibuf-is-in-use
|
|
|
|
|
(eq (minibuffer-window) (selected-window))))
|
|
|
|
|
(unless minibuf-is-in-use
|
|
|
|
|
(message "Making completion list..."))
|
|
|
|
|
(let ((list (all-completions pattern table predicate)))
|
|
|
|
|
(setq list (sort list 'string<))
|
|
|
|
|
(or (eq predicate 'fboundp)
|
|
|
|
|
(let (new)
|
|
|
|
|
(while list
|
|
|
|
|
(setq new (cons (if (fboundp (intern (car list)))
|
|
|
|
|
(list (car list) " <f>")
|
|
|
|
|
(car list))
|
|
|
|
|
new))
|
|
|
|
|
(setq list (cdr list)))
|
|
|
|
|
(setq list (nreverse new))))
|
|
|
|
|
(if (> (length list) 1)
|
|
|
|
|
(with-output-to-temp-buffer "*Completions*"
|
|
|
|
|
(display-completion-list list pattern))
|
|
|
|
|
;; Don't leave around a completions buffer that's
|
|
|
|
|
;; out of date.
|
|
|
|
|
(let ((win (get-buffer-window "*Completions*" 0)))
|
|
|
|
|
(if win (with-selected-window win (bury-buffer))))))
|
|
|
|
|
(unless minibuf-is-in-use
|
|
|
|
|
(message "Making completion list...%s" "done")))))))
|
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
(defun lisp-complete-symbol (&optional predicate)
|
1994-02-18 23:51:41 +00:00
|
|
|
|
"Perform completion on Lisp symbol preceding point.
|
|
|
|
|
Compare that symbol against the known Lisp symbols.
|
2002-01-11 21:22:28 +00:00
|
|
|
|
If no characters can be completed, display a list of possible completions.
|
|
|
|
|
Repeating the command at that point scrolls the list.
|
1994-02-18 23:51:41 +00:00
|
|
|
|
|
2000-08-20 18:12:07 +00:00
|
|
|
|
When called from a program, optional arg PREDICATE is a predicate
|
|
|
|
|
determining which symbols are considered, e.g. `commandp'.
|
|
|
|
|
If PREDICATE is nil, the context determines which symbols are
|
|
|
|
|
considered. If the symbol starts just after an open-parenthesis, only
|
|
|
|
|
symbols with function definitions are considered. Otherwise, all
|
|
|
|
|
symbols with function definitions, values or properties are
|
|
|
|
|
considered."
|
1990-08-27 04:15:41 +00:00
|
|
|
|
(interactive)
|
2007-03-28 00:54:08 +00:00
|
|
|
|
(let ((window (get-buffer-window "*Completions*" 0)))
|
2002-01-11 21:22:28 +00:00
|
|
|
|
(if (and (eq last-command this-command)
|
|
|
|
|
window (window-live-p window) (window-buffer window)
|
|
|
|
|
(buffer-name (window-buffer window)))
|
|
|
|
|
;; If this command was repeated, and
|
|
|
|
|
;; there's a fresh completion window with a live buffer,
|
|
|
|
|
;; and this command is repeated, scroll that window.
|
|
|
|
|
(with-current-buffer (window-buffer window)
|
|
|
|
|
(if (pos-visible-in-window-p (point-max) window)
|
|
|
|
|
(set-window-start window (point-min))
|
|
|
|
|
(save-selected-window
|
|
|
|
|
(select-window window)
|
|
|
|
|
(scroll-up))))
|
|
|
|
|
|
|
|
|
|
;; Do completion.
|
|
|
|
|
(let* ((end (point))
|
|
|
|
|
(beg (with-syntax-table emacs-lisp-mode-syntax-table
|
|
|
|
|
(save-excursion
|
|
|
|
|
(backward-sexp 1)
|
|
|
|
|
(while (= (char-syntax (following-char)) ?\')
|
|
|
|
|
(forward-char 1))
|
|
|
|
|
(point))))
|
|
|
|
|
(pattern (buffer-substring-no-properties beg end))
|
|
|
|
|
(predicate
|
|
|
|
|
(or predicate
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char beg)
|
|
|
|
|
(if (not (eq (char-before) ?\())
|
|
|
|
|
(lambda (sym) ;why not just nil ? -sm
|
|
|
|
|
(or (boundp sym) (fboundp sym)
|
|
|
|
|
(symbol-plist sym)))
|
|
|
|
|
;; Looks like a funcall position. Let's double check.
|
|
|
|
|
(if (condition-case nil
|
|
|
|
|
(progn (up-list -2) (forward-char 1)
|
|
|
|
|
(eq (char-after) ?\())
|
|
|
|
|
(error nil))
|
|
|
|
|
;; If the first element of the parent list is an open
|
|
|
|
|
;; parenthesis we are probably not in a funcall position.
|
|
|
|
|
;; Maybe a `let' varlist or something.
|
|
|
|
|
nil
|
|
|
|
|
;; Else, we assume that a function name is expected.
|
|
|
|
|
'fboundp)))))
|
|
|
|
|
(completion (try-completion pattern obarray predicate)))
|
|
|
|
|
(cond ((eq completion t))
|
|
|
|
|
((null completion)
|
|
|
|
|
(message "Can't find completion for \"%s\"" pattern)
|
|
|
|
|
(ding))
|
2005-12-22 01:48:20 +00:00
|
|
|
|
((not (string= pattern completion))
|
|
|
|
|
(delete-region beg end)
|
|
|
|
|
(insert completion)
|
2005-12-22 07:41:04 +00:00
|
|
|
|
;; Don't leave around a completions buffer that's out of date.
|
|
|
|
|
(let ((win (get-buffer-window "*Completions*" 0)))
|
|
|
|
|
(if win (with-selected-window win (bury-buffer)))))
|
2002-01-11 21:22:28 +00:00
|
|
|
|
(t
|
2005-12-22 07:41:04 +00:00
|
|
|
|
(let ((minibuf-is-in-use
|
|
|
|
|
(eq (minibuffer-window) (selected-window))))
|
|
|
|
|
(unless minibuf-is-in-use
|
|
|
|
|
(message "Making completion list..."))
|
|
|
|
|
(let ((list (all-completions pattern obarray predicate)))
|
|
|
|
|
(setq list (sort list 'string<))
|
|
|
|
|
(or (eq predicate 'fboundp)
|
|
|
|
|
(let (new)
|
|
|
|
|
(while list
|
|
|
|
|
(setq new (cons (if (fboundp (intern (car list)))
|
|
|
|
|
(list (car list) " <f>")
|
|
|
|
|
(car list))
|
|
|
|
|
new))
|
|
|
|
|
(setq list (cdr list)))
|
|
|
|
|
(setq list (nreverse new))))
|
|
|
|
|
(if (> (length list) 1)
|
|
|
|
|
(with-output-to-temp-buffer "*Completions*"
|
|
|
|
|
(display-completion-list list pattern))
|
|
|
|
|
;; Don't leave around a completions buffer that's
|
|
|
|
|
;; out of date.
|
|
|
|
|
(let ((win (get-buffer-window "*Completions*" 0)))
|
|
|
|
|
(if win (with-selected-window win (bury-buffer))))))
|
|
|
|
|
(unless minibuf-is-in-use
|
|
|
|
|
(message "Making completion list...%s" "done")))))))))
|
1992-05-30 22:12:04 +00:00
|
|
|
|
|
2005-12-21 20:02:20 +00:00
|
|
|
|
;; arch-tag: aa7fa8a4-2e6f-4e9b-9cd9-fef06340e67e
|
1992-05-30 22:12:04 +00:00
|
|
|
|
;;; lisp.el ends here
|