* Insufficient functionality of yank-excluded-properties
@ 2002-04-21 17:35 Kim F. Storm
2002-04-21 17:52 ` Robert J. Chassell
2002-04-22 7:47 ` Richard Stallman
0 siblings, 2 replies; 4+ messages in thread
From: Kim F. Storm @ 2002-04-21 17:35 UTC (permalink / raw)
Try the following:
Do C-h f help RET and copy the contents of the *Help* buffer to
another buffer. The mouse highlight of the help buttons is still
active, i.e. the mouse-face property hasn't been removed.
The reason is that the `category' text property is copied.
In this specific case, the category is `help-function-def-button'
which has a mouse-face property.
One option is to add `category' to yank-excluded-properties, but
that's probably too dramatic.
A better solution might be for remove-list-of-text-properties
to remove a `category' text property if that category specifies
one of the excluded text properties in the list.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Insufficient functionality of yank-excluded-properties
2002-04-21 17:35 Insufficient functionality of yank-excluded-properties Kim F. Storm
@ 2002-04-21 17:52 ` Robert J. Chassell
2002-04-22 7:47 ` Richard Stallman
1 sibling, 0 replies; 4+ messages in thread
From: Robert J. Chassell @ 2002-04-21 17:52 UTC (permalink / raw)
Try the following:
Do C-h f help RET and copy the contents of the *Help* buffer to
another buffer. The mouse highlight of the help buttons is still
active, i.e. the mouse-face property hasn't been removed.
When Emacs started using text properties, I defined the following
`remove-window-text-properties' function and added it to my .emacs
file. I have found it very useful -- so useful I put the command on a
function key.
I use it when doing the kind of copying you give as an example.
;;; Remove text properties
;; I like to remove text properties that facemenu added to region.
;; This provides a keybinding to remove all text properties
;; in the region visible in a window.
(defun remove-window-text-properties ()
"Remove text properties in the region visible in a window."
(interactive)
(facemenu-remove-all (window-start) (window-end)))
(global-set-key [f4] 'remove-window-text-properties)
--
Robert J. Chassell bob@rattlesnake.com
Rattlesnake Enterprises http://www.rattlesnake.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Insufficient functionality of yank-excluded-properties
2002-04-21 17:35 Insufficient functionality of yank-excluded-properties Kim F. Storm
2002-04-21 17:52 ` Robert J. Chassell
@ 2002-04-22 7:47 ` Richard Stallman
2002-04-22 8:22 ` Miles Bader
1 sibling, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2002-04-22 7:47 UTC (permalink / raw)
Cc: emacs-devel
The reason is that the `category' text property is copied.
In this specific case, the category is `help-function-def-button'
which has a mouse-face property.
This is a hard case to see how to handle correctly.
A better solution might be for remove-list-of-text-properties
to remove a `category' text property if that category specifies
one of the excluded text properties in the list.
That might be the right thing to do. In addition, perhaps we should
avoid puttin on a `mouse-face' property via `category'. We could change
the Help mode code to put on the `mouse-face' property separately.
Should we do that?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Insufficient functionality of yank-excluded-properties
2002-04-22 7:47 ` Richard Stallman
@ 2002-04-22 8:22 ` Miles Bader
0 siblings, 0 replies; 4+ messages in thread
From: Miles Bader @ 2002-04-22 8:22 UTC (permalink / raw)
Cc: storm, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> That might be the right thing to do. In addition, perhaps we should
> avoid puttin on a `mouse-face' property via `category'. We could change
> the Help mode code to put on the `mouse-face' property separately.
> Should we do that?
Well, the reason it uses `category' is because it makes the code simpler.
Going through and ensuring that button-face is only ever used as a
direct property would be kind of annoying, I think.
If you remove the `category' property entirely for buttons (it's
buttons that use it), I suspect that the only interesting thing that
would be lost would the face the button uses.
-Miles
--
Occam's razor split hairs so well, I bought the whole argument!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-22 8:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-21 17:35 Insufficient functionality of yank-excluded-properties Kim F. Storm
2002-04-21 17:52 ` Robert J. Chassell
2002-04-22 7:47 ` Richard Stallman
2002-04-22 8:22 ` Miles Bader
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.