summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2007-10-20 06:30:18 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2007-10-20 06:30:18 +0000
commit975460179e149d602524496a58ecf4702f12f8ba (patch)
treeef9858e76ed34d0d534313f4107ae564aa143bdf /lisp
parentfbd80e28b7dfdd0a59e63b4a742392e0ca9dab88 (diff)
downloademacs-975460179e149d602524496a58ecf4702f12f8ba.tar.gz
* term/x-win.el (x-gtk-stock-map, icon-map-list)
(x-gtk-map-stock): Delete duplicated definitions from merge. * progmodes/octave-mod.el: Require octave-inf at compile time * progmodes/compile.el (compilation-skip-to-next-location) (compilation-skip-threshold, compilation-skip-visited): Move definitions earlier. * play/zone.el (zone-fall-through-ws): * play/landmark.el (lm-move-down, lm-move-up): * play/handwrite.el (handwrite): * mail/mspools.el (mspools-visit-spool): * wdired.el (wdired-next-line, wdired-previous-line): * tar-mode.el (tar-subfile-save-buffer): * scroll-lock.el (scroll-lock-next-line) (scroll-lock-previous-line): * image-dired.el (image-dired-next-line) (image-dired-previous-line): * ediff-help.el (ediff-help-message-line-length): Use forward-line. * smerge-mode.el (smerge-auto-refine): * diff-mode.el (diff-auto-refine): Add :group. * play/yow.el: Require doctor at compile time. * vmsproc.el: Provide vmsproc. (command-send-input): Use forward-line. * vms-patch.el: Require ps-print and vmsproc at compile time. * vc-mtn.el (log-view-message-re, log-view-file-re) (log-view-font-lock-keywords): Pacify byte-compiler. * vc-hg.el: Require log-view at compile time.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog39
-rw-r--r--lisp/diff-mode.el3
-rw-r--r--lisp/ediff-help.el2
-rw-r--r--lisp/image-dired.el4
-rw-r--r--lisp/mail/mspools.el4
-rw-r--r--lisp/play/handwrite.el2
-rw-r--r--lisp/play/landmark.el4
-rw-r--r--lisp/play/yow.el1
-rw-r--r--lisp/play/zone.el2
-rw-r--r--lisp/progmodes/compile.el49
-rw-r--r--lisp/scroll-lock.el4
-rw-r--r--lisp/smerge-mode.el1
-rw-r--r--lisp/tar-mode.el2
-rw-r--r--lisp/term/x-win.el57
-rw-r--r--lisp/vc-hg.el1
-rw-r--r--lisp/vc-mtn.el4
-rw-r--r--lisp/vms-patch.el4
-rw-r--r--lisp/vmsproc.el6
-rw-r--r--lisp/wdired.el4
19 files changed, 95 insertions, 98 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cc7aa44692d..ca1bdb0b0df 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,42 @@
+2007-10-20 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * term/x-win.el (x-gtk-stock-map, icon-map-list)
+ (x-gtk-map-stock): Delete duplicated definitions from merge.
+
+ * progmodes/octave-mod.el: Require octave-inf at compile time
+
+ * progmodes/compile.el (compilation-skip-to-next-location)
+ (compilation-skip-threshold, compilation-skip-visited): Move
+ definitions earlier.
+
+ * play/zone.el (zone-fall-through-ws):
+ * play/landmark.el (lm-move-down, lm-move-up):
+ * play/handwrite.el (handwrite):
+ * mail/mspools.el (mspools-visit-spool):
+ * wdired.el (wdired-next-line, wdired-previous-line):
+ * tar-mode.el (tar-subfile-save-buffer):
+ * scroll-lock.el (scroll-lock-next-line)
+ (scroll-lock-previous-line):
+ * image-dired.el (image-dired-next-line)
+ (image-dired-previous-line):
+ * ediff-help.el (ediff-help-message-line-length): Use
+ forward-line.
+
+ * smerge-mode.el (smerge-auto-refine):
+ * diff-mode.el (diff-auto-refine): Add :group.
+
+ * play/yow.el: Require doctor at compile time.
+
+ * vmsproc.el: Provide vmsproc.
+ (command-send-input): Use forward-line.
+
+ * vms-patch.el: Require ps-print and vmsproc at compile time.
+
+ * vc-mtn.el (log-view-message-re, log-view-file-re)
+ (log-view-font-lock-keywords): Pacify byte-compiler.
+
+ * vc-hg.el: Require log-view at compile time.
+
2007-10-20 Eric S. Raymond <esr@snark.thyrsus.com>
* log-view.el (log-view-diff): Adapt log-view-diff for new VC API.
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 0208660c1a9..34b116d92c8 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -92,7 +92,8 @@ when editing big diffs)."
(defcustom diff-auto-refine t
"Automatically highlight changes in detail as the user visits hunks."
- :type 'boolean)
+ :type 'boolean
+ :group 'diff-mode)
(defcustom diff-mode-hook nil
"Run after setting up the `diff-mode' major mode."
diff --git a/lisp/ediff-help.el b/lisp/ediff-help.el
index fdc15ee2f80..1c7a72870fe 100644
--- a/lisp/ediff-help.el
+++ b/lisp/ediff-help.el
@@ -258,7 +258,7 @@ the value of this variable and the variables `ediff-help-message-*' in
(save-excursion
(goto-char (point-min))
(if ediff-use-long-help-message
- (next-line 1))
+ (forward-line 1))
(end-of-line)
(current-column)))
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index 0353f6eb881..82bfbfb20af 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -1137,7 +1137,7 @@ image."
(defun image-dired-next-line ()
"Move to next line and display properties."
(interactive)
- (next-line 1)
+ (forward-line 1)
;; If we end up in an empty spot, back up to the next thumbnail.
(if (not (image-dired-image-at-point-p))
(image-dired-backward-image))
@@ -1149,7 +1149,7 @@ image."
(defun image-dired-previous-line ()
"Move to previous line and display properties."
(interactive)
- (previous-line 1)
+ (forward-line -1)
;; If we end up in an empty spot, back up to the next
;; thumbnail. This should only happen if the user deleted a
;; thumbnail and did not refresh, so it is not very common. But we
diff --git a/lisp/mail/mspools.el b/lisp/mail/mspools.el
index 988ce2f8e02..514bf4fe5f3 100644
--- a/lisp/mail/mspools.el
+++ b/lisp/mail/mspools.el
@@ -272,9 +272,9 @@ Buffer is not displayed if SHOW is non-nil."
(end-of-line)
(point)))
mspools-files-len)
- (next-line (- 1 mspools-files-len)) ;back to top of list
+ (forward-line (- 1 mspools-files-len)) ;back to top of list
;; else just on to next line
- (next-line 1))
+ (forward-line 1))
;; Choose whether to use VM or RMAIL for reading folder.
(if mspools-using-vm
diff --git a/lisp/play/handwrite.el b/lisp/play/handwrite.el
index 5e6c77e64b9..236c415dfcd 100644
--- a/lisp/play/handwrite.el
+++ b/lisp/play/handwrite.el
@@ -226,7 +226,7 @@ Variables: handwrite-linespace (default 12)
(forward-line 1)
))
(switch-to-buffer ps-buf-name)
- (next-line 1)
+ (forward-line 1)
(insert "showpage exec Hwsave restore\n\n")
(insert "%%Pages " (number-to-string ipage) " 0\n")
(insert "%%EOF\n")
diff --git a/lisp/play/landmark.el b/lisp/play/landmark.el
index 1eb8df8d58c..ca5aa1d6089 100644
--- a/lisp/play/landmark.el
+++ b/lisp/play/landmark.el
@@ -1052,13 +1052,13 @@ mouse-1: get robot moving, mouse-2: play on this square")))
"Move point down one row on the Lm board."
(interactive)
(if (< (lm-point-y) lm-board-height)
- (next-line 1)));;; lm-square-height)))
+ (forward-line 1)));;; lm-square-height)))
(defun lm-move-up ()
"Move point up one row on the Lm board."
(interactive)
(if (> (lm-point-y) 1)
- (previous-line lm-square-height)))
+ (forward-line (- lm-square-height))))
(defun lm-move-ne ()
"Move point North East on the Lm board."
diff --git a/lisp/play/yow.el b/lisp/play/yow.el
index 28fc453577b..db9768b0800 100644
--- a/lisp/play/yow.el
+++ b/lisp/play/yow.el
@@ -35,6 +35,7 @@
;;; Code:
(require 'cookie1)
+(eval-when-compile (require 'doctor))
(defgroup yow nil
"Quote random zippyisms."
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index 896c1d4ac0a..8a563ca8b27 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -489,7 +489,7 @@ If the element is a function or a list of a function and a number,
(wait 0.15)
newpos fall-p)
(while (when (save-excursion
- (next-line 1)
+ (forward-line 1)
(and (= col (current-column))
(setq newpos (point))
(string= spaces (buffer-substring-no-properties
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 482cfee1b9b..3de5b7eeb7e 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -619,6 +619,31 @@ Faces `compilation-error-face', `compilation-warning-face',
"If non-nil, automatically jump to the next error encountered.")
(make-variable-buffer-local 'compilation-auto-jump-to-next)
+
+(defvar compilation-skip-to-next-location t
+ "*If non-nil, skip multiple error messages for the same source location.")
+
+(defcustom compilation-skip-threshold 1
+ "Compilation motion commands skip less important messages.
+The value can be either 2 -- skip anything less than error, 1 --
+skip anything less than warning or 0 -- don't skip any messages.
+Note that all messages not positively identified as warning or
+info, are considered errors."
+ :type '(choice (const :tag "Warnings and info" 2)
+ (const :tag "Info" 1)
+ (const :tag "None" 0))
+ :group 'compilation
+ :version "22.1")
+
+(defcustom compilation-skip-visited nil
+ "Compilation motion commands skip visited messages if this is t.
+Visited messages are ones for which the file, line and column have been jumped
+to from the current content in the current compilation buffer, even if it was
+from a different message."
+ :type 'boolean
+ :group 'compilation
+ :version "22.1")
+
(defun compilation-face (type)
(or (and (car type) (match-end (car type)) compilation-warning-face)
(and (cdr type) (match-end (cdr type)) compilation-info-face)
@@ -1266,30 +1291,6 @@ Returns the compilation buffer created."
(put 'compilation-mode 'mode-class 'special)
-(defvar compilation-skip-to-next-location t
- "*If non-nil, skip multiple error messages for the same source location.")
-
-(defcustom compilation-skip-threshold 1
- "Compilation motion commands skip less important messages.
-The value can be either 2 -- skip anything less than error, 1 --
-skip anything less than warning or 0 -- don't skip any messages.
-Note that all messages not positively identified as warning or
-info, are considered errors."
- :type '(choice (const :tag "Warnings and info" 2)
- (const :tag "Info" 1)
- (const :tag "None" 0))
- :group 'compilation
- :version "22.1")
-
-(defcustom compilation-skip-visited nil
- "Compilation motion commands skip visited messages if this is t.
-Visited messages are ones for which the file, line and column have been jumped
-to from the current content in the current compilation buffer, even if it was
-from a different message."
- :type 'boolean
- :group 'compilation
- :version "22.1")
-
;;;###autoload
(defun compilation-mode (&optional name-of-mode)
"Major mode for compilation log buffers.
diff --git a/lisp/scroll-lock.el b/lisp/scroll-lock.el
index e5d6fcad868..6bb32c17b5d 100644
--- a/lisp/scroll-lock.el
+++ b/lisp/scroll-lock.el
@@ -88,7 +88,7 @@ during scrolling."
(or arg (setq arg 1))
(scroll-lock-update-goal-column)
(if (pos-visible-in-window-p (point-max))
- (next-line arg)
+ (forward-line arg)
(scroll-up arg))
(scroll-lock-move-to-column scroll-lock-temporary-goal-column))
@@ -99,7 +99,7 @@ during scrolling."
(scroll-lock-update-goal-column)
(condition-case nil
(scroll-down arg)
- (beginning-of-buffer (previous-line arg)))
+ (beginning-of-buffer (forward-line (- arg))))
(scroll-lock-move-to-column scroll-lock-temporary-goal-column))
(defun scroll-lock-forward-paragraph (&optional arg)
diff --git a/lisp/smerge-mode.el b/lisp/smerge-mode.el
index 16693f8a5e3..cd5c7c20f8d 100644
--- a/lisp/smerge-mode.el
+++ b/lisp/smerge-mode.el
@@ -81,6 +81,7 @@ Used in `smerge-diff-base-mine' and related functions."
(defcustom smerge-auto-refine t
"Automatically highlight changes in detail as the user visits conflicts."
+ :group 'smerge
:type 'boolean)
(defface smerge-mine
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 944694b9b7e..80e642d6666 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -1210,7 +1210,7 @@ to make your changes permanent."
;;
(let ((position (- (length tar-parse-info) (length head))))
(goto-char (point-min))
- (next-line position)
+ (forward-line position)
(beginning-of-line)
(let ((p (point))
after
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 8c183db6dea..3310bc5507e 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -2679,62 +2679,5 @@ If you don't want stock icons, set the variable to nil."
(provide 'x-win)
-(defcustom x-gtk-stock-map
- '(
- ("etc/images/new" . "gtk-new")
- ("etc/images/open" . "gtk-open")
- ("etc/images/diropen" . "n:system-file-manager")
- ("etc/images/close" . "gtk-close")
- ("etc/images/save" . "gtk-save")
- ("etc/images/saveas" . "gtk-save-as")
- ("etc/images/undo" . "gtk-undo")
- ("etc/images/cut" . "gtk-cut")
- ("etc/images/copy" . "gtk-copy")
- ("etc/images/paste" . "gtk-paste")
- ("etc/images/search" . "gtk-find")
- ("etc/images/print" . "gtk-print")
- ("etc/images/preferences" . "gtk-preferences")
- ("etc/images/help" . "gtk-help")
- ("etc/images/left-arrow" . "gtk-go-back")
- ("etc/images/right-arrow" . "gtk-go-forward")
- ("etc/images/home" . "gtk-home")
- ("etc/images/jump-to" . "gtk-jump-to")
- ("etc/images/index" . "gtk-index")
- ("etc/images/search" . "gtk-find")
- ("etc/images/exit" . "gtk-quit"))
- "How icons for tool bars are mapped to Gtk+ stock items.
-Emacs must be compiled with the Gtk+ toolkit for this to have any effect.
-A value that begins with n: denotes a named icon instead of a stock icon."
- :version "22.2"
- :type 'alist
- :group 'x)
-
-(defvar icon-map-list nil
- "*A list of alists that maps icon file names to stock/named icons.
-The alists are searched in the order they appear. The first match is used.
-The keys in the alists are file names without extension and with two directory
-components. For example, to map /usr/share/emacs/22.1.1/etc/images/open.xpm
-to stock item gtk-open, use:
-
- (\"etc/images/open\" . \"gtk-open\")
-
-Themes also have named icons. To map to one of those, use n: before the name:
-
- (\"etc/images/diropen\" . \"n:system-file-manager\")
-
-The list elements are either the symbol name for the alist or the alist itself.")
-
-(defun x-gtk-map-stock (file)
- "Map icon with file name FILE to a Gtk+ stock name, using `x-gtk-stock-map'."
- (let* ((file-sans (file-name-sans-extension file))
- (key (and (string-match "/\\([^/]+/[^/]+/[^/]+$\\)" file-sans)
- (match-string 1 file-sans)))
- (value))
- (mapc (lambda (elem)
- (let ((assoc (if (symbolp elem) (symbol-value elem) elem)))
- (or value (setq value (assoc-string (or key file-sans) assoc)))))
- icon-map-list)
- (and value (cdr value))))
-
;; arch-tag: f1501302-db8b-4d95-88e3-116697d89f78
;;; x-win.el ends here
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 872be45a2c1..44d9b0d9292 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -481,6 +481,7 @@ REV is the revision to check out into WORKFILE."
(vc-hg-incoming-mode)))
;; XXX maybe also add key bindings for these functions.
+(eval-when-compile (require 'log-view))
(defun vc-hg-push ()
(interactive)
(let ((marked-list (log-view-get-marked)))
diff --git a/lisp/vc-mtn.el b/lisp/vc-mtn.el
index 0b209fdd5af..04fdc65d87a 100644
--- a/lisp/vc-mtn.el
+++ b/lisp/vc-mtn.el
@@ -150,6 +150,10 @@
(defun vc-mtn-print-log (files &optional buffer)
(vc-mtn-command buffer 0 files "log"))
+(defvar log-view-message-re)
+(defvar log-view-file-re)
+(defvar log-view-font-lock-keywords)
+
(define-derived-mode vc-mtn-log-view-mode log-view-mode "Mtn-Log-View"
;; TODO: Not sure what to do about file markers for now.
(set (make-local-variable 'log-view-file-re) "\\'\\`")
diff --git a/lisp/vms-patch.el b/lisp/vms-patch.el
index acc76c27171..d465a2eeaba 100644
--- a/lisp/vms-patch.el
+++ b/lisp/vms-patch.el
@@ -27,6 +27,10 @@
;;; Code:
+(eval-when-compile
+ (require 'ps-print)
+ (require 'vmsproc))
+
(setq auto-mode-alist (cons '(("\\.com\\'" . dcl-mode)) auto-mode-alist))
;;; Functions that need redefinition
diff --git a/lisp/vmsproc.el b/lisp/vmsproc.el
index e36400476f4..92df327dde1 100644
--- a/lisp/vmsproc.el
+++ b/lisp/vmsproc.el
@@ -122,11 +122,11 @@ line to the last line for resubmission."
(send-command-to-subprocess 1 current-line)
(if command-prefix-string
(progn (beginning-of-line) (insert command-prefix-string)))
- (next-line 1))))
+ (forward-line 1))))
;; else -- if not at last line in buffer
(goto-char (point-max))
(backward-char)
- (next-line 1)
+ (forward-line 1)
(insert
(if (compare-strings command-prefix-string nil nil
current-line 0 (length command-prefix-string))
@@ -141,5 +141,7 @@ line to the last line for resubmission."
(define-key esc-map "$" 'subprocess-command)
+(provide 'vmsproc)
+
;; arch-tag: 600b2512-f903-4887-bcd2-e76b306f5b66
;;; vmsproc.el ends here
diff --git a/lisp/wdired.el b/lisp/wdired.el
index 960d8990983..0c75592bd03 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -499,7 +499,7 @@ Optional arguments are ignored."
See `wdired-use-dired-vertical-movement'. Optional prefix ARG
says how many lines to move; default is one line."
(interactive "p")
- (next-line arg)
+ (forward-line arg)
(if (or (eq wdired-use-dired-vertical-movement t)
(and wdired-use-dired-vertical-movement
(< (current-column)
@@ -512,7 +512,7 @@ says how many lines to move; default is one line."
See `wdired-use-dired-vertical-movement'. Optional prefix ARG
says how many lines to move; default is one line."
(interactive "p")
- (previous-line arg)
+ (forward-line (- arg))
(if (or (eq wdired-use-dired-vertical-movement t)
(and wdired-use-dired-vertical-movement
(< (current-column)