unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 620e35f: Add a new function for separator lines
       [not found] ` <20210719134828.303F320D13@vcs0.savannah.gnu.org>
@ 2021-07-19 14:06   ` Stefan Monnier
  2021-07-19 14:17     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2021-07-19 14:06 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

>     Add a new function for separator lines

Any chance this can be extended to the separator line used in
`log-edit-mode`:

    (defvar log-edit-font-lock-keywords
      [...]
         ("^\n"
          (progn (goto-char (match-end 0)) (1+ (match-end 0))) nil
          (0 '(face (:height 0.1 :inverse-video t :extend t)
               display-line-numbers-disable t rear-nonsticky t))))
      [...]

[ and I guess also to the ones used in shortdoc.el?  ]


        Stefan




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

* Re: master 620e35f: Add a new function for separator lines
  2021-07-19 14:06   ` master 620e35f: Add a new function for separator lines Stefan Monnier
@ 2021-07-19 14:17     ` Lars Ingebrigtsen
  2021-07-19 14:27       ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-19 14:17 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>     Add a new function for separator lines
>
> Any chance this can be extended to the separator line used in
> `log-edit-mode`:
>
>     (defvar log-edit-font-lock-keywords
>       [...]
>          ("^\n"
>           (progn (goto-char (match-end 0)) (1+ (match-end 0))) nil
>           (0 '(face (:height 0.1 :inverse-video t :extend t)
>                display-line-numbers-disable t rear-nonsticky t))))
>       [...]

Hm...  well, the separator-line face could be used, but not the actual
function, I think?

> [ and I guess also to the ones used in shortdoc.el?  ]

Now done.  There's basically more than a couple dozen places in Emacs
that could use this, I think -- anything that's inserting a
(make-string ... ?-) is a candidate for using this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



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

* Re: master 620e35f: Add a new function for separator lines
  2021-07-19 14:17     ` Lars Ingebrigtsen
@ 2021-07-19 14:27       ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2021-07-19 14:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

Lars Ingebrigtsen [2021-07-19 16:17:29] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>>     Add a new function for separator lines
>>
>> Any chance this can be extended to the separator line used in
>> `log-edit-mode`:
>>
>>     (defvar log-edit-font-lock-keywords
>>       [...]
>>          ("^\n"
>>           (progn (goto-char (match-end 0)) (1+ (match-end 0))) nil
>>           (0 '(face (:height 0.1 :inverse-video t :extend t)
>>                display-line-numbers-disable t rear-nonsticky t))))
>>       [...]
> Hm...  well, the separator-line face could be used, but not the actual
> function, I think?

Good question, that's why I sent a mail instead of writing a patch.


        Stefan




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

end of thread, other threads:[~2021-07-19 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20210719134826.19233.95476@vcs0.savannah.gnu.org>
     [not found] ` <20210719134828.303F320D13@vcs0.savannah.gnu.org>
2021-07-19 14:06   ` master 620e35f: Add a new function for separator lines Stefan Monnier
2021-07-19 14:17     ` Lars Ingebrigtsen
2021-07-19 14:27       ` Stefan Monnier

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).