annotate lisp/emacs-lisp/lisp-mnt.el @ 14492:0ebde55bb21d

(lm-insert-at-column): Renamed from insert-at-column. All callers changed. (lm-synopsis): Add interactive spec.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 Feb 1996 21:30:40 +0000
parents c38a91e549b1
children 6ac4623cdc87
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
1 ;;; lisp-mnt.el --- minor mode for Emacs Lisp maintainers
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
2
7300
cc7cd83ccf3f Update copyright.
Karl Heuer <kwzh@gnu.org>
parents: 5359
diff changeset
3 ;; Copyright (C) 1992, 1994 Free Software Foundation, Inc.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
4
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
5 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
6 ;; Maintainer: Eric S. Raymond <esr@snark.thyrsus.com>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
7 ;; Created: 14 Jul 1992
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
8 ;; Version: $Id: lisp-mnt.el,v 1.13 1996/01/25 00:55:13 kwzh Exp rms $
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
9 ;; Keywords: docs
5221
50e623c19fff (Bogus-Bureaucratic-Cruft): Changed to `X-Bogus-Bureaucratic-Cruft'.
Noah Friedman <friedman@splode.com>
parents: 4291
diff changeset
10 ;; X-Bogus-Bureaucratic-Cruft: Gruad will get you if you don't watch out!
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
11
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
12 ;; This file is part of GNU Emacs.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
13
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
14 ;; GNU Emacs is free software; you can redistribute it and/or modify
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
15 ;; it under the terms of the GNU General Public License as published by
12244
ac7375e60931 Update GPL to version 2.
Karl Heuer <kwzh@gnu.org>
parents: 11035
diff changeset
16 ;; the Free Software Foundation; either version 2, or (at your option)
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
17 ;; any later version.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
18
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
19 ;; GNU Emacs is distributed in the hope that it will be useful,
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
22 ;; GNU General Public License for more details.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
23
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
24 ;; You should have received a copy of the GNU General Public License
14169
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 12244
diff changeset
25 ;; along with GNU Emacs; see the file COPYING. If not, write to the
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 12244
diff changeset
26 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 12244
diff changeset
27 ;; Boston, MA 02111-1307, USA.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
28
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
29 ;;; Commentary:
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
30
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
31 ;; This minor mode adds some services to Emacs-Lisp editing mode.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
32 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
33 ;; First, it knows about the header conventions for library packages.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
34 ;; One entry point supports generating synopses from a library directory.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
35 ;; Another can be used to check for missing headers in library files.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
36 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
37 ;; Another entry point automatically addresses bug mail to a package's
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
38 ;; maintainer or author.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
39
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
40 ;; This file can be loaded by your lisp-mode-hook. Have it (require 'lisp-mnt)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
41
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
42 ;; This file is an example of the header conventions. Note the following
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
43 ;; features:
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
44 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
45 ;; * Header line --- makes it possible to extract a one-line summary of
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
46 ;; the package's uses automatically for use in library synopses, KWIC
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
47 ;; indexes and the like.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
48 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
49 ;; Format is three semicolons, followed by the filename, followed by
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
50 ;; three dashes, followed by the summary. All fields space-separated.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
51 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
52 ;; * Author line --- contains the name and net address of at least
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
53 ;; the principal author.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
54 ;;
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
55 ;; If there are multiple authors, they should be listed on continuation
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
56 ;; lines led by ;;<TAB>, like this:
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
57 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
58 ;; ;; Author: Ashwin Ram <Ram-Ashwin@cs.yale.edu>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
59 ;; ;; Dave Sill <de5@ornl.gov>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
60 ;; ;; David Lawrence <tale@pawl.rpi.edu>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
61 ;; ;; Noah Friedman <friedman@ai.mit.edu>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
62 ;; ;; Joe Wells <jbw@maverick.uswest.com>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
63 ;; ;; Dave Brennan <brennan@hal.com>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
64 ;; ;; Eric Raymond <esr@snark.thyrsus.com>
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
65 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
66 ;; This field may have some special values; notably "FSF", meaning
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
67 ;; "Free Software Foundation".
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
68 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
69 ;; * Maintainer line --- should be a single name/address as in the Author
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
70 ;; line, or an address only, or the string "FSF". If there is no maintainer
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
71 ;; line, the person(s) in the Author field are presumed to be it. The example
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
72 ;; in this file is mildly bogus because the maintainer line is redundant.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
73 ;; The idea behind these two fields is to be able to write a lisp function
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
74 ;; that does "send mail to the author" without having to mine the name out by
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
75 ;; hand. Please be careful about surrounding the network address with <> if
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
76 ;; there's also a name in the field.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
77 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
78 ;; * Created line --- optional, gives the original creation date of the
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
79 ;; file. For historical interest, basically.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
80 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
81 ;; * Version line --- intended to give the reader a clue if they're looking
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
82 ;; at a different version of the file than the one they're accustomed to. This
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
83 ;; may be an RCS or SCCS header.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
84 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
85 ;; * Adapted-By line --- this is for FSF's internal use. The person named
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
86 ;; in this field was the one responsible for installing and adapting the
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
87 ;; package for the distribution. (This file doesn't have one because the
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
88 ;; author *is* one of the maintainers.)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
89 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
90 ;; * Keywords line --- used by the finder code (now under construction)
11035
97da4cb32d03 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 7940
diff changeset
91 ;; for finding Emacs Lisp code related to a topic.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
92 ;;
5221
50e623c19fff (Bogus-Bureaucratic-Cruft): Changed to `X-Bogus-Bureaucratic-Cruft'.
Noah Friedman <friedman@splode.com>
parents: 4291
diff changeset
93 ;; * X-Bogus-Bureaucratic-Cruft line --- this is a joke and an example
50e623c19fff (Bogus-Bureaucratic-Cruft): Changed to `X-Bogus-Bureaucratic-Cruft'.
Noah Friedman <friedman@splode.com>
parents: 4291
diff changeset
94 ;; of a comment header. Headers starting with `X-' should never be used
50e623c19fff (Bogus-Bureaucratic-Cruft): Changed to `X-Bogus-Bureaucratic-Cruft'.
Noah Friedman <friedman@splode.com>
parents: 4291
diff changeset
95 ;; for any real purpose; this is the way to safely add random headers
50e623c19fff (Bogus-Bureaucratic-Cruft): Changed to `X-Bogus-Bureaucratic-Cruft'.
Noah Friedman <friedman@splode.com>
parents: 4291
diff changeset
96 ;; without invoking the wrath of any program.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
97 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
98 ;; * Commentary line --- enables lisp code to find the developer's and
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
99 ;; maintainers' explanations of the package internals.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
100 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
101 ;; * Change log line --- optional, exists to terminate the commentary
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
102 ;; section and start a change-log part, if one exists.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
103 ;;
11035
97da4cb32d03 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 7940
diff changeset
104 ;; * Code line --- exists so Lisp can know where commentary and/or
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
105 ;; change-log sections end.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
106 ;;
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
107 ;; * Footer line --- marks end-of-file so it can be distinguished from
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
108 ;; an expanded formfeed or the results of truncation.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
109
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
110 ;;; Change Log:
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
111
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
112 ;; Tue Jul 14 23:44:17 1992 ESR
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
113 ;; * Created.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
114
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
115 ;;; Code:
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
116
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
117 (require 'picture) ; provides move-to-column-force
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
118 (require 'emacsbug)
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
119
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
120 ;; These functions all parse the headers of the current buffer
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
121
2528
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
122 (defun lm-section-mark (hd &optional after)
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
123 ;; Return the buffer location of a given section start marker
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
124 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
125 (let ((case-fold-search t))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
126 (goto-char (point-min))
7940
02a4dee04373 (lm-section-mark): Accept extra semicolons;
Richard M. Stallman <rms@gnu.org>
parents: 7300
diff changeset
127 (if (re-search-forward (concat "^;;;;* " hd ":[ \t]*$") nil t)
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
128 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
129 (beginning-of-line)
2528
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
130 (if after (forward-line 1))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
131 (point))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
132 nil))))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
133
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
134 (defun lm-code-mark ()
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
135 ;; Return the buffer location of the code start marker
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
136 (lm-section-mark "Code"))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
137
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
138 (defun lm-header (hd)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
139 ;; Return the contents of a named header
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
140 (goto-char (point-min))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
141 (let ((case-fold-search t))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
142 (if (re-search-forward
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
143 (concat "^;; " hd ": \\(.*\\)") (lm-code-mark) t)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
144 (buffer-substring (match-beginning 1) (match-end 1))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
145 nil)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
146
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
147 (defun lm-header-multiline (hd)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
148 ;; Return the contents of a named header, with possible continuation lines.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
149 ;; Note -- the returned value is a list of strings, one per line.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
150 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
151 (goto-char (point-min))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
152 (let ((res (save-excursion (lm-header hd))))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
153 (if res
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
154 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
155 (forward-line 1)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
156 (setq res (list res))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
157 (while (looking-at "^;;\t\\(.*\\)")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
158 (setq res (cons (buffer-substring
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
159 (match-beginning 1)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
160 (match-end 1))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
161 res))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
162 (forward-line 1))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
163 ))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
164 res)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
165
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
166 ;; These give us smart access to the header fields and commentary
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
167
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
168 (defun lm-summary (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
169 ;; Return the buffer's or FILE's one-line summary.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
170 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
171 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
172 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
173 (goto-char (point-min))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
174 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
175 (if (looking-at "^;;; [^ ]+ --- \\(.*\\)")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
176 (buffer-substring (match-beginning 1) (match-end 1)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
177 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
178 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
179 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
180
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
181
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
182 (defun lm-crack-address (x)
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
183 ;; Given a string containing a human and email address, parse it
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
184 ;; into a cons pair (name . address).
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
185 (cond ((string-match "\\(.+\\) [(<]\\(\\S-+@\\S-+\\)[>)]" x)
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
186 (cons (substring x (match-beginning 1) (match-end 1))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
187 (substring x (match-beginning 2) (match-end 2))))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
188 ((string-match "\\(\\S-+@\\S-+\\) [(<]\\(.*\\)[>)]" x)
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
189 (cons (substring x (match-beginning 2) (match-end 2))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
190 (substring x (match-beginning 1) (match-end 1))))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
191 ((string-match "\\S-+@\\S-+" x)
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
192 (cons nil x))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
193 (t
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
194 (cons x nil))))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
195
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
196 (defun lm-authors (&optional file)
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
197 ;; Return the buffer's or FILE's author list. Each element of the
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
198 ;; list is a cons; the car is a name-aming-humans, the cdr an email
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
199 ;; address.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
200 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
201 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
202 (find-file file))
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
203 (let ((authorlist (lm-header-multiline "author")))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
204 (prog1
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
205 (mapcar 'lm-crack-address authorlist)
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
206 (if file
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
207 (kill-buffer (current-buffer)))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
208 ))))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
209
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
210 (defun lm-maintainer (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
211 ;; Get a package's bug-report & maintenance address. Parse it out of FILE,
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
212 ;; or the current buffer if FILE is nil.
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
213 ;; The return value is a (name . address) cons.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
214 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
215 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
216 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
217 (prog1
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
218 (let ((maint (lm-header "maintainer")))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
219 (if maint
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
220 (lm-crack-address maint)
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
221 (car (lm-authors))))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
222 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
223 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
224 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
225
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
226 (defun lm-creation-date (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
227 ;; Return a package's creation date, if any. Parse it out of FILE,
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
228 ;; or the current buffer if FILE is nil.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
229 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
230 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
231 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
232 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
233 (lm-header "created")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
234 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
235 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
236 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
237
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
238
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
239 (defun lm-last-modified-date (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
240 ;; Return a package's last-modified date, if you can find one.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
241 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
242 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
243 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
244 (prog1
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
245 (if (progn
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
246 (goto-char (point-min))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
247 (re-search-forward
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
248 "\\$Id: [^ ]+ [^ ]+ \\([^/]+\\)/\\([^/]+\\)/\\([^ ]+\\) "
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
249 (lm-code-mark) t))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
250 (format "%s %s %s"
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
251 (buffer-substring (match-beginning 3) (match-end 3))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
252 (nth (string-to-int
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
253 (buffer-substring (match-beginning 2) (match-end 2)))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
254 '("" "Jan" "Feb" "Mar" "Apr" "May" "Jun"
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
255 "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
256 (buffer-substring (match-beginning 1) (match-end 1))
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
257 ))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
258 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
259 (kill-buffer (current-buffer)))
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
260 )))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
261
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
262 (defun lm-version (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
263 ;; Return the package's version field.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
264 ;; If none, look for an RCS or SCCS header to crack it out of.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
265 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
266 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
267 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
268 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
269 (or
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
270 (lm-header "version")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
271 (let ((header-max (lm-code-mark)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
272 (goto-char (point-min))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
273 (cond
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
274 ;; Look for an RCS header
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
275 ((re-search-forward "\\$Id: [^ ]+ \\([^ ]+\\) " header-max t)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
276 (buffer-substring (match-beginning 1) (match-end 1)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
277
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
278 ;; Look for an SCCS header
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
279 ((re-search-forward
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
280 (concat
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
281 (regexp-quote "@(#)")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
282 (regexp-quote (file-name-nondirectory (buffer-file-name)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
283 "\t\\([012345679.]*\\)")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
284 header-max t)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
285 (buffer-substring (match-beginning 1) (match-end 1)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
286
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
287 (t nil))))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
288 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
289 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
290 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
291
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
292 (defun lm-keywords (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
293 ;; Return the header containing the package's topic keywords.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
294 ;; Parse them out of FILE, or the current buffer if FILE is nil.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
295 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
296 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
297 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
298 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
299 (let ((keywords (lm-header "keywords")))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
300 (and keywords (downcase keywords)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
301 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
302 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
303 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
304
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
305 (defun lm-adapted-by (&optional file)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
306 ;; Return the name or code of the person who cleaned up this package
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
307 ;; for distribution. Parse it out of FILE, or the current buffer if
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
308 ;; FILE is nil.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
309 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
310 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
311 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
312 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
313 (lm-header "adapted-by")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
314 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
315 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
316 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
317
2528
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
318 (defun lm-commentary (&optional file)
4291
de0f38da99f5 Comment fix.
Richard M. Stallman <rms@gnu.org>
parents: 2528
diff changeset
319 ;; Return the commentary region of a file, as a string.
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
320 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
321 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
322 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
323 (prog1
2528
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
324 (let ((commentary (lm-section-mark "Commentary" t))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
325 (change-log (lm-section-mark "Change Log"))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
326 (code (lm-section-mark "Code")))
2528
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
327 (and commentary
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
328 (if change-log
2528
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
329 (buffer-substring commentary change-log)
df68ddbcc2f1 (lm-commentary-region): Gone.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2352
diff changeset
330 (buffer-substring commentary code)))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
331 )
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
332 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
333 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
334 )))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
335
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
336 ;;; Verification and synopses
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
337
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
338 (defun lm-insert-at-column (col &rest pieces)
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
339 (if (> (current-column) col) (insert "\n"))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
340 (move-to-column-force col)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
341 (apply 'insert pieces))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
342
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
343 (defconst lm-comment-column 16)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
344
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
345 (defun lm-verify (&optional file showok)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
346 "Check that the current buffer (or FILE if given) is in proper format.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
347 If FILE is a directory, recurse on its files and generate a report into
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
348 a temporary buffer."
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
349 (if (and file (file-directory-p file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
350 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
351 (switch-to-buffer (get-buffer-create "*lm-verify*"))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
352 (erase-buffer)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
353 (mapcar
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
354 '(lambda (f)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
355 (if (string-match ".*\\.el$" f)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
356 (let ((status (lm-verify f)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
357 (if status
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
358 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
359 (insert f ":")
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
360 (lm-insert-at-column lm-comment-column status "\n"))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
361 (and showok
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
362 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
363 (insert f ":")
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
364 (lm-insert-at-column lm-comment-column "OK\n")))))))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
365 (directory-files file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
366 )
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
367 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
368 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
369 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
370 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
371 (cond
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
372 ((not (lm-summary))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
373 "Can't find a package summary")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
374 ((not (lm-code-mark))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
375 "Can't find a code section marker")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
376 ((progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
377 (goto-char (point-max))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
378 (forward-line -1)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
379 (looking-at (concat ";;; " file "ends here")))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
380 "Can't find a footer line")
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
381 )
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
382 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
383 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
384 ))))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
385
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
386 (defun lm-synopsis (&optional file showall)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
387 "Generate a synopsis listing for the buffer or the given FILE if given.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
388 If FILE is a directory, recurse on its files and generate a report into
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
389 a temporary buffer. If SHOWALL is on, also generate a line for files
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
390 which do not include a recognizable synopsis."
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
391 (interactive "fSynopsis for (file or dir): ")
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
392 (if (and file (file-directory-p file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
393 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
394 (switch-to-buffer (get-buffer-create "*lm-verify*"))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
395 (erase-buffer)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
396 (mapcar
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
397 '(lambda (f)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
398 (if (string-match ".*\\.el$" f)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
399 (let ((syn (lm-synopsis f)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
400 (if syn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
401 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
402 (insert f ":")
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
403 (lm-insert-at-column lm-comment-column syn "\n"))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
404 (and showall
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
405 (progn
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
406 (insert f ":")
14492
0ebde55bb21d (lm-insert-at-column): Renamed from insert-at-column.
Richard M. Stallman <rms@gnu.org>
parents: 14320
diff changeset
407 (lm-insert-at-column lm-comment-column "NA\n")))))))
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
408 (directory-files file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
409 )
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
410 (save-excursion
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
411 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
412 (find-file file))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
413 (prog1
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
414 (lm-summary)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
415 (if file
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
416 (kill-buffer (current-buffer)))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
417 ))))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
418
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
419 (defun lm-report-bug (topic)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
420 "Report a bug in the package currently being visited to its maintainer.
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
421 Prompts for bug subject. Leaves you in a mail buffer."
2352
8c8fe9da1f5e (lm-last-modified-date) Fixed return bug.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 879
diff changeset
422 (interactive "sBug Subject: ")
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
423 (let ((package (buffer-name))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
424 (addr (lm-maintainer))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
425 (version (lm-version)))
5359
c87a767f137e (lm-report-bug): lm-maintainer returns a cons; convert it to a string.
Richard M. Stallman <rms@gnu.org>
parents: 5358
diff changeset
426 (mail nil
c87a767f137e (lm-report-bug): lm-maintainer returns a cons; convert it to a string.
Richard M. Stallman <rms@gnu.org>
parents: 5358
diff changeset
427 (if addr
c87a767f137e (lm-report-bug): lm-maintainer returns a cons; convert it to a string.
Richard M. Stallman <rms@gnu.org>
parents: 5358
diff changeset
428 (concat (car addr) " <" (cdr addr) ">")
c87a767f137e (lm-report-bug): lm-maintainer returns a cons; convert it to a string.
Richard M. Stallman <rms@gnu.org>
parents: 5358
diff changeset
429 bug-gnu-emacs)
c87a767f137e (lm-report-bug): lm-maintainer returns a cons; convert it to a string.
Richard M. Stallman <rms@gnu.org>
parents: 5358
diff changeset
430 topic)
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
431 (goto-char (point-max))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
432 (insert "\nIn "
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
433 package
5358
98efb3231d81 (lm-report-bug): Don't crash if version is nil.
Richard M. Stallman <rms@gnu.org>
parents: 5221
diff changeset
434 (if version (concat " version " version) "")
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
435 "\n\n")
14320
c38a91e549b1 (lm-report-bug): Pass proper format string to message.
Karl Heuer <kwzh@gnu.org>
parents: 14169
diff changeset
436 (message "%s"
879
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
437 (substitute-command-keys "Type \\[mail-send] to send bug report."))))
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
438
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
439 (provide 'lisp-mnt)
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
440
6dc5b7273a07 entered into RCS
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
diff changeset
441 ;;; lisp-mnt.el ends here