Subject: Re: bug#5320: yank-pop does not work in table mode

From: [email-masked]
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