all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: validation of widgets doesn't work correct when Set is pressed with mouse (emacs 21.1)
       [not found] <NCBBJHFOGKDEPAFFGICBIEFIFIAA.geert.ribbers@realworld.nl>
@ 2002-02-25  9:07 ` Per Abrahamsen
  0 siblings, 0 replies; only message in thread
From: Per Abrahamsen @ 2002-02-25  9:07 UTC (permalink / raw)
  Cc: emacs-devel

[ CC: to the emacs develoer list ]

"Geert Ribbers" <geert.ribbers@realworld.nl> writes:

> Sorry, I forgot to mention my platform indeed:
> It's W2k.
> Started with: %COMSPEC% /E:12288 /C
> runemacs.exe --no-init-file --no-site-file
> And %COMSPEC%  is: C:\WINNT\system32\cmd.exe
>
> 1. The cursor *should* move to the field in error, as it does when pressing
> <return> instead of mouse-click.

I agree.  

I think the basic problem is the function widget-button-click in
wid-edit.el tries to handle far too many cases, so fixing one will
most likely break another.

A lot of the complexity may even be irrelevant with the way Emacs 21
implements buttons.

We should really scrap it, and reimplement two or more much simpler
versions that uses the local-map (or was it keymap) text property.  We
need two for handling both normal buttons and pop-up menus, the
current tries to handle both.

I cannot commit time to do that now, unfortunately, and I don't dare
attempt to fix widget-button-click.

> 2. In my case the error-message must have been shown so short that I fail to
> see it, overwritten as it is by the button-message
> It has been shown since I find it in the *messages* buffer.
> So this second point could be a problem for emacs on windows then, maybe?

I suspect this is MS Windows specific.

Will anyone with the MS Windows version try to look at it?

> Regards, Geert Ribbers
>
> -----Original Message-----
> From: Per Abrahamsen [mailto:abraham@dina.kvl.dk]
> Sent: Sunday, February 24, 2002 6:58 PM
> To: Geert Ribbers
> Cc: gnu-emacs-bug@moderators.isc.org
> Subject: Re: validation of widgets doesn't work correct when Set is pressed
> with mouse (emacs 21.1)
>
> "Geert Ribbers" <geert.ribbers@realworld.nl> writes:
>
>> When on a customization screen "Set for current session" is pressed with a
>> mouse and there is an error in the variable to set then the cursor doesn't
>> jump to the field in error and the error-message can not be read in the
>> minibuffer because the "button-message" is displayed there (you can find
> the
>> message in the *messages* buffer).
>> The only thing you notice is that the button "doesn't seem to work".
>> When the button is pressed with Enter then it works alright: cursor at the
>> field in error, error-message in mini-buffer.
>> In 2071 this was working correctly still!
>>
>> Example: ps-paper-type, try to set a type that doesn't exist
>
> I cannot reproduce this with
>
>         Emacs 21.1, X11, GNU/Linux
>         emacs -q -no-site-file
>         M-x load-file <ret> ps-print <ret>
>         M-x customize-option <ret> ps-paper-size <ret>
>         Change "letter" to "kurt"
>         Push mouse-2 on [Set for Current Session]
>
> I get a nice error message "Unknown paper size".
>
> It is true that the cursor doesn't move, though.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-25  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <NCBBJHFOGKDEPAFFGICBIEFIFIAA.geert.ribbers@realworld.nl>
2002-02-25  9:07 ` validation of widgets doesn't work correct when Set is pressed with mouse (emacs 21.1) Per Abrahamsen

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.