From: storm@cua.dk (Kim F. Storm)
Cc: johnw@gnu.org, emacs-devel@gnu.org
Subject: Re: Question about copy-region-as-kill
Date: 10 Apr 2002 18:27:34 +0200 [thread overview]
Message-ID: <5x3cy3semh.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <200204101424.g3AEO8N20963@aztec.santafe.edu>
Richard Stallman <rms@gnu.org> writes:
> It might be possible to divide all major modes into a few named
> categories, such that we could design a reasonable plan for what to do
> with text props on copying of text, given the category of the buffer
> being copied from and the category of the buffer being copied to.
This scheme may cover perhaps 90% of all cases, so I still think having
buffer-local lists of properties to discard on copy/yank would provide
a (possible) solution for the last 10%...
>
> Here is a starting list of categories:
>
> A. Buffers where properties are determined from the characters.
> (E.g., programming language mode using font-lock, Rmail, and Info.)
>
> B. Buffers where properties are put on by Lisp code but can't be
> determined from the characters. (E.g., the minibuffer, the output
> of list-faces-display, and Shell mode).
>
> C. Buffers which should have no text properties.
> (E.g., programming language mode without font-lock).
>
> D. Buffers where properties can be assigned by users.
> (E.g., Enriched mode, and maybe Fundamental mode).
>
> Perhaps all text properties should be discarded when copying into
> buffers of categories A, B and C. But what should be done with images
> copied into these buffers?
Again, it depends... E.g. if we enhance RMAIL to show small icons
for unread or urgent messages (or whatever), we don't want to copy
those images -- but if a mail message contains an image, we would
(probably) want to copy that (as an image).
>
> Perhaps certain specific properties should be discarded when
> copying into category D buffers.
>
Such as mouse-face and read-only...
> Are any more alternative categories or subdivisions of them needed?
Can't think of any, but I suppose there will be those 10% of special
cases which will never fit (entirely) into a specific category.
But what about (also) having a user command:
yank-without-properties
which can be bound to C-Y (when supported) and C-x C-y?
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2002-04-10 16:27 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-03 23:23 Question about copy-region-as-kill John Wiegley
2002-04-05 6:02 ` Richard Stallman
2002-04-05 21:39 ` John Wiegley
2002-04-06 7:19 ` Eli Zaretskii
2002-04-06 8:21 ` John Wiegley
2002-04-06 10:29 ` Karl Eichwalder
2002-04-06 17:46 ` Kai Großjohann
2002-04-06 18:05 ` Alex Schroeder
2002-04-07 18:50 ` Richard Stallman
2002-04-08 1:23 ` Miles Bader
2002-04-06 18:30 ` Karl Eichwalder
2002-04-06 23:03 ` Alan Shutko
2002-04-07 7:42 ` Karl Eichwalder
2002-04-08 15:53 ` Stefan Monnier
2002-04-08 21:21 ` John Wiegley
2002-04-09 9:31 ` Kim F. Storm
2002-04-09 11:03 ` Eli Zaretskii
2002-04-09 10:23 ` Miles Bader
2002-04-09 13:05 ` Kim F. Storm
2002-04-09 13:24 ` Miles Bader
2002-04-09 14:42 ` Eli Zaretskii
2002-04-10 14:24 ` Richard Stallman
2002-04-10 14:24 ` Richard Stallman
2002-04-10 16:27 ` Kim F. Storm [this message]
2002-04-11 14:53 ` Richard Stallman
2002-04-11 16:27 ` Kim F. Storm
2002-04-12 19:49 ` Richard Stallman
2002-04-12 10:36 ` Francesco Potorti`
2002-04-09 15:26 ` Per Abrahamsen
2002-04-09 21:28 ` John Wiegley
2002-04-07 3:56 ` Tak Ota
2002-04-06 15:05 ` Andreas Schwab
2002-04-06 17:32 ` Richard Stallman
2002-04-06 20:38 ` John Wiegley
2002-04-06 23:03 ` Alex Schroeder
2002-04-07 0:12 ` Colin Walters
2002-04-07 0:56 ` Miles Bader
2002-04-07 2:53 ` John Wiegley
2002-04-07 4:44 ` Colin Walters
2002-04-07 4:58 ` Miles Bader
2002-04-07 5:32 ` Colin Walters
2002-04-07 6:53 ` Miles Bader
2002-04-07 7:46 ` Colin Walters
2002-04-07 8:18 ` Alex Schroeder
2002-04-07 12:20 ` Miles Bader
2002-04-08 3:09 ` Colin Walters
2002-04-08 6:18 ` Miles Bader
2002-04-09 22:04 ` Colin Walters
2002-04-10 20:17 ` Richard Stallman
2002-04-09 12:07 ` Richard Stallman
2002-04-09 22:12 ` Colin Walters
2002-04-07 6:36 ` John Wiegley
2002-04-07 6:55 ` Colin Walters
2002-04-07 23:42 ` Richard Stallman
2002-04-08 3:14 ` Colin Walters
2002-04-09 12:07 ` Richard Stallman
2002-04-09 22:06 ` Colin Walters
2002-04-07 4:41 ` Colin Walters
2002-04-07 4:58 ` Miles Bader
2002-04-07 5:43 ` Colin Walters
2002-04-07 10:52 ` Kai Großjohann
2002-04-06 17:43 ` Kai Großjohann
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=5x3cy3semh.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=johnw@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.