unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4153: sentence-end properly constructed now?
@ 2009-08-28  0:04 Dave =?UTF-8?Q?T=C3=A4ht
  2009-08-28  4:11 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Dave =?UTF-8?Q?T=C3=A4ht @ 2009-08-28  0:04 UTC (permalink / raw)
  To: 4153

-----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-----





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

* bug#4153: sentence-end properly constructed now?
  2009-08-28  0:04 bug#4153: sentence-end properly constructed now? Dave =?UTF-8?Q?T=C3=A4ht
@ 2009-08-28  4:11 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2009-08-28  4:11 UTC (permalink / raw)
  To: d; +Cc: 4153

Dave =?UTF-8?Q?T=C3=A4ht wrote:

> 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. 

No, it is totally unrelated.

Your issue is explained in the NEWS for Emacs 22, and in the documentation
of the variable sentence-end:

  The value nil means to use the default value defined by the
  function `sentence-end'.  You should always use this function
  to obtain the value of this variable.

So auto-capitalize should use sentence-end the function, not the variable.

> ;; 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.





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

end of thread, other threads:[~2009-08-28  4:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28  0:04 bug#4153: sentence-end properly constructed now? Dave =?UTF-8?Q?T=C3=A4ht
2009-08-28  4:11 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).