emacs-devel
[Top][All Lists]
Advanced

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

Re: sh-script beg-end of function


From: Stefan Monnier
Subject: Re: sh-script beg-end of function
Date: Wed, 21 Nov 2007 15:19:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> This is a good change to make.
> Would others please check the code and send Andreas suggestions?

I've installed a simpler change which should provide
comparable functionality.


        Stefan


--- lisp/progmodes/sh-script.el 26 Sep 2007 00:27:18 -0000      1.203
+++ lisp/progmodes/sh-script.el 21 Nov 2007 20:19:32 -0000
@@ -1524,6 +1524,8 @@
        skeleton-filter-function 'sh-feature
        skeleton-newline-indent-rigidly t
        sh-indent-supported-here nil)
+  (set (make-local-variable 'defun-prompt-regexp)
+       (concat "^\\(function[ \t]\\|[[:alnum:]]+[ \t]+()[ \t]+\\)"))
   (set (make-local-variable 'parse-sexp-ignore-comments) t)
   ;; Parse or insert magic number for exec, and set all variables depending
   ;; on the shell thus determined.




reply via email to

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