From: Geoffrey Alan Washburn <geoffw@cis.upenn.edu>
To: emacs-devel@gnu.org
Subject: Re: modify-syntax-entry and UTF8?
Date: Fri, 25 May 2007 09:48:47 -0400 [thread overview]
Message-ID: <f36pg0$7ns$1@sea.gmane.org> (raw)
In-Reply-To: <jwvirajo57i.fsf-monnier+emacs@gnu.org>
Stefan Monnier wrote:
> Try to use C-M-f and C-M-b to see if the code correctly counts
> opening/closing elements (this code doesn't pay attention to matching or
> non-matching elements). If this works, then 99% of things are right.
Based upon my understanding of backward-sexp and forward-sexp, this
doesn't work correctly either. Or at least not entirely analogously to
parens, square-brackets, etc. If I use
forward-sexp with the point on just
⟨
it jumps to just after the \langle. Similarly for
⟨ ⟩
If I do backward-sexp just after the \rangle the point will move on top
of the \rangle. If I do a backward-sexp while on the \rangle instead of
giving me an error (like it appears to do for parens, etc.) it moves the
point on top of the \langle.
> Then, please tell us what you use to cause face-highlighting of those
> opening&closing elements. Ideally, give us a recipe starting from
> "emacs -Q" which can reproduce your problem.
Okay, starting from emacs -Q, enter "⟨ ⟩" and "( )". Then using C-U
C-X = verify that these two pairs of glyphs are indeed considered to be
a matching pair in the current syntax table. Then to enable
show-paren-mode. Moving the point on top of "(" or just after ")" will
cause both glyphs to become "highlighted". Moving the point on top of
"⟨" or just after "⟩" will instead just highlight the first or the
second respectively. forward-sexp and backward-sexp behave as described
above.
> Emacs's font handling is quite different. You may need to help it a bit by
> specifying which font to use. I'm not sure how to do that since you seem to
> be using the emacs-unicode branch and I'm not yet familiar enough with it.
>
> Maybe start a different thread about it, and don't forget to mention
> emacs-unicode in there so the right people will look at it.
Sure. Thanks.
next prev parent reply other threads:[~2007-05-25 13:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-21 17:24 modify-syntax-entry and UTF8? Geoffrey Alan Washburn
2007-05-21 23:06 ` James Cloos
2007-05-22 8:47 ` Geoffrey Alan Washburn
2007-05-22 13:25 ` James Cloos
2007-05-23 15:09 ` Geoffrey Alan Washburn
2007-05-23 16:56 ` Stefan Monnier
2007-05-25 13:48 ` Geoffrey Alan Washburn [this message]
2007-05-25 14:23 ` Miles Bader
2007-05-25 14:26 ` Geoffrey Alan Washburn
2007-05-25 14:54 ` Geoffrey Alan Washburn
2007-05-25 17:53 ` Miles Bader
2007-05-25 18:20 ` Geoffrey Alan Washburn
2007-05-25 22:06 ` James Cloos
2007-05-28 16:04 ` Geoffrey Alan Washburn
2007-05-29 12:43 ` highlights of parentheses in lisp-interaction-mode (was: Re: modify-syntax-entry and UTF8?) James Cloos
2007-05-29 13:27 ` highlights of parentheses in lisp-interaction-mode martin rudalics
2007-05-29 16:34 ` James Cloos
2007-06-04 0:17 ` highlights of parentheses in lisp-interaction-mode (was: Re: modify-syntax-entry and UTF8?) Richard Stallman
2007-05-22 9:48 ` modify-syntax-entry and UTF8? Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f36pg0$7ns$1@sea.gmane.org' \
--to=geoffw@cis.upenn.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.