diff options
| author | Miles Bader | 2008-01-30 07:57:28 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-01-30 07:57:28 +0000 |
| commit | d235ca2ff8fab139ce797757fcb159d1e28fa7e0 (patch) | |
| tree | 96c5cd1a06a0d9dc26e8470c6eabfc032c0046f3 /lisp/emulation | |
| parent | 3709a060f679dba14df71ae64a0035fa2b5b3106 (diff) | |
| parent | 02cbe062bee38a6705bafb1699d77e3c44cfafcf (diff) | |
| download | emacs-d235ca2ff8fab139ce797757fcb159d1e28fa7e0.tar.gz emacs-d235ca2ff8fab139ce797757fcb159d1e28fa7e0.zip | |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/crisp.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/tpu-edt.el | 6 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 15 | ||||
| -rw-r--r-- | lisp/emulation/viper-ex.el | 8 | ||||
| -rw-r--r-- | lisp/emulation/viper-keym.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper-util.el | 5 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 7 |
7 files changed, 32 insertions, 14 deletions
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el index b5fd7ee602c..7c254da869a 100644 --- a/lisp/emulation/crisp.el +++ b/lisp/emulation/crisp.el | |||
| @@ -148,7 +148,7 @@ does not load the scroll-all package." | |||
| 148 | 148 | ||
| 149 | (defun crisp-region-active () | 149 | (defun crisp-region-active () |
| 150 | "Compatibility function to test for an active region." | 150 | "Compatibility function to test for an active region." |
| 151 | (if (boundp 'zmacs-region-active-p) | 151 | (if (featurep 'xemacs) |
| 152 | zmacs-region-active-p | 152 | zmacs-region-active-p |
| 153 | mark-active)) | 153 | mark-active)) |
| 154 | 154 | ||
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index 686a79c9350..e9de0409aa4 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el | |||
| @@ -751,9 +751,7 @@ version of Emacs." | |||
| 751 | Sets the mark at POS and activates the region according to the | 751 | Sets the mark at POS and activates the region according to the |
| 752 | current version of Emacs." | 752 | current version of Emacs." |
| 753 | (set-mark pos) | 753 | (set-mark pos) |
| 754 | ;; We use a separate `if' for the fboundp so the byte-compiler notices it | 754 | (when (featurep 'xemacs) (when pos (zmacs-activate-region)))) |
| 755 | ;; and doesn't complain about the subsequent call. | ||
| 756 | (if (fboundp 'zmacs-activate-region) (if pos (zmacs-activate-region)))) | ||
| 757 | 755 | ||
| 758 | (defun tpu-string-prompt (prompt history-symbol) | 756 | (defun tpu-string-prompt (prompt history-symbol) |
| 759 | "Read a string with PROMPT." | 757 | "Read a string with PROMPT." |
| @@ -2439,7 +2437,7 @@ If FILE is nil, try to load a default file. The default file names are | |||
| 2439 | 2437 | ||
| 2440 | 2438 | ||
| 2441 | ;;;### (autoloads (tpu-set-cursor-bound tpu-set-cursor-free tpu-set-scroll-margins | 2439 | ;;;### (autoloads (tpu-set-cursor-bound tpu-set-cursor-free tpu-set-scroll-margins |
| 2442 | ;;;;;; tpu-cursor-free-mode) "tpu-extras" "tpu-extras.el" "e0629234f1abe076917a303456b48329") | 2440 | ;;;;;; tpu-cursor-free-mode) "tpu-extras" "tpu-extras.el" "c7ce8bad68736a5682eb3f5f5edc48db") |
| 2443 | ;;; Generated autoloads from tpu-extras.el | 2441 | ;;; Generated autoloads from tpu-extras.el |
| 2444 | 2442 | ||
| 2445 | (autoload 'tpu-cursor-free-mode "tpu-extras" "\ | 2443 | (autoload 'tpu-cursor-free-mode "tpu-extras" "\ |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 3d74286589c..68116cde092 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -47,6 +47,9 @@ | |||
| 47 | (defvar initial) | 47 | (defvar initial) |
| 48 | (defvar undo-beg-posn) | 48 | (defvar undo-beg-posn) |
| 49 | (defvar undo-end-posn) | 49 | (defvar undo-end-posn) |
| 50 | |||
| 51 | (eval-and-compile | ||
| 52 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 50 | ;; end pacifier | 53 | ;; end pacifier |
| 51 | 54 | ||
| 52 | 55 | ||
| @@ -2773,7 +2776,9 @@ On reaching beginning of line, stop and signal error." | |||
| 2773 | (defun viper-next-line-carefully (arg) | 2776 | (defun viper-next-line-carefully (arg) |
| 2774 | (condition-case nil | 2777 | (condition-case nil |
| 2775 | ;; do not use forward-line! need to keep column | 2778 | ;; do not use forward-line! need to keep column |
| 2776 | (with-no-warnings (next-line arg)) | 2779 | (if (featurep 'emacs) |
| 2780 | (with-no-warnings (next-line arg)) | ||
| 2781 | (next-line arg)) | ||
| 2777 | (error nil))) | 2782 | (error nil))) |
| 2778 | 2783 | ||
| 2779 | 2784 | ||
| @@ -3073,7 +3078,9 @@ On reaching beginning of line, stop and signal error." | |||
| 3073 | (com (viper-getCom arg))) | 3078 | (com (viper-getCom arg))) |
| 3074 | (if com (viper-move-marker-locally 'viper-com-point (point))) | 3079 | (if com (viper-move-marker-locally 'viper-com-point (point))) |
| 3075 | ;; do not use forward-line! need to keep column | 3080 | ;; do not use forward-line! need to keep column |
| 3076 | (with-no-warnings (next-line val)) | 3081 | (if (featurep 'emacs) |
| 3082 | (with-no-warnings (next-line val)) | ||
| 3083 | (next-line val)) | ||
| 3077 | (if viper-ex-style-motion | 3084 | (if viper-ex-style-motion |
| 3078 | (if (and (eolp) (not (bolp))) (backward-char 1))) | 3085 | (if (and (eolp) (not (bolp))) (backward-char 1))) |
| 3079 | (setq this-command 'next-line) | 3086 | (setq this-command 'next-line) |
| @@ -3120,7 +3127,9 @@ If point is on a widget or a button, simulate clicking on that widget/button." | |||
| 3120 | (com (viper-getCom arg))) | 3127 | (com (viper-getCom arg))) |
| 3121 | (if com (viper-move-marker-locally 'viper-com-point (point))) | 3128 | (if com (viper-move-marker-locally 'viper-com-point (point))) |
| 3122 | ;; do not use forward-line! need to keep column | 3129 | ;; do not use forward-line! need to keep column |
| 3123 | (with-no-warnings (previous-line val)) | 3130 | (if (featurep 'emacs) |
| 3131 | (with-no-warnings (previous-line val)) | ||
| 3132 | (previous-line val)) | ||
| 3124 | (if viper-ex-style-motion | 3133 | (if viper-ex-style-motion |
| 3125 | (if (and (eolp) (not (bolp))) (backward-char 1))) | 3134 | (if (and (eolp) (not (bolp))) (backward-char 1))) |
| 3126 | (setq this-command 'previous-line) | 3135 | (setq this-command 'previous-line) |
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index 6ce34852235..8e19a0b50bd 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -2216,9 +2216,11 @@ Type 'mak ' (including the space) to run make with no args." | |||
| 2216 | (pos2 (viper-line-pos 'end)) | 2216 | (pos2 (viper-line-pos 'end)) |
| 2217 | lines file info) | 2217 | lines file info) |
| 2218 | (setq lines (count-lines (point-min) (viper-line-pos 'end)) | 2218 | (setq lines (count-lines (point-min) (viper-line-pos 'end)) |
| 2219 | file (if (buffer-file-name) | 2219 | file (cond ((buffer-file-name) |
| 2220 | (concat (viper-abbreviate-file-name (buffer-file-name)) ":") | 2220 | (concat (viper-abbreviate-file-name (buffer-file-name)) ":")) |
| 2221 | (concat (buffer-name) " [Not visiting any file]:")) | 2221 | ((buffer-file-name (buffer-base-buffer)) |
| 2222 | (concat (viper-abbreviate-file-name (buffer-file-name (buffer-base-buffer))) " (indirect buffer):")) | ||
| 2223 | (t (concat (buffer-name) " [Not visiting any file]:"))) | ||
| 2222 | info (format "line=%d/%d pos=%d/%d col=%d %s" | 2224 | info (format "line=%d/%d pos=%d/%d col=%d %s" |
| 2223 | (if (= pos1 pos2) | 2225 | (if (= pos1 pos2) |
| 2224 | (1+ lines) | 2226 | (1+ lines) |
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el index f76a9310518..05c90f995ab 100644 --- a/lisp/emulation/viper-keym.el +++ b/lisp/emulation/viper-keym.el | |||
| @@ -33,6 +33,9 @@ | |||
| 33 | (defvar viper-expert-level) | 33 | (defvar viper-expert-level) |
| 34 | (defvar viper-ex-style-editing) | 34 | (defvar viper-ex-style-editing) |
| 35 | (defvar viper-ex-style-motion) | 35 | (defvar viper-ex-style-motion) |
| 36 | |||
| 37 | (eval-and-compile | ||
| 38 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 36 | ;; end pacifier | 39 | ;; end pacifier |
| 37 | 40 | ||
| 38 | (require 'viper-util) | 41 | (require 'viper-util) |
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index 33061565196..b838d8ce80e 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -44,6 +44,9 @@ | |||
| 44 | 44 | ||
| 45 | (require 'ring) | 45 | (require 'ring) |
| 46 | 46 | ||
| 47 | (eval-and-compile | ||
| 48 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 49 | |||
| 47 | ;; end pacifier | 50 | ;; end pacifier |
| 48 | 51 | ||
| 49 | (require 'viper-init) | 52 | (require 'viper-init) |
| @@ -713,7 +716,7 @@ | |||
| 713 | (not (memq (vc-state file) '(edited needs-merge))) | 716 | (not (memq (vc-state file) '(edited needs-merge))) |
| 714 | (not (stringp (vc-state file)))) | 717 | (not (stringp (vc-state file)))) |
| 715 | ;; XEmacs has no vc-state | 718 | ;; XEmacs has no vc-state |
| 716 | (if (featurep 'xemacs)(not (vc-locking-user file)))) | 719 | (if (featurep 'xemacs) (not (vc-locking-user file)))) |
| 717 | )) | 720 | )) |
| 718 | 721 | ||
| 719 | ;; checkout if visited file is checked in | 722 | ;; checkout if visited file is checked in |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 19d3a7f018a..9d2acac4ce7 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | ;; Author: Michael Kifer <kifer@cs.stonybrook.edu> | 9 | ;; Author: Michael Kifer <kifer@cs.stonybrook.edu> |
| 10 | ;; Keywords: emulations | 10 | ;; Keywords: emulations |
| 11 | 11 | ||
| 12 | (defconst viper-version "3.14 of August 18, 2007" | 12 | (defconst viper-version "3.14 of January 09, 2008" |
| 13 | "The current version of Viper") | 13 | "The current version of Viper") |
| 14 | 14 | ||
| 15 | ;; This file is part of GNU Emacs. | 15 | ;; This file is part of GNU Emacs. |
| @@ -857,7 +857,9 @@ It also can't undo some Viper settings." | |||
| 857 | (modify-frame-parameters | 857 | (modify-frame-parameters |
| 858 | (selected-frame) | 858 | (selected-frame) |
| 859 | (list (cons 'viper-vi-state-cursor-color | 859 | (list (cons 'viper-vi-state-cursor-color |
| 860 | (viper-get-cursor-color)))))) | 860 | (viper-get-cursor-color)))) |
| 861 | (setq viper-vi-state-cursor-color (viper-get-cursor-color)) | ||
| 862 | )) | ||
| 861 | 863 | ||
| 862 | ;; Tell vc-diff to put *vc* in Vi mode | 864 | ;; Tell vc-diff to put *vc* in Vi mode |
| 863 | (if (featurep 'vc) | 865 | (if (featurep 'vc) |
| @@ -900,6 +902,7 @@ It also can't undo some Viper settings." | |||
| 900 | (modify-frame-parameters | 902 | (modify-frame-parameters |
| 901 | (selected-frame) | 903 | (selected-frame) |
| 902 | (list (cons 'viper-vi-state-cursor-color (ad-get-arg 0)))) | 904 | (list (cons 'viper-vi-state-cursor-color (ad-get-arg 0)))) |
| 905 | (setq viper-vi-state-cursor-color (ad-get-arg 0)) | ||
| 903 | ) | 906 | ) |
| 904 | 907 | ||
| 905 | (when (and (fboundp 'add-to-ordered-list) (boundp 'emulation-mode-map-alists)) | 908 | (when (and (fboundp 'add-to-ordered-list) (boundp 'emulation-mode-map-alists)) |