aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-02-04 15:29:44 +0000
committerStefan Monnier2008-02-04 15:29:44 +0000
commitd9090cc15a6ec3039fc0dc9ef4c826b8541d78f1 (patch)
tree83667ffb61760f1c834ceb316b7508300bcea86a
parentca1617bfd6e10ca2ff245006d967d954d1d5c0a2 (diff)
downloademacs-d9090cc15a6ec3039fc0dc9ef4c826b8541d78f1.tar.gz
emacs-d9090cc15a6ec3039fc0dc9ef4c826b8541d78f1.zip
(cancel-change-group): Don't move point.
-rw-r--r--lisp/ChangeLog45
-rw-r--r--lisp/subr.el45
2 files changed, 46 insertions, 44 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 20554f8442d..93b63a00f55 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,10 +1,14 @@
12008-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * subr.el (cancel-change-group): Don't move point.
4
12008-02-02 Michael Albinus <michael.albinus@gmx.de> 52008-02-02 Michael Albinus <michael.albinus@gmx.de>
2 6
3 Sync with Tramp 2.0.57. 7 Sync with Tramp 2.0.57.
4 8
5 * net/tramp.el (tramp-handle-make-auto-save-file-name) 9 * net/tramp.el (tramp-handle-make-auto-save-file-name)
6 (tramp-completion-dissect-file-name, tramp-find-executable): Use 10 (tramp-completion-dissect-file-name, tramp-find-executable):
7 `mapc' instead of `mapcar'. 11 Use `mapc' instead of `mapcar'.
8 (tramp-open-connection-setup-interactive-shell): Send only single 12 (tramp-open-connection-setup-interactive-shell): Send only single
9 prompt setting commands, in order to avoid double-prompt. 13 prompt setting commands, in order to avoid double-prompt.
10 14
@@ -112,8 +116,8 @@
112 116
1132008-01-26 Alan Mackenzie <acm@muc.de> 1172008-01-26 Alan Mackenzie <acm@muc.de>
114 118
115 * progmodes/cc-defs.el (c-save-buffer-state): Bind 119 * progmodes/cc-defs.el (c-save-buffer-state):
116 buffer-file-name and buffer-file-truename to nil, to prevent 120 Bind buffer-file-name and buffer-file-truename to nil, to prevent
117 primitives generating "buffer is read only" messages. 121 primitives generating "buffer is read only" messages.
118 122
1192008-01-26 Eli Zaretskii <eliz@gnu.org> 1232008-01-26 Eli Zaretskii <eliz@gnu.org>
@@ -179,9 +183,8 @@
179 183
1802008-01-16 Alan Mackenzie <acm@muc.de> 1842008-01-16 Alan Mackenzie <acm@muc.de>
181 185
182 * progmodes/cc-vars.el (c-constant-symbol): Put this defun inside 186 * progmodes/cc-vars.el (c-constant-symbol): Put this defun inside an
183 an eval-and-compile, so as to permit byte-compiling (e.g. in 187 eval-and-compile, so as to permit byte-compiling (e.g. in bootstrap).
184 bootstrap).
185 188
1862008-01-16 Juanma Barranquero <lekktu@gmail.com> 1892008-01-16 Juanma Barranquero <lekktu@gmail.com>
187 190
@@ -225,7 +228,7 @@
225 * progmodes/cc-vars.el (c-hanging-braces-alist): Remove the 228 * progmodes/cc-vars.el (c-hanging-braces-alist): Remove the
226 obscure non-working fragment ":value c-". 229 obscure non-working fragment ":value c-".
227 230
228 * progmodes/cc-engine.el (c-guess-basic-syntax): prevent a macro 231 * progmodes/cc-engine.el (c-guess-basic-syntax): Prevent a macro
229 call inside a struct being recognised as a K&R argument. 232 call inside a struct being recognised as a K&R argument.
230 233
2312008-01-14 Jason Rumney <jasonr@gnu.org> 2342008-01-14 Jason Rumney <jasonr@gnu.org>
@@ -240,15 +243,14 @@
240 243
2412008-01-12 Eli Zaretskii <eliz@gnu.org> 2442008-01-12 Eli Zaretskii <eliz@gnu.org>
242 245
243 * view.el (view-file-other-window, view-file-other-frame): Don't 246 * view.el (view-file-other-window, view-file-other-frame):
244 kill the buffer if it is modified. Doc fixes. 247 Don't kill the buffer if it is modified. Doc fixes.
245 (kill-buffer-if-not-modified): New function. 248 (kill-buffer-if-not-modified): New function.
246 (view-file): Don't kill the buffer if it is modified. 249 (view-file): Don't kill the buffer if it is modified.
247 250
248 * progmodes/ebrowse.el (ebrowse-view-file-other-window): Delete 251 * progmodes/ebrowse.el (ebrowse-view-file-other-window): Delete.
249 function. 252 (ebrowse-view/find-file-and-search-pattern):
250 (ebrowse-view/find-file-and-search-pattern): Call 253 Call view-file-other-window instead of ebrowse-view-file-other-window.
251 view-file-other-window instead of ebrowse-view-file-other-window.
252 (ebrowse-view-file-other-frame): Don't call 254 (ebrowse-view-file-other-frame): Don't call
253 current-window-configuration. Fix second argument in the call to 255 current-window-configuration. Fix second argument in the call to
254 view-mode-enter. Doc fix. 256 view-mode-enter. Doc fix.
@@ -263,8 +265,8 @@
263 265
2642008-01-10 Dan Nicolaescu <dann@ics.uci.edu> 2662008-01-10 Dan Nicolaescu <dann@ics.uci.edu>
265 267
266 * files.el (safe-local-eval-forms): Mark 268 * files.el (safe-local-eval-forms):
267 (add-hook 'write-file-hooks 'time-stamp) as safe. 269 Mark (add-hook 'write-file-hooks 'time-stamp) as safe.
268 270
2692008-01-10 Nick Roberts <nickrob@snap.net.nz> 2712008-01-10 Nick Roberts <nickrob@snap.net.nz>
270 272
@@ -344,8 +346,8 @@
344 (verilog-auto-input-ignore-regexp) 346 (verilog-auto-input-ignore-regexp)
345 (verilog-auto-inout-ignore-regexp) 347 (verilog-auto-inout-ignore-regexp)
346 (verilog-auto-output-ignore-regexp) 348 (verilog-auto-output-ignore-regexp)
347 (verilog-auto-unused-ignore-regexp, verilog-typedef-regexp): Add 349 (verilog-auto-unused-ignore-regexp, verilog-typedef-regexp):
348 safe-local-variable properties. 350 Add safe-local-variable properties.
349 (verilog-statement-menu, verilog-company) 351 (verilog-statement-menu, verilog-company)
350 (verilog-re-search-forward, verilog-re-search-backward) 352 (verilog-re-search-forward, verilog-re-search-backward)
351 (verilog-error-regexp-add, verilog-end-block-re) 353 (verilog-error-regexp-add, verilog-end-block-re)
@@ -431,13 +433,12 @@
431 433
4322008-01-07 Nick Roberts <nickrob@snap.net.nz> 4342008-01-07 Nick Roberts <nickrob@snap.net.nz>
433 435
434 * progmodes/gdb-ui.el (gud-gdb-command-name): Explain 436 * progmodes/gdb-ui.el (gud-gdb-command-name):
435 "--annotate=3" option is necessary for the Graphical Interface. 437 Explain "--annotate=3" option is necessary for the Graphical Interface.
436 438
4372008-01-07 Dan Nicolaescu <dann@ics.uci.edu> 4392008-01-07 Dan Nicolaescu <dann@ics.uci.edu>
438 440
439 * vc-hg.el (vc-hg-dir-state): Pass the dir argument to 441 * vc-hg.el (vc-hg-dir-state): Pass the dir argument to vc-hg-command.
440 vc-hg-command.
441 442
4422008-01-07 Glenn Morris <rgm@gnu.org> 4432008-01-07 Glenn Morris <rgm@gnu.org>
443 444
diff --git a/lisp/subr.el b/lisp/subr.el
index b4bd4a0150c..ef908c0a7cb 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1871,28 +1871,29 @@ This finishes the change group by accepting its changes as final."
1871(defun cancel-change-group (handle) 1871(defun cancel-change-group (handle)
1872 "Finish a change group made with `prepare-change-group' (which see). 1872 "Finish a change group made with `prepare-change-group' (which see).
1873This finishes the change group by reverting all of its changes." 1873This finishes the change group by reverting all of its changes."
1874 (dolist (elt handle) 1874 (save-excursion
1875 (with-current-buffer (car elt) 1875 (dolist (elt handle)
1876 (setq elt (cdr elt)) 1876 (with-current-buffer (car elt)
1877 (let ((old-car 1877 (setq elt (cdr elt))
1878 (if (consp elt) (car elt))) 1878 (let ((old-car
1879 (old-cdr 1879 (if (consp elt) (car elt)))
1880 (if (consp elt) (cdr elt)))) 1880 (old-cdr
1881 ;; Temporarily truncate the undo log at ELT. 1881 (if (consp elt) (cdr elt))))
1882 (when (consp elt) 1882 ;; Temporarily truncate the undo log at ELT.
1883 (setcar elt nil) (setcdr elt nil)) 1883 (when (consp elt)
1884 (unless (eq last-command 'undo) (undo-start)) 1884 (setcar elt nil) (setcdr elt nil))
1885 ;; Make sure there's no confusion. 1885 (unless (eq last-command 'undo) (undo-start))
1886 (when (and (consp elt) (not (eq elt (last pending-undo-list)))) 1886 ;; Make sure there's no confusion.
1887 (error "Undoing to some unrelated state")) 1887 (when (and (consp elt) (not (eq elt (last pending-undo-list))))
1888 ;; Undo it all. 1888 (error "Undoing to some unrelated state"))
1889 (while (listp pending-undo-list) (undo-more 1)) 1889 ;; Undo it all.
1890 ;; Reset the modified cons cell ELT to its original content. 1890 (while (listp pending-undo-list) (undo-more 1))
1891 (when (consp elt) 1891 ;; Reset the modified cons cell ELT to its original content.
1892 (setcar elt old-car) 1892 (when (consp elt)
1893 (setcdr elt old-cdr)) 1893 (setcar elt old-car)
1894 ;; Revert the undo info to what it was when we grabbed the state. 1894 (setcdr elt old-cdr))
1895 (setq buffer-undo-list elt))))) 1895 ;; Revert the undo info to what it was when we grabbed the state.
1896 (setq buffer-undo-list elt))))))
1896 1897
1897;;;; Display-related functions. 1898;;;; Display-related functions.
1898 1899