auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Any key combination to delete a macro or/and an environment


From: Ralf Angeli
Subject: Re: [AUCTeX] Any key combination to delete a macro or/and an environment?
Date: Sat, 22 Oct 2005 13:08:08 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

* Adam Johnson (2005-10-22) writes:

> I couldn't find the answer from the AUCTeX menu.  I'm just curious
> whether there're any key combinations to delete/replace a macro? (I
> know there're keys to delete/replace a font, which is very useful.)

Not that I know of.

> For example, currently, if I want to change some (but not all)
> $\bar{A}$ to $\tilde{A}$, I need delete \bar{} first and then add
> \tilde{} around "A", which is not convenient.

M-% bar RET tilde RET

> Sometimes, maybe I need
> replace all $\bar{A}$ to $A$, then I need delete \bar{} manually.  My
> idea is to use some key combination to replace or delete \bar{}. (If
> {} exists for this macro, also delete this pair if necessary.)

C-M-% \\bar{\(.+?\)} RET \1 RET

> Also any key to delete an environment? (I know the key to replace an
> environment.)

Not that I know of.

> Why the short cut of the menu command: Ref/View Crossref only shows as
> (C-c )?

Looks like an Emacs bug in the code for creating menu entries.


BTW, please don't reply to messages from the mailing list if you are
not referring to them.  It screws threading.  Better start your own
message from scratch.

-- 
Ralf




reply via email to

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