[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Q on Text Properties popup menu - shouldn't itusethepointerposition,
From: |
Drew Adams |
Subject: |
RE: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position? |
Date: |
Sun, 26 Jun 2005 17:07:01 -0700 |
FYI -
For those interested in what I was trying to suggest wrt using the mouse
pointer position for getting at text properties, see
http://www.emacswiki.org/elisp/facemenu+.el.
With this code, the Text Properties menu uses the cursor position (point)
when it is accessed from the menu-bar and the mouse pointer position when it
is accessed via mouse popup menu (C-mouse-2). So, for instance, you can
point the mouse at some text and pick Describe Properties to see its text
properties.
I also added items "Change Face Foreground", "Change Face Background", and
"Change Face Attribute" to the menu. The first two let you change a face
incrementally (using the arrow keys or mouse wheel). Using the C-mouse-2
popup menu, you can just point to some text that has a face and change the
face's colors incrementally. No need to know the face name or color
names/values beforehand: just point and tweak.
The code also lets Customize know that you've changed the face, so changing
the face this way is equivalent to changing it via Customize (using a face
name and color name). The library that does the incremental face changing
(used by facemenu+el) is here: http://www.emacswiki.org/elisp/doremi-frm.el.
The same idea could be extended to other properties/features that users
currently change by name, such as font properties (height, weight, etc.).
The idea is to provide for more direct manipulation: you see a
face/font/frame-parameter/whatever; you tweak it directly, without having to
know its name or the names of its properties and their possible values; you
can save the change via Customize.
- RE: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, (continued)
- RE: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, Drew Adams, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, Drew Adams, 2005/06/24
- Re: Q on Text Properties popup menu - shouldn't it use the pointerposition, not the cursor position?, Luc Teirlinck, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Drew Adams, 2005/06/24
- RE: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- Re: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Luc Teirlinck, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- Re: Q on Text Properties popup menu - shouldn't it use thepointerposition, not the cursor position?, Luc Teirlinck, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't it usethepointerposition, not the cursor position?, Drew Adams, 2005/06/25
- RE: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position?,
Drew Adams <=
- RE: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position?, Drew Adams, 2005/06/26
- Re: Q on Text Properties popup menu - shouldn't itusethepointerposition, not the cursor position?, Richard M. Stallman, 2005/06/27
- Do Re Mi (was: Q on Text Properties popup menu - shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/27
- Re: Do Re Mi (was: Q on Text Properties popup menu - shouldn'titusethepointerposition, not the cursor position?), Richard M. Stallman, 2005/06/28
- RE: Do Re Mi (was: Q on Text Properties popup menu -shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/28
- Re: Do Re Mi (was: Q on Text Properties popup menu -shouldn'titusethepointerposition, not the cursor position?), Robert J. Chassell, 2005/06/28
- RE: Do Re Mi (was: Q on Text Properties popup menu-shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/28
- Re: Do Re Mi (was: Q on Text Properties popup menu-shouldn'titusethepointerposition, not the cursor position?), Robert J. Chassell, 2005/06/28
- Re: Do Re Mi (was: Q on Text Properties popup menu -shouldn'titusethepointerposition, not the cursor position?), Richard M. Stallman, 2005/06/29
- RE: Do Re Mi (was: Q on Text Properties popup menu-shouldn'titusethepointerposition, not the cursor position?), Drew Adams, 2005/06/29