all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* run tests from el files
@ 2016-06-27 20:41 Phillip Lord
  2016-06-27 21:05 ` Robert Weiner
  2016-06-27 23:58 ` Noam Postavsky
  0 siblings, 2 replies; 5+ messages in thread
From: Phillip Lord @ 2016-06-27 20:41 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]


I would like comments on this patch which I'd like to install on master.

The idea is to run tests of the .el files because they give nicer
stacktraces. I can see no downsides to this, but I don't understand
why the .elc files were used in the first place, so wanted to ask.

Phil



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-undo-boundary-always.patch --]
[-- Type: text/x-diff, Size: 1086 bytes --]

From: Phillip Lord <phillip.lord@russet.org.uk>
Date: Fri, 17 Jun 2016 22:34:50 +0100
Subject: [PATCH] Fix missing undo-boundary after revert-buffer

* lisp/simple.el (undo-auto--boundaries): Ensure an undo-boundary after
  every command whether it (apparently) changes the buffer or not.

Addresses Bug#23785
---
 lisp/simple.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/simple.el b/lisp/simple.el
index b66827d..3110430 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2875,6 +2875,10 @@ undo-auto--boundaries
   "Check recently changed buffers and add a boundary if necessary.
 REASON describes the reason that the boundary is being added; see
 `undo-last-boundary' for more information."
+  ;; (Bug #23785) All commands should ensure that there is an undo
+  ;; boundary whether they have changed the current buffer or not.
+  (when (eq cause 'command)
+    (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer)))
   (dolist (b undo-auto--undoably-changed-buffers)
           (when (buffer-live-p b)
             (with-current-buffer b
-- 
2.8.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-27 23:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 20:41 run tests from el files Phillip Lord
2016-06-27 21:05 ` Robert Weiner
2016-06-27 21:47   ` Phillip Lord
2016-06-27 22:56     ` Robert Weiner
2016-06-27 23:58 ` Noam Postavsky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.