On Thu, 31 Aug 2000, Skip Montanaro wrote:
> To be interpreted as a literal hyphen in character sets, "-" has to
> appear as the first character in the set, otherwise it separates the
> endpoints of a range.
A short experiment seems to confirm that `-' can also be the last
character in the set t
Update of /services/emacs-rcp/cvsroot/tramp/lisp
In directory lucy:/export/home/grossjoh/work/emacs-tramp/tramp/lisp
Modified Files:
ChangeLog tramp.el
Log Message:
* tramp.el (tramp-file-name-structure): Move `-' to beginning of
[...]. Is this really necessary? Well, it won't hurt.
[Skip Montanaro wrote about regular expressions in emacs and Python]
In POSIX hyphens can be put at either the start or the end of a range
expression. The option to put it at the end is a consequence of the
condition that the only place to put a right bracket ']' is at the
start. (The start may
> "Kai" == Kai Großjohann <[EMAIL PROTECTED]> writes:
> A short experiment seems to confirm that `-' can also be the last
> character in the set to be interpreted as a literal hyphen. Hilko put
> the `-' last...
> Or is this an Emacs vs. XEmacs issue, and does XEmacs behave
> differently perh
> "Skip" == Skip Montanaro <[EMAIL PROTECTED]> writes:
> If you want to include a "]" or a "-" inside a set, precede it with a
> backslash, or place it as the first character.
Note that Emacs' syntax for [...] treats backslashes normally, so they
can't be used for quoting. This again
Kai> Or is this an Emacs vs. XEmacs issue, and does XEmacs behave
Kai> differently perhaps?
It's hard to tell. As Hilko quoted from the XEmacs manual, it says you
should use "---" to denote a singleton hyphen in a character set.
I tried a short experiment (XEmacs 21.1.9) as well after