all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: d@teklibre.org.?= (Dave =?UTF-8?Q?T=C3=A4ht)
To: 4153@emacsbugs.donarmstrong.com
Subject: bug#4153: sentence-end properly constructed now?
Date: Thu, 27 Aug 2009 18:04:35 -0600	[thread overview]
Message-ID: <87bpm0st0s.fsf@mahal.sjds.teklibre.org> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I am curious if this bug resolves the problem I was encountering with
sentence-forward and sentence-backward in the post 22 versions of emacs
I have had available to me. 

I also ran into it in http://www.emacswiki.org/emacs/auto-capitalize.el 
which irked me enough to try and find the cause of the problem. 

Is sentence-end getting properly constructed now?

... elided ...
;; auto-capitalize.el 
;; 1 Jun 2009: It does not work with Aquamacs 1.7/GNUEmacs 22. Only the first word in the buffer 
;; (or the first word typed after mode activation) is capitalized. 
;; Maybe the code is too old (1998). -- Rikal

;; No.
;; The reason why this code bit is failing is that sentence-end is not
;; getting constructed for some reason in paragraphs.el: 

;; (message "%s" sentence-end) ;; returns null in the post 22 versions of emacs I tried.

;; According to the documentation, sentence-end is supposed to be automatically
;; constructed from the other regexps defined there. It isn't. I did not
;; dig any further. 

;; This also explains why sentence-forward and sentence-backward (M-e,
;; M-a respectively) are not working in the current emacs-snapshot. (I do not have
;; emacs 23.1 installed on the machine I am on, but this does sound like
;; it is also a problem in 23.1)

;; To keep me going I just did a:
;; (setq sentence-end "[.?!][]\"')]*\\($\\| $\\|\t\\| \\)[ \t\n]*" )
;; in my main .emacs file, and this makes auto-capitalization.el work for me.

;; Maybe this is related to bug 4153 which is reported as fixed in emacs head?
;; 28 Aug 2009 -- dtaht

- -- 
Dave Taht
http://the-edge.blogspot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkqXHxEACgkQpdejJcOV4uRU2gCguFaf5/CGeq/riyrB3tbFY8Cs
no8An0ELJkkXVml6xBzBqp7mdB+3TTJ0
=q/1C
-----END PGP SIGNATURE-----





             reply	other threads:[~2009-08-28  0:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28  0:04 Dave =?UTF-8?Q?T=C3=A4ht [this message]
2009-08-28  4:11 ` bug#4153: sentence-end properly constructed now? Glenn Morris

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=87bpm0st0s.fsf@mahal.sjds.teklibre.org \
    --to=d@teklibre.org.?= \
    --cc=4153@emacsbugs.donarmstrong.com \
    --cc=?=.4153@emacsbugs.donarmstrong.com \
    --cc=d@teklibre.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.