]> git.eshelyaron.com Git - emacs.git/commitdiff
* term/x-win.el (x-gtk-stock-map, icon-map-list)
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 20 Oct 2007 06:30:18 +0000 (06:30 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 20 Oct 2007 06:30:18 +0000 (06:30 +0000)
(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.

19 files changed:
lisp/ChangeLog
lisp/diff-mode.el
lisp/ediff-help.el
lisp/image-dired.el
lisp/mail/mspools.el
lisp/play/handwrite.el
lisp/play/landmark.el
lisp/play/yow.el
lisp/play/zone.el
lisp/progmodes/compile.el
lisp/scroll-lock.el
lisp/smerge-mode.el
lisp/tar-mode.el
lisp/term/x-win.el
lisp/vc-hg.el
lisp/vc-mtn.el
lisp/vms-patch.el
lisp/vmsproc.el
lisp/wdired.el

index cc7aa44692dd1176c6ee180b240cc2c7789a0841..ca1bdb0b0dfee2a40b73bffb9349859f09030e64 100644 (file)
@@ -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.
index 0208660c1a9618cb15aa89364acbc41f1bf88b09..34b116d92c825980a4d47d5f9de242dff9b294e3 100644 (file)
@@ -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."
index fdc15ee2f80700b6ea381f52ad2c7176b398f154..1c7a72870fe44599ec38cd336e1fdf484cbed6da 100644 (file)
@@ -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)))
 
index 0353f6eb8813d745aef01f654fd922e314ae5eca..82bfbfb20af9f0d893b2ec06257b6550ddb86496 100644 (file)
@@ -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
index 988ce2f8e0204dcf1109a92455db9090cc6b0d32..514bf4fe5f3703d6371b132ec7fa7b67cca6812b 100644 (file)
@@ -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
index 5e6c77e64b949fa797c6c0a029682f197634f38f..236c415dfcda9a4ba5e4238152d1b06f15c6d71e 100644 (file)
@@ -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")
index 1eb8df8d58c2f2f18cf1781f3c1a66ddb86d63ec..ca5aa1d6089de7b9c9af8b7709c43320510bf1e4 100644 (file)
@@ -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."
index 28fc453577bb6c9111af153af65c83e3a04fb881..db9768b0800054d50e001b83a9203a31eeb43652 100644 (file)
@@ -35,6 +35,7 @@
 ;;; Code:
 
 (require 'cookie1)
+(eval-when-compile (require 'doctor))
 
 (defgroup yow nil
   "Quote random zippyisms."
index 896c1d4ac0a969920ee3c685674194302fa31941..8a563ca8b27f2e294fbebf40202ba9800c1b14bb 100644 (file)
@@ -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
index 482cfee1b9bce01f22cf15f7d185f00639543ac9..3de5b7eeb7eec38458fc387ecfba6cdc997030a3 100644 (file)
@@ -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.
index e5d6fcad8681268a0cd25bbb433ce4a4e9faa253..6bb32c17b5df1be80d8561d20deddc3881c3cacf 100644 (file)
@@ -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)
index 16693f8a5e3a83d05d1009d540b6b54b33b96cb3..cd5c7c20f8dfc0124ca7c570964db708e72cabd0 100644 (file)
@@ -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
index 944694b9b7ea6f3bcd5cc0bbac4ca468c1f1dc50..80e642d6666ea7676fe2d393b353eddfb0458e39 100644 (file)
@@ -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
index 8c183db6dea6e6d33fabbbb4401625f1ddbde2cb..3310bc5507e2775b832581144c13f0c38ddac6c2 100644 (file)
@@ -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
index 872be45a2c19a91561744eb6697850f1a03f30f9..44d9b0d9292ffc1c7fb8acc863ca79a6ce5a230c 100644 (file)
@@ -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)))
index 0b209fdd5afecee6ec75f7e4900e7bb052a29070..04fdc65d87a501e50398cabc747da76a48527447 100644 (file)
 (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) "\\'\\`")
index acc76c27171d5d6221149b56d813b25f690b6798..d465a2eeaba62c1b946efd67f220efc6dfb644c7 100644 (file)
 
 ;;; Code:
 
+(eval-when-compile
+  (require 'ps-print)
+  (require 'vmsproc))
+
 (setq auto-mode-alist (cons '(("\\.com\\'" . dcl-mode)) auto-mode-alist))
 
 ;;; Functions that need redefinition
index e36400476f4be8324396ff406d4ee9c269b80165..92df327dde1c098fb88509302d795212c29e852e 100644 (file)
@@ -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
index 960d89909835d7cadd6be42ab7c3bf2b90a9ef10..0c75592bd039b983142b59f5b84353dd37a7ae99 100644 (file)
@@ -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)