GNU bug report logs - #12222
24.2; error: sh-syntax-propertize-function: Beginning of buffer

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sat, 18 Aug 2012 12:08:03 UTC

Severity: normal

Found in version 24.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo <sdl.web <at> gmail.com>
Subject: bug#12222: closed (Re: bug#12222: 24.2; error: sh-syntax-propertize-function:
 Beginning of buffer)
Date: Wed, 29 Aug 2012 18:35:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 12222 <at> debbugs.gnu.org.

-- 
12222: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12222
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo <sdl.web <at> gmail.com>
Cc: 12222-done <at> debbugs.gnu.org
Subject: Re: bug#12222: 24.2;
	error: sh-syntax-propertize-function: Beginning of buffer
Date: Wed, 29 Aug 2012 14:33:40 -0400
> 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))


[Message part 3 (message/rfc822, inline)]
From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; error: sh-syntax-propertize-function: Beginning of buffer
Date: 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

This is a regression.

Leo



This bug report was last modified 12 years and 267 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.