* bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode?
@ 2008-05-14 3:33 Drew Adams
2008-05-22 2:46 ` Kevin Rodgers
0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2008-05-14 3:33 UTC (permalink / raw
To: emacs-pretest-bug
emacs -Q
In *scratch*, type a backslash followed by a TAB and a letter:
\ b
Put the cursor on the letter.
M-: (skip-syntax-backward "\\s-")
The cursor is on the backslash. IOW, it skipped not only the
whitespace but also the \, which should have escape syntax.
This is the first time I've noticed this, so I'm guessing there is a
good explanation and this behavior is somehow correct. But looking at
the Elisp manual, I don't get that impression. Willing to learn...
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-05-04 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode?
2008-05-14 3:33 bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode? Drew Adams
@ 2008-05-22 2:46 ` Kevin Rodgers
2008-05-22 21:39 ` Drew Adams
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Rodgers @ 2008-05-22 2:46 UTC (permalink / raw
To: bug-gnu-emacs
Drew Adams wrote:
> emacs -Q
> In *scratch*, type a backslash followed by a TAB and a letter:
>
> \ b
>
> Put the cursor on the letter.
> M-: (skip-syntax-backward "\\s-")
>
> The cursor is on the backslash. IOW, it skipped not only the
> whitespace but also the \, which should have escape syntax.
>
> This is the first time I've noticed this, so I'm guessing there is a
> good explanation and this behavior is somehow correct. But looking at
> the Elisp manual, I don't get that impression. Willing to learn...
The SYNTAX argument to skip-syntax-forward and -backward is not a
regexp.
The argument in the example above means to skip any character with any
of 3 syntax classes:
\ escape
s [not a valid syntax class]
- whitespace
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode?
2008-05-22 2:46 ` Kevin Rodgers
@ 2008-05-22 21:39 ` Drew Adams
0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-05-22 21:39 UTC (permalink / raw
To: 'Kevin Rodgers', 239, bug-gnu-emacs
> The SYNTAX argument to skip-syntax-forward and -backward is not a
> regexp.
>
> The argument in the example above means to skip any character with any
> of 3 syntax classes:
> \ escape
> s [not a valid syntax class]
> - whitespace
Yes, someone else already pointed that out.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-22 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 3:33 bug#239: 23.0.60; \ is considered whitespace syntax in Lisp mode? Drew Adams
2008-05-22 2:46 ` Kevin Rodgers
2008-05-22 21:39 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.