aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.dir-locals.el8
-rw-r--r--Makefile.in4
-rw-r--r--lisp/cedet/pulse.el2
-rw-r--r--lisp/emacs-lisp/autoload.el42
-rw-r--r--lisp/emacs-lisp/trace.el1
-rw-r--r--lisp/erc/erc-menu.el24
-rw-r--r--lisp/finder.el1
-rw-r--r--lisp/gnus/gnus-uu.el1
-rw-r--r--lisp/mail/unrmail.el4
-rw-r--r--lisp/play/gamegrid.el30
-rw-r--r--lisp/shadowfile.el14
-rw-r--r--lisp/vc/vc.el28
12 files changed, 61 insertions, 98 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 001b4847e54..203343f0842 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,5 +1,6 @@
1((nil . ((tab-width . 8) 1((nil . ((tab-width . 8)
2 (sentence-end-double-space . t))) 2 (sentence-end-double-space . t)
3 (fill-column . 70)))
3 (c-mode . ((c-file-style . "GNU"))) 4 (c-mode . ((c-file-style . "GNU")))
4 (objc-mode . ((c-file-style . "GNU"))) 5 (objc-mode . ((c-file-style . "GNU")))
5 ;; You must set bugtracker_debbugs_url in your bazaar.conf for this to work. 6 ;; You must set bugtracker_debbugs_url in your bazaar.conf for this to work.
@@ -9,6 +10,7 @@
9 (log-edit-font-lock-gnu-style . t) 10 (log-edit-font-lock-gnu-style . t)
10 (log-edit-setup-add-author . t))) 11 (log-edit-setup-add-author . t)))
11 (change-log-mode . ((add-log-time-zone-rule . t) 12 (change-log-mode . ((add-log-time-zone-rule . t)
13 (fill-column . 74)
12 (bug-reference-url-format . "http://debbugs.gnu.org/%s") 14 (bug-reference-url-format . "http://debbugs.gnu.org/%s")
13 (mode . bug-reference) 15 (mode . bug-reference)))
14 ))) 16 (diff-mode . ((mode . whitespace))))
diff --git a/Makefile.in b/Makefile.in
index 12e488eebba..0c11828deb2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -721,8 +721,8 @@ uninstall: uninstall-$(NTDIR) uninstall-doc
721 -unset CDPATH; \ 721 -unset CDPATH; \
722 for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${etcdir}" ; do \ 722 for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${etcdir}" ; do \
723 if [ -d "$${dir}" ]; then \ 723 if [ -d "$${dir}" ]; then \
724 case `cd "$${dir}" && /bin/pwd` in \ 724 case `cd "$${dir}" ; /bin/pwd` in \
725 "`cd ${srcdir} && /bin/pwd`"* ) ;; \ 725 "`cd ${srcdir} ; /bin/pwd`"* ) ;; \
726 * ) rm -rf "$${dir}" ;; \ 726 * ) rm -rf "$${dir}" ;; \
727 esac ; \ 727 esac ; \
728 case "$${dir}" in \ 728 case "$${dir}" in \
diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index 4d71bc0af50..e2a48a428a3 100644
--- a/lisp/cedet/pulse.el
+++ b/lisp/cedet/pulse.el
@@ -91,8 +91,6 @@ Face used for temporary highlighting of tags for effect."
91 91
92;;; Code: 92;;; Code:
93;; 93;;
94
95;;FIXME
96(defun pulse-int-to-hex (int &optional nb-digits) 94(defun pulse-int-to-hex (int &optional nb-digits)
97 "Convert integer argument INT to a #XXXXXXXXXXXX format hex string. 95 "Convert integer argument INT to a #XXXXXXXXXXXX format hex string.
98Each X in the output string is a hexadecimal digit. 96Each X in the output string is a hexadecimal digit.
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index c3aaa905afd..38956df66de 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -812,40 +812,14 @@ write its autoloads into the specified file instead."
812 (setq files (delete file files))))) 812 (setq files (delete file files)))))
813 ;; Elements remaining in FILES have no existing autoload sections yet. 813 ;; Elements remaining in FILES have no existing autoload sections yet.
814 (dolist (file files) 814 (dolist (file files)
815 (unless (member (expand-file-name file) autoload-excludes) 815 (cond
816 ;; Passing nil as second argument forces 816 ((member (expand-file-name file) autoload-excludes) nil)
817 ;; autoload-generate-file-autoloads to look for the right 817 ;; Passing nil as second argument forces
818 ;; spot where to insert each autoloads section. 818 ;; autoload-generate-file-autoloads to look for the right
819 (let ((obuf 819 ;; spot where to insert each autoloads section.
820 (autoload-generate-file-autoloads file nil buffer-file-name)) 820 ((autoload-generate-file-autoloads file nil buffer-file-name)
821 ofile ofound oform opoint) 821 (push file no-autoloads))))
822 (when obuf 822
823 (push file no-autoloads)
824 ;; Did processing file update some other ofile?
825 (when (bufferp obuf)
826 (with-current-buffer obuf
827 (setq ofile (file-relative-name buffer-file-name)))
828 ;; Did we already scan ofile?
829 (and (member ofile done)
830 (not (member ofile no-autoloads))
831 (save-excursion
832 (goto-char (point-min))
833 (while
834 (and
835 (not ofound)
836 (search-forward
837 generate-autoload-section-header nil t))
838 (setq opoint (point)
839 oform (autoload-read-section-header))
840 (when (setq ofound
841 (string= ofile (nth 3 oform)))
842 (delete-region opoint (point))
843 (autoload-insert-section-header
844 (current-buffer)
845 (nth 1 oform)
846 (nth 2 oform)
847 (nth 3 oform)
848 (nth 5 (file-attributes ofile))))))))))))
849 (when no-autoloads 823 (when no-autoloads
850 ;; Sort them for better readability. 824 ;; Sort them for better readability.
851 (setq no-autoloads (sort no-autoloads 'string<)) 825 (setq no-autoloads (sort no-autoloads 'string<))
diff --git a/lisp/emacs-lisp/trace.el b/lisp/emacs-lisp/trace.el
index 1c0f6e7dc54..872bf86e545 100644
--- a/lisp/emacs-lisp/trace.el
+++ b/lisp/emacs-lisp/trace.el
@@ -139,6 +139,7 @@
139 :prefix "trace-" 139 :prefix "trace-"
140 :group 'lisp) 140 :group 'lisp)
141 141
142;;;###autoload
142(defcustom trace-buffer "*trace-output*" 143(defcustom trace-buffer "*trace-output*"
143 "Trace output will by default go to that buffer." 144 "Trace output will by default go to that buffer."
144 :type 'string) 145 :type 'string)
diff --git a/lisp/erc/erc-menu.el b/lisp/erc/erc-menu.el
index 3c035e1e938..f54141287de 100644
--- a/lisp/erc/erc-menu.el
+++ b/lisp/erc/erc-menu.el
@@ -34,12 +34,8 @@
34 "ERC menu support." 34 "ERC menu support."
35 :group 'erc) 35 :group 'erc)
36 36
37(defvar erc-menu-visible t
38 "Non-nil if the Erc menu is visible.")
39
40(defvar erc-menu-definition 37(defvar erc-menu-definition
41 (list "ERC" 38 (list "ERC"
42 :visible (lambda () erc-menu-visible)
43 ["Connect to server..." erc t] 39 ["Connect to server..." erc t]
44 ["Disconnect from server..." erc-quit-server erc-server-connected] 40 ["Disconnect from server..." erc-quit-server erc-server-connected]
45 "-" 41 "-"
@@ -108,31 +104,33 @@
108 "ERC menu definition.") 104 "ERC menu definition.")
109 105
110(defvar erc-menu-defined nil 106(defvar erc-menu-defined nil
111 "Internal ERC variable, non-nil if the ERC menu has been defined.") 107 "Internal variable used to keep track of whether we've defined the
108ERC menu yet.")
112 109
113;;;###autoload (autoload 'erc-menu-mode "erc-menu" nil t) 110;;;###autoload (autoload 'erc-menu-mode "erc-menu" nil t)
114(define-erc-module menu nil 111(define-erc-module menu nil
115 "Enable a menu in ERC buffers." 112 "Enable a menu in ERC buffers."
116 ((unless erc-menu-defined 113 ((unless erc-menu-defined
117 ;; Make sure the menu only gets defined once, since Emacs 114 ;; make sure the menu only gets defined once, since Emacs 22
118 ;; activates it immediately. 115 ;; activates it immediately
119 (easy-menu-define erc-menu erc-mode-map "ERC menu" erc-menu-definition) 116 (easy-menu-define erc-menu erc-mode-map "ERC menu" erc-menu-definition)
120 (setq erc-menu-defined t)) 117 (setq erc-menu-defined t))
121 (if (featurep 'xemacs) 118 (if (featurep 'xemacs)
122 (progn 119 (progn
123 ;; The menu isn't automatically added to the menu bar in XEmacs. 120 ;; the menu isn't automatically added to the menu bar in
121 ;; XEmacs
124 (add-hook 'erc-mode-hook 'erc-menu-add) 122 (add-hook 'erc-mode-hook 'erc-menu-add)
125 (dolist (buffer (erc-buffer-list)) 123 (dolist (buffer (erc-buffer-list))
126 (with-current-buffer buffer (erc-menu-add)))) 124 (with-current-buffer buffer (erc-menu-add))))
127 (setq erc-menu-visible t)
128 (erc-menu-add))) 125 (erc-menu-add)))
129 ((if (featurep 'xemacs) 126 ((if (featurep 'xemacs)
130 (progn 127 (progn
131 (remove-hook 'erc-mode-hook 'erc-menu-add) 128 (remove-hook 'erc-mode-hook 'erc-menu-add)
132 (dolist (buffer (erc-buffer-list)) 129 (dolist (buffer (erc-buffer-list))
133 (with-current-buffer buffer (erc-menu-remove)))) 130 (with-current-buffer buffer (erc-menu-remove))))
134 (setq erc-menu-visible nil) 131 (erc-menu-remove)
135 (erc-menu-remove)))) 132 ;; `easy-menu-remove' is a no-op in Emacs 22
133 (message "You might have to restart Emacs to remove the ERC menu"))))
136 134
137;; silence byte-compiler warning 135;; silence byte-compiler warning
138(defvar erc-menu) 136(defvar erc-menu)
@@ -147,10 +145,10 @@
147 145
148(provide 'erc-menu) 146(provide 'erc-menu)
149 147
150 148;;; erc-menu.el ends here
149;;
151;; Local Variables: 150;; Local Variables:
152;; indent-tabs-mode: t 151;; indent-tabs-mode: t
153;; tab-width: 8 152;; tab-width: 8
154;; End: 153;; End:
155 154
156;;; erc-menu.el ends here
diff --git a/lisp/finder.el b/lisp/finder.el
index 4eb5485fe53..bb5b441e26d 100644
--- a/lisp/finder.el
+++ b/lisp/finder.el
@@ -429,7 +429,6 @@ FILE should be in a form suitable for passing to `locate-library'."
429 (goto-char (posn-point (event-start event))) 429 (goto-char (posn-point (event-start event)))
430 (finder-select))) 430 (finder-select)))
431 431
432;; FIXME why does this even exist - it's just an alias for finder-list-keywords?
433;;;###autoload 432;;;###autoload
434(defun finder-by-keyword () 433(defun finder-by-keyword ()
435 "Find packages matching a given keyword." 434 "Find packages matching a given keyword."
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el
index 1e78709dc95..3f4bf1e1e05 100644
--- a/lisp/gnus/gnus-uu.el
+++ b/lisp/gnus/gnus-uu.el
@@ -978,7 +978,6 @@ When called interactively, prompt for REGEXP."
978 978
979;; Binhex treatment - not very advanced. 979;; Binhex treatment - not very advanced.
980 980
981;; FIXME? This duplicates binhex-begin-line etc from binhex.el.
982(defvar gnus-uu-binhex-body-line 981(defvar gnus-uu-binhex-body-line
983 "^[^:]...............................................................$") 982 "^[^:]...............................................................$")
984(defvar gnus-uu-binhex-begin-line 983(defvar gnus-uu-binhex-begin-line
diff --git a/lisp/mail/unrmail.el b/lisp/mail/unrmail.el
index 8c2f3c66757..49103e5714d 100644
--- a/lisp/mail/unrmail.el
+++ b/lisp/mail/unrmail.el
@@ -241,8 +241,8 @@ The variable `unrmail-mbox-format' controls which mbox format to use."
241 ;; Convert From to >From, etc. 241 ;; Convert From to >From, etc.
242 (let ((case-fold-search nil) 242 (let ((case-fold-search nil)
243 (fromline (if (eq 'mboxrd unrmail-mbox-format) 243 (fromline (if (eq 'mboxrd unrmail-mbox-format)
244 "\n>*From " 244 "^>*From "
245 "\nFrom "))) 245 "^From ")))
246 (while (re-search-forward fromline nil t) 246 (while (re-search-forward fromline nil t)
247 (beginning-of-line) 247 (beginning-of-line)
248 (insert ?>) 248 (insert ?>)
diff --git a/lisp/play/gamegrid.el b/lisp/play/gamegrid.el
index 7817d71bc7e..4f2be487463 100644
--- a/lisp/play/gamegrid.el
+++ b/lisp/play/gamegrid.el
@@ -479,28 +479,27 @@ FILE is created there."
479;; FILE in the user's home directory. There is presumably no 479;; FILE in the user's home directory. There is presumably no
480;; shared game directory. 480;; shared game directory.
481 481
482(defvar gamegrid-shared-game-dir)
483
482(defun gamegrid-add-score-with-update-game-score (file score) 484(defun gamegrid-add-score-with-update-game-score (file score)
483 (let ((setuid 485 (let ((gamegrid-shared-game-dir
484 (not (zerop (logand (file-modes 486 (not (zerop (logand (file-modes
485 (expand-file-name "update-game-score" 487 (expand-file-name "update-game-score"
486 exec-directory)) 488 exec-directory))
487 #o4000))))) 489 #o4000)))))
488 (cond ((file-name-absolute-p file) 490 (cond ((file-name-absolute-p file)
489 (gamegrid-add-score-insecure file score)) 491 (gamegrid-add-score-insecure file score))
490 ;; Use the setuid "update-game-score" program to update a 492 ((and gamegrid-shared-game-dir
491 ;; pre-existing system-wide score file.
492 ((and setuid
493 (file-exists-p (expand-file-name file shared-game-score-directory))) 493 (file-exists-p (expand-file-name file shared-game-score-directory)))
494 ;; Use the setuid "update-game-score" program to update a
495 ;; system-wide score file.
494 (gamegrid-add-score-with-update-game-score-1 file 496 (gamegrid-add-score-with-update-game-score-1 file
495 (expand-file-name file shared-game-score-directory) score setuid)) 497 (expand-file-name file shared-game-score-directory) score))
496 ;; We have setuid, but the score file does not exist. 498 ;; Else: Add the score to a score file in the user's home
497 ;; FIXME - Why not try to create it? 499 ;; directory.
498 ;; Maybe the logic is that this is being called by a game 500 (gamegrid-shared-game-dir
499 ;; that is not part of the standard Emacs install? 501 ;; If `gamegrid-shared-game-dir' is non-nil, then
500 ;; I see no reason why we should not try to use a shared 502 ;; "update-gamescore" program is setuid, so don't use it.
501 ;; score file though, and fall back to a private one if we
502 ;; lack permission to create a shared file.
503 (setuid
504 (unless (file-exists-p 503 (unless (file-exists-p
505 (directory-file-name gamegrid-user-score-file-directory)) 504 (directory-file-name gamegrid-user-score-file-directory))
506 (make-directory gamegrid-user-score-file-directory t)) 505 (make-directory gamegrid-user-score-file-directory t))
@@ -516,8 +515,7 @@ FILE is created there."
516 (write-region "" nil f nil 'silent nil 'excl)) 515 (write-region "" nil f nil 'silent nil 'excl))
517 (gamegrid-add-score-with-update-game-score-1 file f score)))))) 516 (gamegrid-add-score-with-update-game-score-1 file f score))))))
518 517
519(defun gamegrid-add-score-with-update-game-score-1 (file target score 518(defun gamegrid-add-score-with-update-game-score-1 (file target score)
520 &optional setuid)
521 (let ((default-directory "/") 519 (let ((default-directory "/")
522 (errbuf (generate-new-buffer " *update-game-score loss*")) 520 (errbuf (generate-new-buffer " *update-game-score loss*"))
523 (marker-string (concat 521 (marker-string (concat
@@ -539,7 +537,7 @@ FILE is created there."
539 (expand-file-name "update-game-score" exec-directory) 537 (expand-file-name "update-game-score" exec-directory)
540 nil errbuf nil 538 nil errbuf nil
541 "-m" (int-to-string gamegrid-score-file-length) 539 "-m" (int-to-string gamegrid-score-file-length)
542 "-d" (if setuid 540 "-d" (if gamegrid-shared-game-dir
543 (expand-file-name shared-game-score-directory) 541 (expand-file-name shared-game-score-directory)
544 (file-name-directory target)) 542 (file-name-directory target))
545 file 543 file
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index e463cb7eca5..2bf200d07dd 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -117,7 +117,6 @@ ensure consistency. Default: ~/.emacs.d/shadows"
117 :type '(choice (const nil) file) 117 :type '(choice (const nil) file)
118 :group 'shadow) 118 :group 'shadow)
119 119
120;; FIXME use .emacs.d
121(defcustom shadow-todo-file nil 120(defcustom shadow-todo-file nil
122 "File to store the list of uncopied shadows in. 121 "File to store the list of uncopied shadows in.
123This means that if a remote system is down, or for any reason you cannot or 122This means that if a remote system is down, or for any reason you cannot or
@@ -439,17 +438,14 @@ It may have different filenames on each site. When this file is edited, the
439new version will be copied to each of the other locations. Sites can be 438new version will be copied to each of the other locations. Sites can be
440specific hostnames, or names of clusters (see `shadow-define-cluster')." 439specific hostnames, or names of clusters (see `shadow-define-cluster')."
441 (interactive) 440 (interactive)
442 (let ((name (if (buffer-file-name) 441 (let* ((hup (shadow-parse-fullname
443 (nth 2 (shadow-parse-fullname 442 (shadow-contract-file-name (buffer-file-name))))
444 (shadow-contract-file-name (buffer-file-name)))))) 443 (name (nth 2 hup))
445 user site group) 444 user site group)
446 (while (setq site (shadow-read-site)) 445 (while (setq site (shadow-read-site))
447 ;; FIXME fix read-string calls
448 (setq user (read-string (format "Username (default %s): " 446 (setq user (read-string (format "Username (default %s): "
449 (shadow-get-user site))) 447 (shadow-get-user site)))
450 name (read-string "Filename: " nil nil name)) 448 name (read-string "Filename: " name))
451 (if (zerop (length name))
452 (error "You must specify a filename"))
453 (setq group (cons (shadow-make-fullname site 449 (setq group (cons (shadow-make-fullname site
454 (if (string-equal "" user) 450 (if (string-equal "" user)
455 (shadow-get-user site) 451 (shadow-get-user site)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index c2f8d78408a..5491d67e700 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2198,22 +2198,21 @@ Does nothing if IS-START-REVISION is non-nil, or if LIMIT is nil,
2198or if PL-RETURN is 'limit-unsupported." 2198or if PL-RETURN is 'limit-unsupported."
2199 (when (and limit (not (eq 'limit-unsupported pl-return)) 2199 (when (and limit (not (eq 'limit-unsupported pl-return))
2200 (not is-start-revision)) 2200 (not is-start-revision))
2201 (save-excursion 2201 (goto-char (point-max))
2202 (goto-char (point-max)) 2202 (insert "\n")
2203 (insert "\n") 2203 (insert-text-button "Show 2X entries"
2204 (insert-text-button "Show 2X entries" 2204 'action (lambda (&rest _ignore)
2205 'action (lambda (&rest _ignore)
2206 (vc-print-log-internal 2205 (vc-print-log-internal
2207 log-view-vc-backend log-view-vc-fileset 2206 log-view-vc-backend log-view-vc-fileset
2208 working-revision nil (* 2 limit))) 2207 working-revision nil (* 2 limit)))
2209 'help-echo "Show the log again, and double the number of log entries shown") 2208 'help-echo "Show the log again, and double the number of log entries shown")
2210 (insert " ") 2209 (insert " ")
2211 (insert-text-button "Show unlimited entries" 2210 (insert-text-button "Show unlimited entries"
2212 'action (lambda (&rest _ignore) 2211 'action (lambda (&rest _ignore)
2213 (vc-print-log-internal 2212 (vc-print-log-internal
2214 log-view-vc-backend log-view-vc-fileset 2213 log-view-vc-backend log-view-vc-fileset
2215 working-revision nil nil)) 2214 working-revision nil nil))
2216 'help-echo "Show the log again, including all entries")))) 2215 'help-echo "Show the log again, including all entries")))
2217 2216
2218(defun vc-print-log-internal (backend files working-revision 2217(defun vc-print-log-internal (backend files working-revision
2219 &optional is-start-revision limit) 2218 &optional is-start-revision limit)
@@ -2250,8 +2249,7 @@ earlier revisions. Show up to LIMIT entries (non-nil means unlimited)."
2250 (vc-print-log-setup-buttons working-revision 2249 (vc-print-log-setup-buttons working-revision
2251 is-start-revision limit ret)) 2250 is-start-revision limit ret))
2252 (lambda (bk) 2251 (lambda (bk)
2253 (if (or working-revision (eobp)) 2252 (vc-call-backend bk 'show-log-entry working-revision))
2254 (vc-call-backend bk 'show-log-entry working-revision)))
2255 (lambda (_ignore-auto _noconfirm) 2253 (lambda (_ignore-auto _noconfirm)
2256 (vc-print-log-internal backend files working-revision 2254 (vc-print-log-internal backend files working-revision
2257 is-start-revision limit)))))) 2255 is-start-revision limit))))))