all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Making forward-word work with curly apostrophes
@ 2009-08-02 20:19 Ian Eure
  2009-08-02 21:23 ` Leo
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Eure @ 2009-08-02 20:19 UTC (permalink / raw)
  To: Emacs Help List

If I have a text-mode buffer with the following two words:

1. I've
2. I’ve

forward-word skips over "I've," but treats "I’ve" as _three_ words. I  
seem to recall that forward-char skips over characters with word  
syntax until it finds one with non-word-syntax, but that doesn't seem  
to be the case here. I set ’ to have the same syntax as ' with:

(modify-syntax-entry ?’ "w p")

But forward-word still treats it as three words. All works well if I do:

(skip-syntax-forward "w")

What is forward-word doing, and how can I make it treat ’ as part of  
my word?

  - Ian



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-03 23:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3711.1249244381.2239.help-gnu-emacs@gnu.org>
2009-08-02 20:40 ` Making forward-word work with curly apostrophes Xah Lee
2009-08-02 22:46 ` A.Politz
2009-08-03 23:58   ` Ian Eure
2009-08-02 20:19 Ian Eure
2009-08-02 21:23 ` Leo

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.