all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
Cc: jostein@kjonigsen.net, emacs-devel@gnu.org
Subject: Re: Regarding adding additional default font-lock faces
Date: Thu, 02 Aug 2018 07:53:05 -0400	[thread overview]
Message-ID: <jwvy3dphtvg.fsf-monnier+Inbox@gnu.org> (raw)
In-Reply-To: <1533193402.1422491.1460826912.040BAF55@webmail.messagingengine.com> ("Jostein Kjønigsen"'s message of "Thu, 02 Aug 2018 09:03:22 +0200")

> Which is fine. But can't we have a defface for this whose default
> value is nil?
> That way major-modes have one standard variable to use, and users have
> one standard variable to customize.  I think that's a whole lot easier
> for everyone.
> Not to mention this puts the user in control of their own experience,
> like Emacs should.

Of course.

I think the current design is strongly influenced by efficiency
considerations rather than by someone deciding that those constructs
shouldn't have their specific highlighting.

>>> * attributes/annotations for functions, classes,
>> I don't know what this refers to.  Which languages have those?
> To be clear I meant annotations/attributes *applied to* function-
> parameters, not function parameters itself.
> In C# it can look like this:
>
>>     [DataContract]
>>     public class QueryInfo
>>     {
>>         [DataMember(Order = 0)]
>>         public int ContactId { get; set; }
>>
>>         [DataMember(Order = 1)]
>>         public int PersonId { get; set; }
>>
>>         [DataMember(Order = 2)]
>>         public int ProjectId { get; set; }
>>
>>         [DataMember(Order = 3)]
>>         public int SaleId { get; set; }
>>     }

Ah, right, thanks.  I never use languages where this is used, but now
that I see it, I do remember having heard of it.


        Stefan



  reply	other threads:[~2018-08-02 11:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-01 19:24 Regarding adding additional default font-lock faces Jostein Kjønigsen
2018-08-01 21:53 ` Stefan Monnier
2018-08-02  7:03   ` Jostein Kjønigsen
2018-08-02 11:53     ` Stefan Monnier [this message]
2018-08-03  7:46       ` Nathan Moreau
2018-08-09 11:04       ` Jostein Kjønigsen
2018-08-09 13:57         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy3dphtvg.fsf-monnier+Inbox@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jostein@kjonigsen.net \
    --cc=jostein@secure.kjonigsen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.