Mercurial > emacs
annotate lisp/emacs-lisp/gulp.el @ 105813:df4934f25eef
* textmodes/two-column.el (2C-split):
* textmodes/texnfo-upd.el (texinfo-multi-file-included-list):
* textmodes/tex-mode.el (tex-set-buffer-directory):
* textmodes/spell.el (spell-region, spell-string):
* textmodes/reftex.el (reftex-erase-buffer):
(reftex-get-file-buffer-force, reftex-kill-temporary-buffers):
* textmodes/reftex-toc.el (reftex-toc-promote-action):
* textmodes/reftex-sel.el (reftex-get-offset, reftex-insert-docstruct)
(reftex-select-item):
* textmodes/reftex-ref.el (reftex-label-info-update)
(reftex-offer-label-menu):
* textmodes/reftex-index.el (reftex-index-change-entry)
(reftex-index-phrases-info):
* textmodes/reftex-global.el (reftex-create-tags-file)
(reftex-save-all-document-buffers, reftex-ensure-write-access):
* textmodes/reftex-dcr.el (reftex-echo-ref, reftex-echo-cite)
(reftex-view-crossref-from-bibtex):
* textmodes/reftex-cite.el (reftex-bibtex-selection-callback)
(reftex-extract-bib-entries-from-thebibliography)
(reftex-all-used-citation-keys, reftex-create-bibtex-file):
* textmodes/refbib.el (r2b-capitalize-title):
(r2b-convert-buffer, r2b-help):
* textmodes/page-ext.el (pages-directory)
(pages-directory-goto-with-mouse):
* textmodes/bibtex.el (bibtex-validate-globally):
* textmodes/bib-mode.el (bib-capitalize-title):
* textmodes/artist.el (artist-clear-buffer, artist-system):
* progmodes/xscheme.el (global-set-scheme-interaction-buffer):
(local-set-scheme-interaction-buffer, xscheme-process-filter)
(verify-xscheme-buffer, xscheme-enter-interaction-mode)
(xscheme-enter-debugger-mode, xscheme-debugger-mode-p)
(xscheme-send-control-g-interrupt, xscheme-start-process)
(xscheme-process-sentinel, xscheme-cd):
* progmodes/verilog-mode.el (verilog-read-always-signals)
(verilog-set-define, verilog-getopt-file)
(verilog-module-inside-filename-p):
* progmodes/sh-script.el:
* progmodes/python.el (python-pdbtrack-get-source-buffer)
(python-pdbtrack-grub-for-buffer, python-execute-file):
* progmodes/octave-inf.el (inferior-octave):
* progmodes/idlwave.el (idlwave-scan-user-lib-files)
(idlwave-shell-compile-helper-routines, idlwave-set-local)
(idlwave-display-completion-list-xemacs, idlwave-list-abbrevs)
(idlwave-display-completion-list-emacs, idlwave-list-load-path-shadows)
(idlwave-completion-fontify-classes, idlwave-display-calling-sequence):
* progmodes/idlw-shell.el (idlwave-shell-examine-display-clear)
(idlwave-shell-filter, idlwave-shell-examine-highlight)
(idlwave-shell-sentinel, idlwave-shell-filter-directory)
(idlwave-shell-display-line, idlwave-shell-set-bp-in-module)
(idlwave-shell-examine-display, idlwave-shell-run-region)
(idlwave-shell-filter-bp, idlwave-shell-save-and-action)
(idlwave-shell-sources-filter, idlwave-shell-goto-next-error):
* progmodes/idlw-help.el (idlwave-help-get-special-help)
(idlwave-help-get-help-buffer):
* progmodes/gud.el (gud-basic-call, gud-find-class)
(gud-tooltip-activate-mouse-motions-if-enabled):
* progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
* progmodes/ebrowse.el (ebrowse-member-table, ebrowse-save-tree-as)
(ebrowse-view-exit-fn, ebrowse-tags-list-members-in-file)
(ebrowse-tags-next-file):
* progmodes/ebnf2ps.el (ebnf-generate-eps, ebnf-generate-eps)
(ebnf-eps-production-list, ebnf-begin-file, ebnf-log)
(ebnf-eps-finish-and-write):
* progmodes/cpp.el (cpp-edit-save):
* progmodes/cperl-mode.el (cperl-pod-to-manpage):
* progmodes/cc-defs.el (c-emacs-features):
* progmodes/antlr-mode.el (antlr-invalidate-context-cache)
(antlr-directory-dependencies):
* progmodes/ada-xref.el (ada-gnat-parse-gpr, ada-get-ali-file-name)
(ada-run-application, ada-find-in-src-path, ada-goto-parent)
(ada-find-any-references, ada-make-filename-from-adaname)
(ada-make-body-gnatstub):
* obsolete/rnews.el (news-list-news-groups):
* obsolete/resume.el (resume-suspend-hook,resume-write-buffer-to-file):
* obsolete/iso-acc.el (iso-acc-minibuf-setup):
* net/rcirc.el (rcirc-debug):
* net/newst-treeview.el (newsticker--treeview-list-add-item)
(newsticker--treeview-list-clear, newsticker-treeview-browse-url)
(newsticker--treeview-list-update-faces, newsticker-treeview-save)
(newsticker--treeview-item-show-text, newsticker--treeview-item-show)
(newsticker--treeview-tree-update-tag,newsticker--treeview-buffer-init)
(newsticker-treeview-show-item, newsticker--treeview-unfold-node)
(newsticker--treeview-list-clear-highlight)
(newsticker--treeview-list-update-highlight)
(newsticker--treeview-list-highlight-start)
(newsticker--treeview-tree-update-highlight)
(newsticker--treeview-get-selected-item)
(newsticker-treeview-mark-list-items-old)
(newsticker--treeview-set-current-node):
* net/newst-plainview.el (newsticker--buffer-set-uptodate):
* net/newst-backend.el (newsticker--get-news-by-funcall)
(newsticker--get-news-by-wget, newsticker--image-get)
(newsticker--image-sentinel):
* net/mairix.el (mairix-rmail-fetch-field, mairix-gnus-fetch-field):
* net/eudcb-ph.el (eudc-ph-do-request, eudc-ph-open-session):
(eudc-ph-close-session):
* net/eudc.el (eudc-save-options):
* language/thai-word.el (thai-update-word-table):
* language/japan-util.el (japanese-string-conversion):
* international/titdic-cnv.el (tsang-quick-converter)
(ziranma-converter, ctlau-converter):
* international/mule-cmds.el (describe-language-environment):
* international/ja-dic-cnv.el (skkdic-convert-okuri-ari)
(skkdic-convert-postfix, skkdic-convert-prefix):
(skkdic-convert-okuri-nasi, skkdic-convert):
* emacs-lisp/re-builder.el (reb-update-overlays):
* emacs-lisp/pp.el (pp-to-string, pp-display-expression):
* emacs-lisp/gulp.el (gulp-send-requests):
* emacs-lisp/find-gc.el (trace-call-tree):
* emacs-lisp/eieio-opt.el (eieio-browse, eieio-describe-class)
(eieio-describe-generic):
* emacs-lisp/eieio-base.el (eieio-persistent-read):
* emacs-lisp/edebug.el (edebug-outside-excursion):
* emacs-lisp/debug.el (debugger-make-xrefs):
* emacs-lisp/cust-print.el (custom-prin1-to-string):
* emacs-lisp/chart.el (chart-new-buffer):
* emacs-lisp/authors.el (authors-scan-el, authors-scan-change-log):
Use with-current-buffer.
* textmodes/artist.el (artist-system): Don't call
copy-sequence on a fresh string.
* progmodes/idlw-shell.el (easymenu setup): Use dolist.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 31 Oct 2009 02:38:34 +0000 |
parents | c5622417a2ae |
children | 1d1d5d9bd884 |
rev | line source |
---|---|
38412
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
29581
diff
changeset
|
1 ;;; gulp.el --- ask for updates for Lisp packages |
15178 | 2 |
74466 | 3 ;; Copyright (C) 1996, 2001, 2002, 2003, 2004, 2005, |
100908 | 4 ;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
15178 | 5 |
6 ;; Author: Sam Shteingold <shteingd@math.ucla.edu> | |
7 ;; Maintainer: FSF | |
104575
c5622417a2ae
Kevin Ryde <user42 at zip.com.au>
Glenn Morris <rgm@gnu.org>
parents:
104024
diff
changeset
|
8 ;; Keywords: maint |
15178 | 9 |
10 ;; This file is part of GNU Emacs. | |
11 | |
94655
90a2847062be
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
12 ;; GNU Emacs is free software: you can redistribute it and/or modify |
15178 | 13 ;; it under the terms of the GNU General Public License as published by |
94655
90a2847062be
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
14 ;; the Free Software Foundation, either version 3 of the License, or |
90a2847062be
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
15 ;; (at your option) any later version. |
15178 | 16 |
17 ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 ;; GNU General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
94655
90a2847062be
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
15178 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; Search the emacs/{version}/lisp directory for *.el files, extract the | |
28 ;; name of the author or maintainer and send him e-mail requesting | |
29 ;; update. | |
30 | |
31 ;;; Code: | |
21365 | 32 (defgroup gulp nil |
33 "Ask for updates for Lisp packages." | |
34 :prefix "-" | |
35 :group 'maint) | |
15178 | 36 |
21365 | 37 (defcustom gulp-discard "^;+ *Maintainer: *FSF *$" |
104024
cce8d50c4566
Remove leading * from defcustom docs.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
38 "The regexp matching the packages not requiring the request for updates." |
21365 | 39 :type 'regexp |
40 :group 'gulp) | |
15178 | 41 |
104024
cce8d50c4566
Remove leading * from defcustom docs.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
42 (defcustom gulp-tmp-buffer "*gulp*" |
cce8d50c4566
Remove leading * from defcustom docs.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
43 "The name of the temporary buffer." |
21365 | 44 :type 'string |
45 :group 'gulp) | |
15178 | 46 |
21365 | 47 (defcustom gulp-max-len 2000 |
104024
cce8d50c4566
Remove leading * from defcustom docs.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
48 "Distance into a Lisp source file to scan for keywords." |
21365 | 49 :type 'integer |
50 :group 'gulp) | |
15178 | 51 |
21365 | 52 (defcustom gulp-request-header |
15211 | 53 (concat |
54 "This message was created automatically. | |
18012
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
55 I'm going to start pretesting a new version of GNU Emacs soon, so I'd |
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
56 like to ask if you have any updates for the Emacs packages you work on. |
15211 | 57 You're listed as the maintainer of the following package(s):\n\n") |
104024
cce8d50c4566
Remove leading * from defcustom docs.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
58 "The starting text of a gulp message." |
21365 | 59 :type 'string |
60 :group 'gulp) | |
15178 | 61 |
21365 | 62 (defcustom gulp-request-end |
15211 | 63 (concat |
64 "\nIf you have any changes since the version in the previous release (" | |
65 (format "%d.%d" emacs-major-version emacs-minor-version) | |
66 "), | |
67 please send them to me ASAP. | |
15178 | 68 |
18012
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
69 Please don't send the whole file. Instead, please send a patch made with |
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
70 `diff -c' that shows precisely the changes you would like me to install. |
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
71 Also please include itemized change log entries for your changes; |
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
72 please use lisp/ChangeLog as a guide for the style and for what kinds |
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
73 of information to include. |
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
74 |
15211 | 75 Thanks.") |
104024
cce8d50c4566
Remove leading * from defcustom docs.
Glenn Morris <rgm@gnu.org>
parents:
100908
diff
changeset
|
76 "The closing text in a gulp message." |
21365 | 77 :type 'string |
78 :group 'gulp) | |
15211 | 79 |
87113
aa25402f888a
Remove directory part from filenames in function declarations.
Glenn Morris <rgm@gnu.org>
parents:
86247
diff
changeset
|
80 (declare-function mail-subject "sendmail" ()) |
aa25402f888a
Remove directory part from filenames in function declarations.
Glenn Morris <rgm@gnu.org>
parents:
86247
diff
changeset
|
81 (declare-function mail-send "sendmail" ()) |
86247
fc93e9674475
* progmodes/python.el (info-lookup-maybe-add-help):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
78217
diff
changeset
|
82 |
15211 | 83 (defun gulp-send-requests (dir &optional time) |
15179
be7cc250142a
(gulp-search-path, gulp-packages): Variable deleted.
Richard M. Stallman <rms@gnu.org>
parents:
15178
diff
changeset
|
84 "Send requests for updates to the authors of Lisp packages in directory DIR. |
15211 | 85 For each maintainer, the message consists of `gulp-request-header', |
86 followed by the list of packages (with modification times if the optional | |
87 prefix argument TIME is non-nil), concluded with `gulp-request-end'. | |
88 | |
89 You can't edit the messages, but you can confirm whether to send each one. | |
15178 | 90 |
15211 | 91 The list of addresses for which you decided not to send mail |
92 is left in the `*gulp*' buffer at the end." | |
93 (interactive "DRequest updates for Lisp directory: \nP") | |
105813
df4934f25eef
* textmodes/two-column.el (2C-split):
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
104575
diff
changeset
|
94 (with-current-buffer (get-buffer-create gulp-tmp-buffer) |
15211 | 95 (let ((m-p-alist (gulp-create-m-p-alist |
96 (directory-files dir nil "^[^=].*\\.el$" t) | |
97 dir)) | |
98 ;; Temporarily inhibit undo in the *gulp* buffer. | |
99 (buffer-undo-list t) | |
100 mail-setup-hook msg node) | |
18012
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
101 (setq m-p-alist |
21044
acdb727611dd
(gulp-send-requests): Call sort properly.
Richard M. Stallman <rms@gnu.org>
parents:
18012
diff
changeset
|
102 (sort m-p-alist |
acdb727611dd
(gulp-send-requests): Call sort properly.
Richard M. Stallman <rms@gnu.org>
parents:
18012
diff
changeset
|
103 (function (lambda (a b) |
acdb727611dd
(gulp-send-requests): Call sort properly.
Richard M. Stallman <rms@gnu.org>
parents:
18012
diff
changeset
|
104 (string< (car a) (car b)))))) |
15211 | 105 (while (setq node (car m-p-alist)) |
106 (setq msg (gulp-create-message (cdr node) time)) | |
107 (setq mail-setup-hook | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
48341
diff
changeset
|
108 (lambda () |
29581
4d69640ddf11
(gulp-send-requests): Don't quote lambda.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
28650
diff
changeset
|
109 (mail-subject) |
4d69640ddf11
(gulp-send-requests): Don't quote lambda.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
28650
diff
changeset
|
110 (insert "It's time for Emacs updates again") |
4d69640ddf11
(gulp-send-requests): Don't quote lambda.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
28650
diff
changeset
|
111 (goto-char (point-max)) |
4d69640ddf11
(gulp-send-requests): Don't quote lambda.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
28650
diff
changeset
|
112 (insert msg))) |
15211 | 113 (mail nil (car node)) |
21044
acdb727611dd
(gulp-send-requests): Call sort properly.
Richard M. Stallman <rms@gnu.org>
parents:
18012
diff
changeset
|
114 (goto-char (point-min)) |
15211 | 115 (if (y-or-n-p "Send? ") (mail-send) |
116 (kill-this-buffer) | |
117 (set-buffer gulp-tmp-buffer) | |
118 (insert (format "%s\n\n" node))) | |
119 (setq m-p-alist (cdr m-p-alist)))) | |
120 (set-buffer gulp-tmp-buffer) | |
121 (setq buffer-undo-list nil))) | |
122 | |
123 | |
124 (defun gulp-create-message (rec time) | |
15178 | 125 "Return the message string for REC, which is a list like (FILE TIME)." |
126 (let (node (str gulp-request-header)) | |
127 (while (setq node (car rec)) | |
15211 | 128 (setq str (concat str "\t" (car node) |
129 (if time (concat "\tLast modified:\t" (cdr node))) | |
130 "\n")) | |
15178 | 131 (setq rec (cdr rec))) |
132 (concat str gulp-request-end))) | |
133 | |
134 | |
15211 | 135 (defun gulp-create-m-p-alist (flist dir) |
136 "Create the maintainer/package alist for files in FLIST in DIR. | |
137 That is a list of elements, each of the form (MAINTAINER PACKAGES...)." | |
15178 | 138 (save-excursion |
18012
d0f4e2e9e1f8
(gulp-send-requests): Sort maintainers alphabetically.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
139 (let (mplist filen node mnt-tm mnt tm fl-tm) |
15211 | 140 (get-buffer-create gulp-tmp-buffer) |
141 (set-buffer gulp-tmp-buffer) | |
142 (setq buffer-undo-list t) | |
143 (while flist | |
144 (setq fl-tm (gulp-maintainer (setq filen (car flist)) dir)) | |
145 (if (setq tm (cdr fl-tm) mnt (car fl-tm));; there is a definite maintainer | |
146 (if (setq node (assoc mnt mplist));; this is not a new maintainer | |
147 (setq mplist (cons (cons mnt (cons (cons filen tm) (cdr node))) | |
148 (delete node mplist))) | |
149 (setq mplist (cons (list mnt (cons filen (cdr fl-tm))) mplist)))) | |
150 (setq flist (cdr flist))) | |
151 (erase-buffer) | |
152 mplist))) | |
153 | |
154 (defun gulp-maintainer (filenm dir) | |
155 "Return a list (MAINTAINER TIMESTAMP) for the package FILENM in directory DIR." | |
156 (save-excursion | |
28650
31505c4d5daf
(gulp-maintainer): Use expand-file-name
Gerd Moellmann <gerd@gnu.org>
parents:
21365
diff
changeset
|
157 (let* ((fl (expand-file-name filenm dir)) mnt |
15178 | 158 (timest (format-time-string "%Y-%m-%d %a %T %Z" |
159 (elt (file-attributes fl) 5)))) | |
160 (set-buffer gulp-tmp-buffer) | |
161 (erase-buffer) | |
162 (insert-file-contents fl nil 0 gulp-max-len) | |
163 (goto-char 1) | |
164 (if (re-search-forward gulp-discard nil t) | |
165 (setq mnt nil) ;; do nothing, return nil | |
166 (goto-char 1) | |
167 (if (and (re-search-forward "^;+ *Maintainer: \\(.*\\)$" nil t) | |
168 (> (length (setq mnt (match-string 1))) 0)) | |
169 () ;; found! | |
170 (goto-char 1) | |
171 (if (re-search-forward "^;+ *Author: \\(.*\\)$" nil t) | |
172 (setq mnt (match-string 1)))) | |
173 (if (= (length mnt) 0) (setq mnt nil))) ;; "^;; Author: $" --> nil | |
174 (cons mnt timest)))) | |
175 | |
48341
595c4a350a47
Add provide call.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
38412
diff
changeset
|
176 (provide 'gulp) |
595c4a350a47
Add provide call.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
38412
diff
changeset
|
177 |
93975
1e3a407766b9
Fix up comment convention on the arch-tag lines.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
87649
diff
changeset
|
178 ;; arch-tag: 42750a11-460a-4efc-829f-342d075530e5 |
15178 | 179 ;;; gulp.el ends here |