all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#64769: Docstrings made to print specfied lines in colour
@ 2023-07-21 13:37 uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-21 14:28 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-07-21 13:37 UTC (permalink / raw)
  To: 64769


It would be an improvement if docstrings can be made to print specfied lines
in colour.  Currently everything is one colour, except executable commands that
are not expected to have whitespaces.





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

* bug#64769: Docstrings made to print specfied lines in colour
  2023-07-21 13:37 bug#64769: Docstrings made to print specfied lines in colour uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-07-21 14:28 ` Eli Zaretskii
  2023-07-21 15:26   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2023-07-21 14:28 UTC (permalink / raw)
  To: uzibalqa; +Cc: 64769

> Date: Fri, 21 Jul 2023 13:37:02 +0000
> From:  uzibalqa via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 
> It would be an improvement if docstrings can be made to print specfied lines
> in colour.  Currently everything is one colour, except executable commands that
> are not expected to have whitespaces.

*Help* buffers do have faces, and you can customize them to use
non-default colors.

Beyond that, it is not clear what behavior you are asking for.  How
will the "specified lines" be specified, and by whom?

Doc strings are general Emacs feature, so if it's desirable to have
specific parts of them highlighted in certain ways, the first question
to ask is which parts will those be, and how will they be identified?





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

* bug#64769: Docstrings made to print specfied lines in colour
  2023-07-21 14:28 ` Eli Zaretskii
@ 2023-07-21 15:26   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 3+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-07-21 15:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 64769


------- Original Message -------
On Saturday, July 22nd, 2023 at 2:28 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Fri, 21 Jul 2023 13:37:02 +0000
> > From: uzibalqa via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org
> > 
> > It would be an improvement if docstrings can be made to print specfied lines
> > in colour. Currently everything is one colour, except executable commands that
> > are not expected to have whitespaces.
> 
> 
> Help buffers do have faces, and you can customize them to use
> non-default colors.
> 
> Beyond that, it is not clear what behavior you are asking for. How
> will the "specified lines" be specified, and by whom?
> 
> Doc strings are general Emacs feature, so if it's desirable to have
> specific parts of them highlighted in certain ways, the first question
> to ask is which parts will those be, and how will they be identified?

Quite Right.  How to identify them is the hard part.  A sensible way is
to have specific variables or functions that instruct how doc strings get
colored (rather than having coloured instructions embedded in the docstring
itself).  How to specify the colouring instructions is the essential part
for how to customise the appearance and behavior of doc strings in Emacs. 

Whilst I generally criticise implementation of features, it is evident that
other people would have much clever schemes of how things are actually done.
Although I give the impression that I know better, I hardly ever discuss on
how an actual implementation should be done in Emacs. 

A basic start on this would be to provide a list on which lines (or patterns)
in the docstring need to be coloured differently.  One needs to see how others
could approach it with benefits and difficulties pointed out.

 






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

end of thread, other threads:[~2023-07-21 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 13:37 bug#64769: Docstrings made to print specfied lines in colour uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-21 14:28 ` Eli Zaretskii
2023-07-21 15:26   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors

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.