unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Sharman <rsharman@pobox.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Richard Stallman <rms@gnu.org>,
	Richard, Juanma Barranquero <lekktu@gmail.com>,
	Emacs Devel <emacs-devel@gnu.org>,
	martin rudalics <rudalics@gmx.at>, Sharman <rsharman@pobox.com>
Subject: Re: patch to hilight-chg not in emacs 22.1
Date: Tue, 18 Mar 2008 22:43:53 -0400	[thread overview]
Message-ID: <1DEEFF6E-3F47-47FE-82AC-AFFA68D3F7FF@pobox.com> (raw)
In-Reply-To: <jwvlk4grn6d.fsf-monnier+emacs@gnu.org>

On 18-Mar-08, at 12:51 PM, Stefan Monnier wrote:

>>>> So,  I have simplified the change to hilit-chg.el and have  
>>>> removed the
>>>> part
>>>> that required the change to easy-mmode.  (I think what I was   
>>>> previously
>>>> doing was overkill anyway.)
>>>
>>> Thank you, this looks good.  I'd only advise you to rename
>>> highlight-changes-toggle-visibility to highlight-changes-visible- 
>>> mode
>>> and define it (yet again) with define-minor-mode.
>
>> So, if I understand it,  you are suggesting having two minor modes:
>> highlight-changes-mode and highlight-changes-visible-mode?  Isn't   
>> that
>> going to be a bit confusing??
>
>> If highlight-changes-mode were on then the meaning of the new mode is
>> straight forward,  but if it were off should it just toggle the  
>> flag  and
>> otherwise have no effect?  So it affects highlight changes mode   
>> either
>> immediately if that mode is on otherwise the next time it is   
>> turned on?
>> I can try and it see what it's like.
>
> In what way are those problems different if the command is named
> "highlight-changes-toggle-visibility" and implemented without
> define-minor-mode?

Yes,  I agree it's the same thing in code.  But I still think that  
people will find it confusing.
Originally, the highlight-change-mode function had the ability to  
also set active and passive states (when enabling the mode) and RMS  
thought it would be more consistent to have the function purely  
toggle the mode on or off.    My reaction to having two related modes  
was that it would be confusing but I'm not really averse to it.

Richard





  reply	other threads:[~2008-03-19  2:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-16 17:52 patch to hilight-chg not in emacs 22.1 Richard Sharman
2008-03-17 14:11 ` Stefan Monnier
2008-03-18  3:11   ` Richard Sharman
2008-03-18 16:51     ` Stefan Monnier
2008-03-19  2:43       ` Richard Sharman [this message]
2008-03-19 16:20         ` Stefan Monnier
2008-04-25 14:27           ` Juanma Barranquero
2008-05-02  3:21             ` Richard Sharman
2008-05-02  8:53               ` Juanma Barranquero
2008-03-18  9:55 ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1DEEFF6E-3F47-47FE-82AC-AFFA68D3F7FF@pobox.com \
    --to=rsharman@pobox.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=rms@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).