From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: sh-script beg-end of function Date: Wed, 21 Nov 2007 15:19:50 -0500 Message-ID: References: <200711192143.15056.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195676925 6414 80.91.229.12 (21 Nov 2007 20:28:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2007 20:28:45 +0000 (UTC) Cc: Andreas =?iso-8859-1?Q?R=F6hler?= , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 21:28:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IuwBi-0000Il-Ah for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2007 21:28:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuwBU-0003cg-0h for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2007 15:28:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuwBP-0003X1-44 for emacs-devel@gnu.org; Wed, 21 Nov 2007 15:28:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuwBM-0003St-SM for emacs-devel@gnu.org; Wed, 21 Nov 2007 15:28:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuwBM-0003SW-En for emacs-devel@gnu.org; Wed, 21 Nov 2007 15:28:24 -0500 Original-Received: from tomts5-srv.bellnexxia.net ([209.226.175.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IuwBH-0000CV-TE; Wed, 21 Nov 2007 15:28:20 -0500 Original-Received: from pastel.home ([74.12.204.69]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071121202818.MYLU17217.tomts5-srv.bellnexxia.net@pastel.home>; Wed, 21 Nov 2007 15:28:18 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 22E047F51; Wed, 21 Nov 2007 15:19:49 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Wed, 21 Nov 2007 07:05:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83809 Archived-At: > 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.