all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.