all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: autoc-apitalize blocking call to accept-process-output quit inhibited
Date: Thu, 27 Jun 2013 21:02:01 -0600	[thread overview]
Message-ID: <kqiu83$j26$1@ger.gmane.org> (raw)
In-Reply-To: <87obas4z0i.fsf@gilgamesch.quim.ucm.es>

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




  parent reply	other threads:[~2013-06-28  3:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-26 14:09 autoc-apitalize blocking call to accept-process-output quit inhibited Uwe Brauer
2013-06-26 14:55 ` Stefan Monnier
2013-06-26 16:10   ` Uwe Brauer
2013-06-26 16:28   ` Uwe Brauer
2013-06-27 14:47     ` auto-capitalize " Stefan Monnier
2013-06-28  3:02     ` Kevin Rodgers [this message]
2013-06-28 12:23       ` autoc-apitalize " Uwe Brauer

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='kqiu83$j26$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@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.