auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Wrap dollars around active region


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Wrap dollars around active region
Date: Thu, 25 Apr 2013 17:21:19 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

Hi Mosè,

> I'm sending a patch to wrap dollars around active region typing `$'.
> This is controlled by a new customizable variable, the default
> behavior isn't changed, but I had to remove the line
>   (put 'TeX-insert-dollar 'delete-selection t)
> from the end of `tex.el'.  Any comments?

Not sure if that's a valuable feature.  At least, it doesn't happen very
frequently that I write down some formula and forget to enclose it with
$, but I don't have a strong opinion here.

But I object to the 'double value.  The usage of $$...$$ is discouraged
in LaTeX, so we shouldn't propagate it's usage.  And it's usecase is
handled anyway by

  1. set the region containing the formula
  2. C-c C-e displaymath RET

Ok, that's a bit longer than just doing 1 and then $, but really, who
forgets to insert some proper math environment before starting to write
a formula?

Bye,
Tassilo




reply via email to

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