* Mostly curtail font-lock-mode @ 2021-02-25 14:50 Vasilii Kolobkov 2021-02-25 16:03 ` Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 1 reply; 14+ messages in thread From: Vasilii Kolobkov @ 2021-02-25 14:50 UTC (permalink / raw) To: help-gnu-emacs I had font-lock-mode disabled for most of the major modes (sans whitelist in font-lock-global-modes), but ran into a problem. rcirc-track-minor-mode highlights some notification in its mode line display by setting a `font-lock-face' text property. And it seem to have no effect if the font-lock mode is disabled. Now i wonder what would be the most effective way to disable most of the work font-lock would do (e.g. figuring out the syntax structures), but still have it nominally enabled so that i could make use of it in the mode line? Any hints on general direction to do it would be very much appreciated! ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Mostly curtail font-lock-mode 2021-02-25 14:50 Mostly curtail font-lock-mode Vasilii Kolobkov @ 2021-02-25 16:03 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-02-25 20:07 ` Vasilii Kolobkov 0 siblings, 1 reply; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-02-25 16:03 UTC (permalink / raw) To: help-gnu-emacs Vasilii Kolobkov wrote: > rcirc-track-minor-mode What do you know (not much), never heard of an Emacs IRC user that didn't do ERC... > Now i wonder what would be the most effective way to disable > most of the work font-lock would do (e.g. figuring out the > syntax structures), but still have it nominally enabled so > that i could make use of it in the mode line? Any hints on > general direction to do it would be very much appreciated! I don't know, does it come with its own faces? You can disable them one by one but if it doesn't - implement faces that inherit? Much work for little gain, perhaps? But OTOH what is a mode without faces? On the third hand if this is a minor mode then perhaps it shouldn't. Is there a policy what should have its own faces and not? -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Mostly curtail font-lock-mode 2021-02-25 16:03 ` Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-02-25 20:07 ` Vasilii Kolobkov 2021-02-25 20:35 ` rcirc vs ERC (was: Mostly curtail font-lock-mode) Tassilo Horn 2021-02-25 22:24 ` Mostly curtail font-lock-mode Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 2 replies; 14+ messages in thread From: Vasilii Kolobkov @ 2021-02-25 20:07 UTC (permalink / raw) To: Emanuel Berg, help-gnu-emacs Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes: > What do you know (not much), never heard of an Emacs IRC user > that didn't do ERC... It's a nice small piece of software! >> Now i wonder what would be the most effective way to disable >> most of the work font-lock would do (e.g. figuring out the >> syntax structures), but still have it nominally enabled so >> that i could make use of it in the mode line? Any hints on >> general direction to do it would be very much appreciated! > > I don't know, does it come with its own faces? You can disable > them one by one but if it doesn't - implement faces > that inherit? Much work for little gain, perhaps? I might've expressed myself a bit clumsy - my intent is to keep font-lock working for the sake of mode line formatting and not the buffer content. E.g. i might customize all the faces used in modes i don't want fontified to be same as `default' and thus have the desired visual effect, but then there would still be a lot of work wasted by fontifying everything with the same face. ^ permalink raw reply [flat|nested] 14+ messages in thread
* rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-02-25 20:07 ` Vasilii Kolobkov @ 2021-02-25 20:35 ` Tassilo Horn 2021-02-25 22:36 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-02-25 22:24 ` Mostly curtail font-lock-mode Emanuel Berg via Users list for the GNU Emacs text editor 1 sibling, 1 reply; 14+ messages in thread From: Tassilo Horn @ 2021-02-25 20:35 UTC (permalink / raw) To: help-gnu-emacs Vasilii Kolobkov <vasilii@orangeshoelaces.net> writes: >> What do you know (not much), never heard of an Emacs IRC user that >> didn't do ERC... > > It's a nice small piece of software! I wholeheartedly agree! Bye, Tassilo ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-02-25 20:35 ` rcirc vs ERC (was: Mostly curtail font-lock-mode) Tassilo Horn @ 2021-02-25 22:36 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-02-26 22:44 ` Tassilo Horn 0 siblings, 1 reply; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-02-25 22:36 UTC (permalink / raw) To: help-gnu-emacs Tassilo Horn wrote: >>> What do you know (not much), never heard of an Emacs IRC >>> user that didn't do ERC... >> >> It's a nice small piece of software! > > I wholeheartedly agree! OK? Do tell (more) or you just gonna blow your own ... horn? -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-02-25 22:36 ` Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-02-26 22:44 ` Tassilo Horn 2021-02-27 3:36 ` Eduardo Ochs ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: Tassilo Horn @ 2021-02-26 22:44 UTC (permalink / raw) To: help-gnu-emacs Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes: >>>> What do you know (not much), never heard of an Emacs IRC >>>> user that didn't do ERC... >>> >>> It's a nice small piece of software! >> >> I wholeheartedly agree! > > OK? Do tell (more) or you just gonna blow your own ... horn? I can't quite parse that sentence but I like rcirc because it has all IRC features I need (multiple servers, auto-join, nickserv support, activity tracking), looks nice (especially with rcirc-color from ELPA), and is easy to set-up. Bye, Tassilo ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-02-26 22:44 ` Tassilo Horn @ 2021-02-27 3:36 ` Eduardo Ochs 2021-03-02 3:28 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-03-02 3:33 ` Emanuel Berg via Users list for the GNU Emacs text editor 2 siblings, 0 replies; 14+ messages in thread From: Eduardo Ochs @ 2021-02-27 3:36 UTC (permalink / raw) To: Tassilo Horn; +Cc: help-gnu-emacs On Fri, 26 Feb 2021 at 19:50, Tassilo Horn <tsdh@gnu.org> wrote: > > Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes: > > > OK? Do tell (more) or you just gonna blow your own ... horn? > > I can't quite parse that sentence but I like rcirc because it has all > IRC features I need (multiple servers, auto-join, nickserv support, > activity tracking), looks nice (especially with rcirc-color from ELPA), > and is easy to set-up. > > Bye, > Tassilo Same here, but rcirc doesn't have support for SASL and sometimes I wish it had... =| Eduardo Ochs http://angg.twu.net/#eev http://angg.twu.net/eev-intros/find-rcirc-intro.html ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-02-26 22:44 ` Tassilo Horn 2021-02-27 3:36 ` Eduardo Ochs @ 2021-03-02 3:28 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-03-02 10:22 ` Tassilo Horn 2021-03-02 3:33 ` Emanuel Berg via Users list for the GNU Emacs text editor 2 siblings, 1 reply; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 3:28 UTC (permalink / raw) To: help-gnu-emacs Tassilo Horn wrote: > activity tracking What's that? We have that on ERC? -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-03-02 3:28 ` Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 10:22 ` Tassilo Horn 2021-03-02 12:15 ` Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 1 reply; 14+ messages in thread From: Tassilo Horn @ 2021-03-02 10:22 UTC (permalink / raw) To: help-gnu-emacs Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes: >> activity tracking > > What's that? A mode-line indicator showing the channels with activity since last time you visited the buffer (and different faces depending on kind of activity, i.e., big fat face when you've been mentioned) paired with keybindings to switch to irc buffers with activity. > We have that on ERC? I think so. Bye, Tassilo ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-03-02 10:22 ` Tassilo Horn @ 2021-03-02 12:15 ` Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 0 replies; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 12:15 UTC (permalink / raw) To: help-gnu-emacs Tassilo Horn wrote: >>> activity tracking >> >> What's that? > > A mode-line indicator showing the channels with activity > since last time you visited the buffer (and different faces > depending on kind of activity, i.e., big fat face when > you've been mentioned) paired with keybindings to switch to > irc buffers with activity. Right, nah, disruptive, but useful for big channels perhaps, like #emacs on freenode and such. -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-02-26 22:44 ` Tassilo Horn 2021-02-27 3:36 ` Eduardo Ochs 2021-03-02 3:28 ` Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 3:33 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-03-02 10:26 ` Tassilo Horn 2 siblings, 1 reply; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 3:33 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 151 bytes --] Tassilo Horn wrote: > looks nice We have that on ERC? https://dataswamp.org/~incal/figures/emacs/erc-gnus.png damn, site down. Does this work? [-- Attachment #2: erc-gnus.png --] [-- Type: image/png, Size: 6228 bytes --] [-- Attachment #3: Type: text/plain, Size: 92 bytes --] -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-03-02 3:33 ` Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 10:26 ` Tassilo Horn 2021-03-02 12:14 ` Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 1 reply; 14+ messages in thread From: Tassilo Horn @ 2021-03-02 10:26 UTC (permalink / raw) To: help-gnu-emacs Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes: >> looks nice > > We have that on ERC? > > https://dataswamp.org/~incal/figures/emacs/erc-gnus.png > > Does this work? What? A fontified banner? I don't know and I don't care. A thing where I like rcirc better is how messages are indented. I think in ERC it looks like --8<---------------cut here---------------start------------->8--- user: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor dignissim convallis aenean et tortor at risus viverra. Convallis posuere morbi leo urna. longuser: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor dignissim convallis aenean et tortor at risus viverra. Convallis posuere morbi leo urna. --8<---------------cut here---------------end--------------->8--- whereas it looks like this in rcirc: --8<---------------cut here---------------start------------->8--- user: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor dignissim convallis aenean et tortor at risus viverra. Convallis posuere morbi leo urna. longuser: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor dignissim convallis aenean et tortor at risus viverra. Convallis posuere morbi leo urna. --8<---------------cut here---------------end--------------->8--- Of course, that's just a personal preference, and probably you can configure that behavior in ERC anyhow. Bye, Tassilo ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: rcirc vs ERC (was: Mostly curtail font-lock-mode) 2021-03-02 10:26 ` Tassilo Horn @ 2021-03-02 12:14 ` Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 0 replies; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-03-02 12:14 UTC (permalink / raw) To: help-gnu-emacs Tassilo Horn wrote: >>> looks nice >> >> We have that on ERC? >> >> https://dataswamp.org/~incal/figures/emacs/erc-gnus.png >> >> Does this work? > > What? A fontified banner? I don't know and I don't care. Ha, no, I meant the URL. I couldn't get there but it seemed you got it. But you mention a fair point. Your client is possibly under-featured with respect to fortified banners not the least... > indented. I think in ERC it looks like > > user: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed > do eiusmod tempor incididunt ut labore et dolore magna > aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor > dignissim convallis aenean et tortor at risus > viverra. Convallis posuere morbi leo urna. > longuser: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed > do eiusmod tempor incididunt ut labore et dolore magna > aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor > dignissim convallis aenean et tortor at risus > viverra. Convallis posuere morbi leo urna. That's erc-fill-static in erc-fill-function. But "Original value was actually ‘erc-fill-variable’" > whereas it looks like this in rcirc: > > user: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. Nullam > vehicula ipsum a arcu cursus. Ac tortor dignissim convallis aenean > et tortor at risus viverra. Convallis posuere morbi leo urna. > longuser: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed > do eiusmod tempor incididunt ut labore et dolore magna > aliqua. Nullam vehicula ipsum a arcu cursus. Ac tortor > dignissim convallis aenean et tortor at risus > viverra. Convallis posuere morbi leo urna. > > Of course, that's just a personal preference, and probably > you can configure that behavior in ERC anyhow. Hm, interesting, I also think that is better! Can you find it here? erc-fill-function is a variable defined in ‘erc-fill.el’. Its value is ‘erc-fill-static’ Original value was ‘erc-fill-variable’ This variable may be risky if used as a file-local variable. You can customize this variable. Documentation: Function to use for filling messages. Variable Filling with an ‘erc-fill-prefix’ of nil: <shortnick> this is a very very very long message with no meaning at all Variable Filling with an ‘erc-fill-prefix’ of four spaces: <shortnick> this is a very very very long message with no meaning at all Static Filling with ‘erc-fill-static-center’ of 27: <shortnick> foo bar baz <a-very-long-nick> foo bar baz quuuuux <shortnick> this is a very very very long message with no meaning at all These two styles are implemented using ‘erc-fill-variable’ and ‘erc-fill-static’. You can, of course, define your own filling function. Narrowing to the region in question is in effect while your function is called. -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Mostly curtail font-lock-mode 2021-02-25 20:07 ` Vasilii Kolobkov 2021-02-25 20:35 ` rcirc vs ERC (was: Mostly curtail font-lock-mode) Tassilo Horn @ 2021-02-25 22:24 ` Emanuel Berg via Users list for the GNU Emacs text editor 1 sibling, 0 replies; 14+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-02-25 22:24 UTC (permalink / raw) To: help-gnu-emacs Vasilii Kolobkov wrote: > E.g. i might customize all the faces used in modes i don't > want fontified to be same as `default' and thus have the > desired visual effect, but then there would still be a lot > of work wasted by fontifying everything with the same face. Okaay... if that's how it works, then yes. Maybe. What do you use to set the faces? But on the whole, I think the three way split decision is either you want all of it - do nothing, or you want some of it - configure it, or you don't want it - disable. You can configure the mode line to act upon that mode, tho, like this [last]. A lot of work I suspect and unexpected work and even inelegant code (worst) for this minimal gain if even that - so this Elisp is for display purposes ONLY - https://dataswamp.org/~incal/emacs-init/mode-line.el -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2021-03-02 12:15 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-02-25 14:50 Mostly curtail font-lock-mode Vasilii Kolobkov 2021-02-25 16:03 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-02-25 20:07 ` Vasilii Kolobkov 2021-02-25 20:35 ` rcirc vs ERC (was: Mostly curtail font-lock-mode) Tassilo Horn 2021-02-25 22:36 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-02-26 22:44 ` Tassilo Horn 2021-02-27 3:36 ` Eduardo Ochs 2021-03-02 3:28 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-03-02 10:22 ` Tassilo Horn 2021-03-02 12:15 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-03-02 3:33 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-03-02 10:26 ` Tassilo Horn 2021-03-02 12:14 ` Emanuel Berg via Users list for the GNU Emacs text editor 2021-02-25 22:24 ` Mostly curtail font-lock-mode Emanuel Berg via Users list for the GNU Emacs text editor
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.