From: Joost Kremers <joost.m.kremers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Annoying kill-ring behavior
Date: 4 Apr 2014 04:34:25 GMT [thread overview]
Message-ID: <slrnljsdih.2sl.joost.m.kremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: d9afdadd-79a9-4752-a49f-1aa0ece60dcb@googlegroups.com
Smith_RS wrote:
> On Thursday, April 3, 2014 9:52:17 AM UTC-7, Smith_RS wrote:
>> When I try to update the kill-ring "by hand" I find that when I try to access yank-menu it is no longer in sync with the kill-ring.
>>
>> How do I fix that? The code in menu-bar.el doesn't really explain how it's kept in sync. What am I missing? Is there a hook somewhere?
>
> Never mind, I figured it out.
Did you check the doc string of `kill-ring'? There, you'll find the
warning not to use that variable directly. There are functions to update
the kill ring that you should use instead:
,----
| List of killed text sequences.
| Since the kill ring is supposed to interact nicely with cut-and-paste
| facilities offered by window systems, use of this variable should
| interact nicely with `interprogram-cut-function' and
| `interprogram-paste-function'. The functions `kill-new',
| `kill-append', and `current-kill' are supposed to implement this
| interaction; you may want to use them instead of manipulating the kill
| ring directly.
`----
And although it doesn't say so, looking at the source shows that
the yank menu is also updated.
HTH
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
next prev parent reply other threads:[~2014-04-04 4:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 22:06 Annoying kill-ring behavior Smith_RS
2014-03-31 22:45 ` Stefan Monnier
[not found] ` <mailman.18630.1396305973.10748.help-gnu-emacs@gnu.org>
2014-04-01 7:54 ` Smith_RS
2014-04-01 16:23 ` Smith_RS
2014-04-02 11:59 ` Stefan Monnier
[not found] ` <mailman.18813.1396529475.10748.help-gnu-emacs@gnu.org>
2014-04-03 16:52 ` Smith_RS
2014-04-03 21:59 ` Smith_RS
2014-04-04 4:34 ` Joost Kremers [this message]
2014-04-04 7:00 ` Smith_RS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnljsdih.2sl.joost.m.kremers@j.kremers4.news.arnhem.chello.nl \
--to=joost.m.kremers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.