unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make the button face inherit from link
@ 2009-06-23  4:33 Dan Nicolaescu
  2009-06-23  6:28 ` Eli Zaretskii
  2009-06-23 22:27 ` Juri Linkov
  0 siblings, 2 replies; 8+ messages in thread
From: Dan Nicolaescu @ 2009-06-23  4:33 UTC (permalink / raw)
  To: emacs-devel


Last time this was discussed was during the feature freeze.
Any objection to making this change now?


--- lisp/button.el  5 Jan 2009 03:18:46 -0000   1.38
+++ lisp/button.el  21 Jun 2009 00:59:59 -0000
@@ -49,13 +49,7 @@
 
 ;; Globals
 
-;; Use color for the MS-DOS port because it doesn't support underline.
-;; FIXME if MS-DOS correctly answers the (supports) question, it need
-;; no longer be a special case.
-(defface button '((((type pc) (class color))
-                   (:foreground "lightblue"))
-                                  (((supports :underline t)) :underline t)
-                                                (t (:foreground "lightblue")))
+(defface button '((t (:inherit link)))
   "Default face used for buttons."
   :group 'basic-faces)
 




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-23  4:33 make the button face inherit from link Dan Nicolaescu
@ 2009-06-23  6:28 ` Eli Zaretskii
  2009-06-23 22:27 ` Juri Linkov
  1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2009-06-23  6:28 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

> Date: Mon, 22 Jun 2009 21:33:13 -0700 (PDT)
> From: Dan Nicolaescu <dann@ics.uci.edu>
> 
> 
> Last time this was discussed was during the feature freeze.
> Any objection to making this change now?

Please wait a few days until I will be able to verify that the patch
actually works in the MS-DOS port.  I'm traveling with no access to
the platform where I have the DOS development environment.  I will be
home in a day or two and will check then.

Thanks.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-23  4:33 make the button face inherit from link Dan Nicolaescu
  2009-06-23  6:28 ` Eli Zaretskii
@ 2009-06-23 22:27 ` Juri Linkov
  2009-06-23 22:49   ` Dan Nicolaescu
  1 sibling, 1 reply; 8+ messages in thread
From: Juri Linkov @ 2009-06-23 22:27 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

> Last time this was discussed was during the feature freeze.
> Any objection to making this change now?

But the etc/TODO file has a different task added during the feature freeze:

** Add "link" button class
   Add a standard button-class named "link", and make all other link-like
   button classes inherit from it.  Set the default face of the "link" button
   class to the standard "link" face.

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-23 22:27 ` Juri Linkov
@ 2009-06-23 22:49   ` Dan Nicolaescu
  2009-06-24 22:11     ` Juri Linkov
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Nicolaescu @ 2009-06-23 22:49 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Miles Bader, emacs-devel

Juri Linkov <juri@jurta.org> writes:

  > > Last time this was discussed was during the feature freeze.
  > > Any objection to making this change now?
  > 
  > But the etc/TODO file has a different task added during the feature freeze:
  > 
  > ** Add "link" button class
  >    Add a standard button-class named "link", and make all other link-like
  >    button classes inherit from it.  Set the default face of the "link" button
  >    class to the standard "link" face.

Even better, but it's hard to be sure what the exact meaning is...
What is a button-class?
What are all the link-like button classes?

Miles?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-23 22:49   ` Dan Nicolaescu
@ 2009-06-24 22:11     ` Juri Linkov
  2009-06-24 23:08       ` Dan Nicolaescu
  0 siblings, 1 reply; 8+ messages in thread
From: Juri Linkov @ 2009-06-24 22:11 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: Miles Bader, emacs-devel

>   > ** Add "link" button class
>   >    Add a standard button-class named "link", and make all other link-like
>   >    button classes inherit from it.  Set the default face of the "link" button
>   >    class to the standard "link" face.
>
> Even better, but it's hard to be sure what the exact meaning is...
> What is a button-class?
> What are all the link-like button classes?

This is explained in http://thread.gmane.org/gmane.emacs.devel/56168/focus=56240

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-24 22:11     ` Juri Linkov
@ 2009-06-24 23:08       ` Dan Nicolaescu
  2009-06-24 23:28         ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Nicolaescu @ 2009-06-24 23:08 UTC (permalink / raw)
  To: Juri Linkov; +Cc: emacs-devel, Miles Bader

Juri Linkov <juri@jurta.org> writes:

  > >   > ** Add "link" button class
  > >   >    Add a standard button-class named "link", and make all other link-like
  > >   >    button classes inherit from it.  Set the default face of the "link" button
  > >   >    class to the standard "link" face.
  > >
  > > Even better, but it's hard to be sure what the exact meaning is...
  > > What is a button-class?
  > > What are all the link-like button classes?
  > 
  > This is explained in http://thread.gmane.org/gmane.emacs.devel/56168/focus=56240

Unfortunately that doesn't make it any more clear to me.
So I'll just give up on this one, hopefully someone else will figure it
out and DTRT.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-24 23:08       ` Dan Nicolaescu
@ 2009-06-24 23:28         ` Lennart Borgman
  2009-06-25 20:54           ` Juri Linkov
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2009-06-24 23:28 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: Juri Linkov, Miles Bader, emacs-devel

On Thu, Jun 25, 2009 at 1:08 AM, Dan Nicolaescu<dann@ics.uci.edu> wrote:
> Juri Linkov <juri@jurta.org> writes:
>
>  > >   > ** Add "link" button class
>  > >   >    Add a standard button-class named "link", and make all other link-like
>  > >   >    button classes inherit from it.  Set the default face of the "link" button
>  > >   >    class to the standard "link" face.
>  > >
>  > > Even better, but it's hard to be sure what the exact meaning is...
>  > > What is a button-class?
>  > > What are all the link-like button classes?
>  >
>  > This is explained in http://thread.gmane.org/gmane.emacs.devel/56168/focus=56240
>
> Unfortunately that doesn't make it any more clear to me.
> So I'll just give up on this one, hopefully someone else will figure it
> out and DTRT.

Miles wrote "Probably the _majority_ of buttons used in the Emacs distrution act
basically like links". I agree to that.

However Miles made a suggestion to create a standard button-class
named link. I don't agree to that, or I at least doubt it is the best
solution. It seems less work to me to take care of the deviations when
the buttons should not look like links.

Also, please do not forget the widgets that acts like links. These
should IMO also use the standard "link" face.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: make the button face inherit from link
  2009-06-24 23:28         ` Lennart Borgman
@ 2009-06-25 20:54           ` Juri Linkov
  0 siblings, 0 replies; 8+ messages in thread
From: Juri Linkov @ 2009-06-25 20:54 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Miles Bader, Dan Nicolaescu, emacs-devel

> Miles wrote "Probably the _majority_ of buttons used in the Emacs
> distrution act basically like links". I agree to that.
>
> However Miles made a suggestion to create a standard button-class
> named link. I don't agree to that, or I at least doubt it is the best
> solution. It seems less work to me to take care of the deviations when
> the buttons should not look like links.

I guess our task is to find all such deviations, isn't it?  I think
one of them is the output of `list-faces-display' where too much blue
color will clutter the buffer.  Could you find more deviations?

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-25 20:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-23  4:33 make the button face inherit from link Dan Nicolaescu
2009-06-23  6:28 ` Eli Zaretskii
2009-06-23 22:27 ` Juri Linkov
2009-06-23 22:49   ` Dan Nicolaescu
2009-06-24 22:11     ` Juri Linkov
2009-06-24 23:08       ` Dan Nicolaescu
2009-06-24 23:28         ` Lennart Borgman
2009-06-25 20:54           ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).