unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27252: clicking the word Compiling in the mode line
@ 2017-06-05 12:52 積丹尼 Dan Jacobson
  2019-07-21 18:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-06-05 12:52 UTC (permalink / raw)
  To: 27252

When some other window is compiling, clicking "Compiling" seen in the
mode line should take us to that window.





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

* bug#27252: clicking the word Compiling in the mode line
  2017-06-05 12:52 bug#27252: clicking the word Compiling in the mode line 積丹尼 Dan Jacobson
@ 2019-07-21 18:15 ` Lars Ingebrigtsen
  2019-07-21 19:55   ` Basil L. Contovounesios
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-21 18:15 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 27252

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> When some other window is compiling, clicking "Compiling" seen in the
> mode line should take us to that window.

That sounds useful.

Hm.  Unfortunately, compile.el (ab)uses the minor-mode-alist for this
stuff, so we only get the minor mode menu up instead of being able to
put actions on these elements?

(or (assq 'compilation-in-progress minor-mode-alist)
    (setq minor-mode-alist (cons '(compilation-in-progress " Compiling")
				 minor-mode-alist)))

I'm not sure what the right way to fix this would be...  perhaps stop
pretending it's a minor mode?  But where would be put the lighter then?

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





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

* bug#27252: clicking the word Compiling in the mode line
  2019-07-21 18:15 ` Lars Ingebrigtsen
@ 2019-07-21 19:55   ` Basil L. Contovounesios
  2019-07-22 12:26     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Basil L. Contovounesios @ 2019-07-21 19:55 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 積丹尼 Dan Jacobson, 27252

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
>
>> When some other window is compiling, clicking "Compiling" seen in the
>> mode line should take us to that window.
>
> That sounds useful.
>
> Hm.  Unfortunately, compile.el (ab)uses the minor-mode-alist for this
> stuff, so we only get the minor mode menu up instead of being able to
> put actions on these elements?
>
> (or (assq 'compilation-in-progress minor-mode-alist)
>     (setq minor-mode-alist (cons '(compilation-in-progress " Compiling")
> 				 minor-mode-alist)))
>
> I'm not sure what the right way to fix this would be...  perhaps stop
> pretending it's a minor mode?  But where would be put the lighter then?

Would mode-line-process work?

-- 
Basil





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

* bug#27252: clicking the word Compiling in the mode line
  2019-07-21 19:55   ` Basil L. Contovounesios
@ 2019-07-22 12:26     ` Lars Ingebrigtsen
  2019-07-23 17:51       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-22 12:26 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 積丹尼 Dan Jacobson, 27252

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

>> I'm not sure what the right way to fix this would be...  perhaps stop
>> pretending it's a minor mode?  But where would be put the lighter then?
>
> Would mode-line-process work?

That's a buffer-local variable, and the "Compiling" is shown in all mode
lines, so that wouldn't work, I think?

Perhaps `global-mode-string' is a good place to put this?

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





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

* bug#27252: clicking the word Compiling in the mode line
  2019-07-22 12:26     ` Lars Ingebrigtsen
@ 2019-07-23 17:51       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-23 17:51 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 27252, 積丹尼 Dan Jacobson

Lars Ingebrigtsen <larsi@gnus.org> writes:

> "Basil L. Contovounesios" <contovob@tcd.ie> writes:
>
>>> I'm not sure what the right way to fix this would be...  perhaps stop
>>> pretending it's a minor mode?  But where would be put the lighter then?
>>
>> Would mode-line-process work?
>
> That's a buffer-local variable, and the "Compiling" is shown in all mode
> lines, so that wouldn't work, I think?
>
> Perhaps `global-mode-string' is a good place to put this?

I put it in mode-line-modes, because that's what erc-track did.

And I made it "[Compiling] ", because that's also what erc-track does,
but feel free to bikeshed the look of the ... lighter.

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





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

end of thread, other threads:[~2019-07-23 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05 12:52 bug#27252: clicking the word Compiling in the mode line 積丹尼 Dan Jacobson
2019-07-21 18:15 ` Lars Ingebrigtsen
2019-07-21 19:55   ` Basil L. Contovounesios
2019-07-22 12:26     ` Lars Ingebrigtsen
2019-07-23 17:51       ` Lars Ingebrigtsen

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