mouse-set-font conflicts with customize-face

2006-10-04 Thread Otto Maddox
$ emacs -nbc -Q & S-Mouse-1 pops up a menu from which a new font can be selected. Customize the "default" face, make a simple change, for example, change the foreground color to blue, and set for current session. Now S-Mouse-1 pops up the font menu, but selecting a font doesn't have any effect.

Re: customize-face

2005-12-17 Thread martin rudalics
The following patch should assert that FROM is "correct" when `after-change-functions' is called (without any warranty). *** insdel.cSat Nov 5 20:46:36 2005 --- insdel.cSat Dec 17 18:22:00 2005 *** *** 749,757 { if (nbytes > 0) { ! int opoint = PT; !

Re: customize-face

2005-12-13 Thread martin rudalics
> > I suppose this happens because signal_after_change > is called with arguments `opoint' and `PT - opoint' where opoint = 1090 > and PT = 1090 + 52 + 1. > > Can you find the line number of the call to signal_after_change? > We need to determine why its argument FROM is incorrect.

Re: customize-face

2005-12-11 Thread Richard M. Stallman
The problem is that the FROM value of `widget-after-change' now points into the foreground overlay and the TO value into the background overlay. Right. So...where does the FROM value come from before it gets to widget-after-change? I suppose this happens because signal_after_ch

Re: customize-face

2005-12-06 Thread martin rudalics
> :notify will now change the text following the State button from "SAVED > and set." to "EDITED, shown value does not take effect until you set or > save it." The first of these strings is 14 characters long, the second > 66. The difference of their length is 52. > > I see. > >

Re: customize-face

2005-12-05 Thread Richard M. Stallman
:notify will now change the text following the State button from "SAVED and set." to "EDITED, shown value does not take effect until you set or save it." The first of these strings is 14 characters long, the second 66. The difference of their length is 52. I see. This edit ought

Re: customize-face

2005-12-05 Thread martin rudalics
> `widget-before-change' may modify text preceding the editable field. As > a consequence FROM and TO values passed to `widget-after-change' get > messed up. > > I don't entirely understand the reasoning. Why can > `widget-before-change' modify that text? Is this solely because of >

Re: customize-face

2005-12-04 Thread Richard M. Stallman
`widget-before-change' may modify text preceding the editable field. As a consequence FROM and TO values passed to `widget-after-change' get messed up. I don't entirely understand the reasoning. Why can `widget-before-change' modify that text? Is this solely because of doing :notify

Re: customize-face

2005-12-01 Thread martin rudalics
The bug seems related to the following change from 1997-06-20: (widget-after-change): Don't apply :notify here. (widget-before-change): New function. Apply :notify here. `widget-before-change' may modify text preceding the editable field. As a consequence FROM and TO values pas

customize-face

