[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Insert character pairs
From: |
Juri Linkov |
Subject: |
Re: Insert character pairs |
Date: |
Tue, 04 May 2004 22:32:32 +0300 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Kevin Rodgers <address@hidden> writes:
> Juri Linkov wrote:
> > Kevin Rodgers <address@hidden> writes:
> > >Juri Linkov wrote:
> > > > The command `promote-list' is basically opposite to
> `insert-parentheses',
> > > > so another possible name is `remove-parentheses', but it is misleading,
> > > > because it removes more than only enclosing parentheses.
> > >
> > > I don't find "delete" or "remove" misleading at all.
> >
> > "delete" or "remove" would not be misleading if they correctly
> > indicated what is removed, but the name may become too long,
> > e.g. "remove-parentheses-and-non-selected-text".
>
> Right. But remove- would be bad because no other commands use that
> prefix. I think delete- is better.
>
> How about delete-surrounding-sexps, delete-sibling-sexps, or
> just-one-sexp (in analogy to just-one-space)?
Good names, but not completely true. Actually, this function deletes
all the text inside the sexp out of one level of parentheses, except
sexps selected by the argument or active region in transient-mark-mode.
So deleted text may contain comments as well.
> > Perhaps `rise-up-sexp' is a better name.
>
> I think "raise [up]" is the correct English verb (because it is
> transitive, whereas "rise [up]" is intransitive). But the Emacs command
> should be named after its surface effect anyway, not its deep
> (structural) effect. Or are you proposing that insert-parentheses
> should be named demote-sexp? :-)
No, it should be named lower-sexp :-)
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Insert character pairs, (continued)
- Re: Insert character pairs, Richard Stallman, 2004/05/03
- Re: Insert character pairs, Johan Bockgård, 2004/05/04
- Re: Insert character pairs, Juri Linkov, 2004/05/04
- Re: Insert character pairs, Richard Stallman, 2004/05/05
- Re: Insert character pairs, Juri Linkov, 2004/05/06
- Re: Insert character pairs, Stefan Monnier, 2004/05/06
- Re: Insert character pairs, Juri Linkov, 2004/05/08
Re: Insert character pairs, Kevin Rodgers, 2004/05/03
Re: Insert character pairs, Stefan Monnier, 2004/05/01