emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#12222: closed (24.2; error: sh-syntax-propertize-f


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#12222: closed (24.2; error: sh-syntax-propertize-function: Beginning of buffer)
Date: Wed, 29 Aug 2012 18:35:02 +0000

Your message dated Wed, 29 Aug 2012 14:33:40 -0400
with message-id <address@hidden>
and subject line Re: bug#12222: 24.2; error: sh-syntax-propertize-function: 
Beginning of buffer
has caused the debbugs.gnu.org bug report #12222,
regarding 24.2; error: sh-syntax-propertize-function: Beginning of buffer
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
12222: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12222
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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



--- End Message ---
--- Begin Message --- Subject: Re: bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer Date: Wed, 29 Aug 2012 14:33:40 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)
> 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))



--- End Message ---

reply via email to

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