2005-11-30 Thread martin rudalics
olor) (min-colors 88) (background light)) (:background "magenta" :foreground "lightskyblue1") and I do M-x customize-face RET isearch RET and try to reinsert "3" after "magenta" I get Debugger entered--Lisp error: (error "Change in

`customize-face' broken

2005-08-14 Thread Joe Corneli
When attempting to customize the face at point (M-x customize-face), I get the error read-face-name: Symbol's function definition is void: complete-in-turn This behavior seems to be stable across buffers, modes, and faces. In GNU Emacs 22.0.50.20 (powerpc-apple-darwin7.9.0, X toolkit,

Re: Inherited face appears as a function in customize-face buffer

2005-04-06 Thread Ralf Angeli
* Ralf Angeli (2005-04-06) writes: > I just compared this functionality in CVS Emacs with Emacs 21. In > Emacs 21 it is easier to select a face because there is this "Select > Face" button which presents you with a minibuffer prompt including > auto-completion of face names. Additionally you can

Re: Inherited face appears as a function in customize-face buffer

2005-04-06 Thread Ralf Angeli
* David PONCE (2005-04-05) writes: >> It looks clean to me. I have never understood widgets very well, >> so I don't know whether it is correct. But if it seems to work >> better than the present code, it must be a step forward. >> >> I wish someone here had enough expertise to be able to >> as

Re: Inherited face appears as a function in customize-face buffer

2005-04-04 Thread David PONCE
Hi, > It looks clean to me. I have never understood widgets very well, > so I don't know whether it is correct. But if it seems to work > better than the present code, it must be a step forward. > > I wish someone here had enough expertise to be able to > assure us it is correct--but I think no

Re: Inherited face appears as a function in customize-face buffer

2005-04-04 Thread Richard Stallman
It looks clean to me. I have never understood widgets very well, so I don't know whether it is correct. But if it seems to work better than the present code, it must be a step forward. I wish someone here had enough expertise to be able to assure us it is correct--but I think nobody does. So wo

Re: Inherited face appears as a function in customize-face buffer

2005-04-04 Thread David PONCE
Hello, > It works well excepted that sometimes, when doing M-TAB completion, I > encounter this bug: > > Debugger entered--Lisp error: (args-out-of-range 1094 1094) > get-char-property(1094 field #) > widget-field-end(...) > widget-field-find(1229) > widget-before-change(1229 1234) > li

Re: Inherited face appears as a function in customize-face buffer

2005-04-01 Thread Richard Stallman
I am not sure it is due to my change nor have any idea on what could cause it. Maybe a guru of the custom/widget internals could help? I hope we have one. I don't know any more about this code than you do; probably less, since I have had more time to forget. The experience of Custom has

Re: Inherited face appears as a function in customize-face buffer

2005-04-01 Thread David PONCE
[CC'd this msg again to the devel ML for help] Hello, > I made the following patch which seems to work better. WDYT? > > You changed the code quite a bit, so I can't quickly see what the > user-level behavior is. Would you please describe what has changed > at that level? I redid the patch

Re: Inherited face appears as a function in customize-face buffer

2005-04-01 Thread David PONCE
Oops! here is the correct change log. Sorry! 2005-04-01 David Ponce <[EMAIL PROTECTED]> * cus-edit.el (face): Derive from symbol widget. Display sample of the current face on the fly. (widget-face-sample-face-get, widget-face-notify): New functions. (widget-face

Re: Inherited face appears as a function in customize-face buffer

2005-03-31 Thread Richard Stallman
I made the following patch which seems to work better. WDYT? You changed the code quite a bit, so I can't quickly see what the user-level behavior is. Would you please describe what has changed at that level? ___ Emacs-pretest-bug mailing list Em

Re: Inherited face appears as a function in customize-face buffer

2005-03-31 Thread David PONCE
Hi, Here is a new simpler patch which works well most of the time. However in some case, when doing M-TAB to complete the face field, I got this error: Debugger entered--Lisp error: (args-out-of-range 1094 1094) get-char-property(1094 field #) widget-field-end(...) widget-field-find(1229)

Re: Inherited face appears as a function in customize-face buffer

2005-03-30 Thread David PONCE
>>In latest CVS Emacs the "Inherit" face attribute appears as a >>"Function" widget in the `customize-face' buffer. >> >>In Emacs 21.3 it appears as expected, that is a "Face" widget allowing >>to customize the inherited face

Re: Inherited face appears as a function in customize-face buffer

2005-03-29 Thread Ralf Angeli
[Limiting list of recipients to emacs-pretest-bugs.] * David Ponce (2005-03-27) writes: > In latest CVS Emacs the "Inherit" face attribute appears as a > "Function" widget in the `customize-face' buffer. > > In Emacs 21.3 it appears as expected, that is a

Inherited face appears as a function in customize-face buffer

2005-03-27 Thread David Ponce
Hi, In latest CVS Emacs the "Inherit" face attribute appears as a "Function" widget in the `customize-face' buffer. In Emacs 21.3 it appears as expected, that is a "Face" widget allowing to customize the inherited face. Also when adding a new inherited face

Re: customize-face RET does not customize all faces

2005-02-19 Thread Richard Stallman
The apropos-* faces are not in the buffer. The default for customize-face is supposed to customize all faces. These are not faces, they are variables whose values are faces. That way of doing things is old and somewhat obsolete. Perhaps we should replace those variables with faces

customize-face RET does not customize all faces

2005-02-18 Thread Drew Adams
1. load-library apropos 2. customize-face RET The apropos-* faces are not in the buffer. The default for customize-face is supposed to customize all faces. However, if you do `customize-apropos aprop', then they are shown in the customize buffer. In GNU Emacs 21.3.50.1 (i386-mingw-nt5.1