* bug#5320: yank-pop does not work in table mode
@ 2010-01-05 17:18 harven
2016-07-06 23:47 ` npostavs
0 siblings, 1 reply; 2+ messages in thread
From: harven @ 2010-01-05 17:18 UTC (permalink / raw)
To: bug-gnu-emacs
Yank-pop does not work when the cursor is in a cell of a table created
with table mode.
Starting with emacs -Q, create a table (default 3x3)
M-x table-insert RET RET RET RET RET
Then put the cursor in some cell, write a word, kill it, write another word,
kill it again.
word1 M-b C-k word2 M-b C-k
Then try to yank-pop to retrieve the first word
C-y M-y
I get in the minibuffer
Wrong type argument: number-or-marker-p, nil
yank-pop works if the cursor is not in a cell. If I come back in a cell
after yanking outside the table, and try to yank-pop in the cell, no error
is reported but the table is messed up, all cells after the cursor are
destroyed.
In GNU Emacs 22.1.1 (i386-apple-darwin8.10.1, X toolkit)
Also tested in GNU Emacs 23.1 under Debian gnu/linux.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#5320: yank-pop does not work in table mode
2010-01-05 17:18 bug#5320: yank-pop does not work in table mode harven
@ 2016-07-06 23:47 ` npostavs
0 siblings, 0 replies; 2+ messages in thread
From: npostavs @ 2016-07-06 23:47 UTC (permalink / raw)
To: harven; +Cc: 5320
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-06 23:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-05 17:18 bug#5320: yank-pop does not work in table mode harven
2016-07-06 23:47 ` npostavs
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.