GNU bug report logs - #5320
yank-pop does not work in table mode

Previous Next

Package: emacs;

Reported by: harven <harven <at> free.fr>

Date: Tue, 5 Jan 2010 19:53:04 UTC

Severity: normal

Tags: confirmed

Found in version 25.0.95

Full log


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: harven <harven <at> free.fr>
Cc: 5320 <at> debbugs.gnu.org
Subject: bug#5320: yank-pop does not work in table mode
Date: Wed, 06 Jul 2016 19:47:00 -0400
found 5320 25.0.95
tags 5320 confirmed
quit

Problem seems to be that the mark ends up in the table cache buffer instead of the main one.

Adding yank-pop as one of the specially handles sort of helps a bit, but
even with that it's still broken: yank-pop doesn't throw error, but
previously yanked text is not removed.  I think correct solution would
involve using after-change-functions rather trying to wrap each command
individually.

diff --git i/lisp/textmodes/table.el w/lisp/textmodes/table.el
index 653db83..2e4dd6d 100644
--- i/lisp/textmodes/table.el
+++ w/lisp/textmodes/table.el
@@ -1395,5 +1395,5 @@ (dolist (command
 ;; Pasting Group
 (dolist (command
-         '(yank
+         '(yank yank-pop ; <-- this doesn't quite work
            clipboard-yank
            yank-clipboard-selection




This bug report was last modified 8 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.