all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer
@ 2012-08-18 12:07 Leo
  2012-08-18 18:24 ` Glenn Morris
  2012-08-29 18:33 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Leo @ 2012-08-18 12:07 UTC (permalink / raw)
  To: 12222

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-08-18 18:24 UTC (permalink / raw)
  To: Leo; +Cc: 12222

> This is a regression.

A regression from what? It's the same in 24.1.
Even in 22.1 and 23.1, there is: "Error during redisplay: (beginning-of-buffer)"





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer
  2012-08-18 18:24 ` Glenn Morris
@ 2012-08-19  1:24   ` Leo
  0 siblings, 0 replies; 4+ messages in thread
From: Leo @ 2012-08-19  1:24 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 12222

On 2012-08-19 02:24 +0800, Glenn Morris wrote:
> A regression from what? It's the same in 24.1.
> Even in 22.1 and 23.1, there is: "Error during redisplay: (beginning-of-buffer)"

I just redid the experiment in 22.1¹ and it seemed to work.

Leo

Footnotes: 
¹  (GNU Emacs 22.1.1 (mac-apple-darwin) of 2012-06-25 on b1028.apple.com)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12222: 24.2; error: sh-syntax-propertize-function: Beginning of buffer
  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-29 18:33 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2012-08-29 18:33 UTC (permalink / raw)
  To: Leo; +Cc: 12222-done

> 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))






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-29 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.