diff options
| author | Michael Kifer | 2006-09-18 19:22:31 +0000 |
|---|---|---|
| committer | Michael Kifer | 2006-09-18 19:22:31 +0000 |
| commit | f573c8b0357cf6d8563db405ead5c5a9f37d492b (patch) | |
| tree | 583643ce7e6fe031ab8a68c1c3abae691b6029f6 | |
| parent | 2b1119a0fd2c772e1f6b1e549fc1ee78aafb6ed4 (diff) | |
| download | emacs-f573c8b0357cf6d8563db405ead5c5a9f37d492b.tar.gz emacs-f573c8b0357cf6d8563db405ead5c5a9f37d492b.zip | |
* viper.el: Bumped up version/date of update to reflect the substantial
changes done in August 2006.
* viper-cmd (viper-next-line-at-bol): make sure button-at, push-button
are defined.
* ediff-util.el (ediff-add-to-history): new function.
* ediff.el: use ediff-add-to-history instead of add-to-history.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/ediff-util.el | 5 | ||||
| -rw-r--r-- | lisp/ediff.el | 70 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 2 |
5 files changed, 57 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d244569148f..2fbf08894a6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2006-09-18 Michael Kifer <kifer@cs.stonybrook.edu> | ||
| 2 | |||
| 3 | * viper.el: Bumped up version/date of update to reflect the substantial | ||
| 4 | changes done in August 2006. | ||
| 5 | |||
| 6 | * viper-cmd (viper-next-line-at-bol): make sure button-at, push-button | ||
| 7 | are defined. | ||
| 8 | |||
| 9 | * ediff-util.el (ediff-add-to-history): new function. | ||
| 10 | |||
| 11 | * ediff.el: use ediff-add-to-history instead of add-to-history. | ||
| 12 | |||
| 1 | 2006-09-18 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) | 13 | 2006-09-18 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) |
| 2 | 14 | ||
| 3 | * textmodes/conf-mode.el (conf-space-mode): Doc fix. | 15 | * textmodes/conf-mode.el (conf-space-mode): Doc fix. |
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el index dff3c6bee61..015e6bfff3e 100644 --- a/lisp/ediff-util.el +++ b/lisp/ediff-util.el | |||
| @@ -4281,6 +4281,11 @@ Mail anyway? (y or n) ") | |||
| 4281 | (setq lis1 (cdr lis1))) | 4281 | (setq lis1 (cdr lis1))) |
| 4282 | (cdr result))) | 4282 | (cdr result))) |
| 4283 | 4283 | ||
| 4284 | (defun ediff-add-to-history (history-var newelt) | ||
| 4285 | (if (fboundp 'add-to-history) | ||
| 4286 | (add-to-history history-var newelt) | ||
| 4287 | (set history-var (cons newelt (symbol-value history-var))))) | ||
| 4288 | |||
| 4284 | (if (fboundp 'copy-sequence) | 4289 | (if (fboundp 'copy-sequence) |
| 4285 | (defalias 'ediff-copy-list 'copy-sequence) | 4290 | (defalias 'ediff-copy-list 'copy-sequence) |
| 4286 | (defun ediff-copy-list (list) | 4291 | (defun ediff-copy-list (list) |
diff --git a/lisp/ediff.el b/lisp/ediff.el index 3e0be86b18b..6b37d4c1847 100644 --- a/lisp/ediff.el +++ b/lisp/ediff.el | |||
| @@ -7,8 +7,8 @@ | |||
| 7 | ;; Created: February 2, 1994 | 7 | ;; Created: February 2, 1994 |
| 8 | ;; Keywords: comparing, merging, patching, tools, unix | 8 | ;; Keywords: comparing, merging, patching, tools, unix |
| 9 | 9 | ||
| 10 | (defconst ediff-version "2.81" "The current version of Ediff") | 10 | (defconst ediff-version "2.81.1" "The current version of Ediff") |
| 11 | (defconst ediff-date "February 18, 2006" "Date of last update") | 11 | (defconst ediff-date "September 18, 2006" "Date of last update") |
| 12 | 12 | ||
| 13 | 13 | ||
| 14 | ;; This file is part of GNU Emacs. | 14 | ;; This file is part of GNU Emacs. |
| @@ -210,11 +210,12 @@ | |||
| 210 | ediff-last-dir-B | 210 | ediff-last-dir-B |
| 211 | (file-name-directory f))) | 211 | (file-name-directory f))) |
| 212 | (progn | 212 | (progn |
| 213 | (add-to-history 'file-name-history | 213 | (ediff-add-to-history |
| 214 | (ediff-abbreviate-file-name | 214 | 'file-name-history |
| 215 | (expand-file-name | 215 | (ediff-abbreviate-file-name |
| 216 | (file-name-nondirectory f) | 216 | (expand-file-name |
| 217 | dir-B))) | 217 | (file-name-nondirectory f) |
| 218 | dir-B))) | ||
| 218 | (ediff-get-default-file-name f 1))) | 219 | (ediff-get-default-file-name f 1))) |
| 219 | ))) | 220 | ))) |
| 220 | (ediff-files-internal file-A | 221 | (ediff-files-internal file-A |
| @@ -245,22 +246,24 @@ | |||
| 245 | ediff-last-dir-B | 246 | ediff-last-dir-B |
| 246 | (file-name-directory f))) | 247 | (file-name-directory f))) |
| 247 | (progn | 248 | (progn |
| 248 | (add-to-history 'file-name-history | 249 | (ediff-add-to-history |
| 249 | (ediff-abbreviate-file-name | 250 | 'file-name-history |
| 250 | (expand-file-name | 251 | (ediff-abbreviate-file-name |
| 251 | (file-name-nondirectory f) | 252 | (expand-file-name |
| 252 | dir-B))) | 253 | (file-name-nondirectory f) |
| 254 | dir-B))) | ||
| 253 | (ediff-get-default-file-name f 1)))) | 255 | (ediff-get-default-file-name f 1)))) |
| 254 | (ediff-read-file-name "File C to compare" | 256 | (ediff-read-file-name "File C to compare" |
| 255 | (setq dir-C (if ediff-use-last-dir | 257 | (setq dir-C (if ediff-use-last-dir |
| 256 | ediff-last-dir-C | 258 | ediff-last-dir-C |
| 257 | (file-name-directory ff))) | 259 | (file-name-directory ff))) |
| 258 | (progn | 260 | (progn |
| 259 | (add-to-history 'file-name-history | 261 | (ediff-add-to-history |
| 260 | (ediff-abbreviate-file-name | 262 | 'file-name-history |
| 261 | (expand-file-name | 263 | (ediff-abbreviate-file-name |
| 262 | (file-name-nondirectory ff) | 264 | (expand-file-name |
| 263 | dir-C))) | 265 | (file-name-nondirectory ff) |
| 266 | dir-C))) | ||
| 264 | (ediff-get-default-file-name ff 2))) | 267 | (ediff-get-default-file-name ff 2))) |
| 265 | ))) | 268 | ))) |
| 266 | (ediff-files-internal file-A | 269 | (ediff-files-internal file-A |
| @@ -1103,11 +1106,12 @@ lines. For small regions, use `ediff-regions-wordwise'." | |||
| 1103 | ediff-last-dir-B | 1106 | ediff-last-dir-B |
| 1104 | (file-name-directory f))) | 1107 | (file-name-directory f))) |
| 1105 | (progn | 1108 | (progn |
| 1106 | (add-to-history 'file-name-history | 1109 | (ediff-add-to-history |
| 1107 | (ediff-abbreviate-file-name | 1110 | 'file-name-history |
| 1108 | (expand-file-name | 1111 | (ediff-abbreviate-file-name |
| 1109 | (file-name-nondirectory f) | 1112 | (expand-file-name |
| 1110 | dir-B))) | 1113 | (file-name-nondirectory f) |
| 1114 | dir-B))) | ||
| 1111 | (ediff-get-default-file-name f 1))) | 1115 | (ediff-get-default-file-name f 1))) |
| 1112 | ))) | 1116 | ))) |
| 1113 | (setq startup-hooks (cons 'ediff-merge-on-startup startup-hooks)) | 1117 | (setq startup-hooks (cons 'ediff-merge-on-startup startup-hooks)) |
| @@ -1146,11 +1150,12 @@ lines. For small regions, use `ediff-regions-wordwise'." | |||
| 1146 | ediff-last-dir-B | 1150 | ediff-last-dir-B |
| 1147 | (file-name-directory f))) | 1151 | (file-name-directory f))) |
| 1148 | (progn | 1152 | (progn |
| 1149 | (add-to-history 'file-name-history | 1153 | (ediff-add-to-history |
| 1150 | (ediff-abbreviate-file-name | 1154 | 'file-name-history |
| 1151 | (expand-file-name | 1155 | (ediff-abbreviate-file-name |
| 1152 | (file-name-nondirectory f) | 1156 | (expand-file-name |
| 1153 | dir-B))) | 1157 | (file-name-nondirectory f) |
| 1158 | dir-B))) | ||
| 1154 | (ediff-get-default-file-name f 1)))) | 1159 | (ediff-get-default-file-name f 1)))) |
| 1155 | (ediff-read-file-name "Ancestor file" | 1160 | (ediff-read-file-name "Ancestor file" |
| 1156 | (setq dir-ancestor | 1161 | (setq dir-ancestor |
| @@ -1158,11 +1163,12 @@ lines. For small regions, use `ediff-regions-wordwise'." | |||
| 1158 | ediff-last-dir-ancestor | 1163 | ediff-last-dir-ancestor |
| 1159 | (file-name-directory ff))) | 1164 | (file-name-directory ff))) |
| 1160 | (progn | 1165 | (progn |
| 1161 | (add-to-history 'file-name-history | 1166 | (ediff-add-to-history |
| 1162 | (ediff-abbreviate-file-name | 1167 | 'file-name-history |
| 1163 | (expand-file-name | 1168 | (ediff-abbreviate-file-name |
| 1164 | (file-name-nondirectory ff) | 1169 | (expand-file-name |
| 1165 | dir-ancestor))) | 1170 | (file-name-nondirectory ff) |
| 1171 | dir-ancestor))) | ||
| 1166 | (ediff-get-default-file-name ff 2))) | 1172 | (ediff-get-default-file-name ff 2))) |
| 1167 | ))) | 1173 | ))) |
| 1168 | (setq startup-hooks (cons 'ediff-merge-on-startup startup-hooks)) | 1174 | (setq startup-hooks (cons 'ediff-merge-on-startup startup-hooks)) |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 1685b829f64..61d99e6c78d 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -3098,7 +3098,7 @@ If point is on a widget or a button, simulate clicking on that widget/button." | |||
| 3098 | (and (consp widget) | 3098 | (and (consp widget) |
| 3099 | (get (widget-type widget) 'widget-type)))) | 3099 | (get (widget-type widget) 'widget-type)))) |
| 3100 | (widget-button-press (point)) | 3100 | (widget-button-press (point)) |
| 3101 | (if (button-at (point)) | 3101 | (if (and (fboundp 'button-at) (fboundp 'push-button) (button-at (point))) |
| 3102 | (push-button) | 3102 | (push-button) |
| 3103 | ;; not a widget or a button | 3103 | ;; not a widget or a button |
| 3104 | (viper-leave-region-active) | 3104 | (viper-leave-region-active) |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 0ba7bdd041a..ea70ad609ad 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.12 of February 18, 2006" | 12 | (defconst viper-version "3.13 of September 18, 2006" |
| 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. |