bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51041: [External] : Re: bug#51041: 28.0.60; toggle-truncate-lines sh


From: Tyler Grinn
Subject: bug#51041: [External] : Re: bug#51041: 28.0.60; toggle-truncate-lines should not print message
Date: Thu, 07 Oct 2021 08:41:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

>> >> What is the use-case for calling it from Lisp?
>> >
>> > What is the use case for hard-coding behavior
>> > based on called-interactively?
>> 
>> Does that not work?  If it doesn't, please explain the use-case.
>
> Stefan - it's draining to discuss this way.
>
> You're free to close the bug as not-a-bug or
> whatever.  The bug report asks _how to invoke
> the command from Lisp_ without printing a msg.
> You're free to tell the OP to just not do that.
>
> (Oh, BTW: `toggle-truncate-lines' does more
> than change the variable value and print a msg,
> in particular when turning off truncation.)

Yeah, I would like some direction on this.

My understanding is that if some functionality or minor mode provides a
function to toggle it, it is a best practice to use that function rather
than re-implement it, such that if the behavior of the toggle function
changes my code doesn't have to change.

-- 

Best,

Tyler





reply via email to

[Prev in Thread] Current Thread [Next in Thread]