From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo <sdl.web@gmail.com>
Cc: 12222-done@debbugs.gnu.org
Subject: bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer
Date: Wed, 29 Aug 2012 14:33:40 -0400 [thread overview]
Message-ID: <jwv6281ft3p.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m11uj4h092.fsf@gmail.com> (Leo's message of "Sat, 18 Aug 2012 20:07:21 +0800")
> 1. Emacs -q
> 2. C-x C-f x.sh
> 3. C-c : and set the shell to sh
> 4. C-c (
> the last step should fail with this message:
> sh-syntax-propertize-function: Beginning of buffer
I installed the patch below into emacs-24 which should fix this problem.
Thanks,
Stefan
=== modified file 'lisp/progmodes/sh-script.el'
--- lisp/progmodes/sh-script.el 2012-08-28 16:01:59 +0000
+++ lisp/progmodes/sh-script.el 2012-08-29 18:29:49 +0000
@@ -1062,7 +1062,8 @@
(backward-char 1))
(when (eq (char-before) ?|)
(backward-char 1) t)))
- (when (progn (backward-char 2)
+ (and (> (point) (1+ (point-min)))
+ (progn (backward-char 2)
(if (> start (line-end-position))
(put-text-property (point) (1+ start)
'syntax-multiline t))
prev parent reply other threads:[~2012-08-29 18:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-18 12:07 bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer Leo
2012-08-18 18:24 ` Glenn Morris
2012-08-19 1:24 ` Leo
2012-08-29 18:33 ` Stefan Monnier [this message]
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=jwv6281ft3p.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=12222-done@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
/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.