help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoc-apitalize blocking call to accept-process-output quit inhibite


From: Kevin Rodgers
Subject: Re: autoc-apitalize blocking call to accept-process-output quit inhibited
Date: Thu, 27 Jun 2013 21:02:01 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

On 6/26/13 10:28 AM, Uwe Brauer wrote:
Concerning auto-capitalize.el another error Iobtain is the following:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   re-search-backward(nil nil t)
   auto-capitalize(28 29 0)
   self-insert-command(1)
   call-interactively(self-insert-command nil nil)

There are 3 calls to re-search-backward in auto-capitalize.el, all with nil and
t as the optional 2nd and 3rd args respectively.

The 1st call assumes that paragraph-start is a valid non-nil regexp, the 2nd
call assumes that sentence-end is a valid non-nil regexp, and the 3rd call
passes abbrev-regexp which it has just bound to a constant string.

So either paragraph-start or sentence-end is null in the buffer where the
auto-capitalize function is running.  I suppose those variable references
should be changed to something like these to try to avoid that error:

(or paragraph-start (default-value 'paragraph-start))

(or sentence-end (and (fboundp 'sentence-end) (sentence-end))

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]