unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* kill ring questions, #emacs
@ 2018-04-15  4:06 Emanuel Berg
  2018-04-15  4:28 ` Emanuel Berg
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Emanuel Berg @ 2018-04-15  4:06 UTC (permalink / raw)
  To: help-gnu-emacs

I just posted this on #emacs but I don't see
why I can't post it here as well. They say in
the topic "No public logging! What happens in
#emacs stays in #emacs" but surely that doesn't
refer to 100% on-topic Q&As, right? (Or, for
that matter, the topic itself :))

<incal> hello, is there a setting to inhibit
        the kill ring from filling up with
        several back-to-back instances of the
        same string?
        
<incal> also why is the kill ring fontified?
        why not let that be determined by the
        mode/context of the new place, where it
        is yanked?
        
-- 
underground experts united
http://user.it.uu.se/~embe8573


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

* Re: kill ring questions, #emacs
  2018-04-15  4:06 kill ring questions, #emacs Emanuel Berg
@ 2018-04-15  4:28 ` Emanuel Berg
  2018-04-15  5:36 ` Marcin Borkowski
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2018-04-15  4:28 UTC (permalink / raw)
  To: help-gnu-emacs

> <incal> hello, is there a setting to inhibit
>         the kill ring from filling up with
>         several back-to-back instances of the
>         same string?

`kill-do-not-save-duplicates'

-- 
underground experts united
http://user.it.uu.se/~embe8573


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

* Re: kill ring questions, #emacs
  2018-04-15  4:06 kill ring questions, #emacs Emanuel Berg
  2018-04-15  4:28 ` Emanuel Berg
@ 2018-04-15  5:36 ` Marcin Borkowski
  2018-04-15  6:40 ` Teemu Likonen
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Marcin Borkowski @ 2018-04-15  5:36 UTC (permalink / raw)
  To: Emanuel Berg; +Cc: help-gnu-emacs


On 2018-04-15, at 06:06, Emanuel Berg <moasen@zoho.com> wrote:

> <incal> also why is the kill ring fontified?
>         why not let that be determined by the
>         mode/context of the new place, where it
>         is yanked?

Why not?  You can discard fontification when yanking (see
`yank-excluded-properties'), and what if someone wants to yank /with/
the properties?

Hth,

-- 
Marcin Borkowski
http://mbork.pl



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

* Re: kill ring questions, #emacs
  2018-04-15  4:06 kill ring questions, #emacs Emanuel Berg
  2018-04-15  4:28 ` Emanuel Berg
  2018-04-15  5:36 ` Marcin Borkowski
@ 2018-04-15  6:40 ` Teemu Likonen
       [not found] ` <mailman.12417.1523770740.27995.help-gnu-emacs@gnu.org>
       [not found] ` <mailman.12418.1523774421.27995.help-gnu-emacs@gnu.org>
  4 siblings, 0 replies; 6+ messages in thread
From: Teemu Likonen @ 2018-04-15  6:40 UTC (permalink / raw)
  To: help-gnu-emacs

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

Emanuel Berg [2018-04-15 06:06:15+02] wrote:

> <incal> also why is the kill ring fontified?
>         why not let that be determined by the
>         mode/context of the new place, where it
>         is yanked?

I can't answer the "why" question but since I don't like it when I'm
yankin I exclude all face properties on yank:

    (add-to-list 'yank-excluded-properties 'face)

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* Re: kill ring questions, #emacs
       [not found] ` <mailman.12417.1523770740.27995.help-gnu-emacs@gnu.org>
@ 2018-04-15 14:17   ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2018-04-15 14:17 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski wrote:

> Why not? You can discard fontification when
> yanking (see `yank-excluded-properties'), and
> what if someone wants to yank /with/
> the properties?

He/she should be punished.

-- 
underground experts united
http://user.it.uu.se/~embe8573


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

* Re: kill ring questions, #emacs
       [not found] ` <mailman.12418.1523774421.27995.help-gnu-emacs@gnu.org>
@ 2018-04-15 14:18   ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2018-04-15 14:18 UTC (permalink / raw)
  To: help-gnu-emacs

Teemu Likonen wrote:

> I can't answer the "why" question but since
> I don't like it when I'm yankin I exclude all
> face properties on yank:
>
>     (add-to-list 'yank-excluded-properties
>     'face)

Sensible. Thank you.

-- 
underground experts united
http://user.it.uu.se/~embe8573


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

end of thread, other threads:[~2018-04-15 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-15  4:06 kill ring questions, #emacs Emanuel Berg
2018-04-15  4:28 ` Emanuel Berg
2018-04-15  5:36 ` Marcin Borkowski
2018-04-15  6:40 ` Teemu Likonen
     [not found] ` <mailman.12417.1523770740.27995.help-gnu-emacs@gnu.org>
2018-04-15 14:17   ` Emanuel Berg
     [not found] ` <mailman.12418.1523774421.27995.help-gnu-emacs@gnu.org>
2018-04-15 14:18   ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).