emacs-devel
[Top][All Lists]
Advanced

[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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]