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: Thu, 22 Nov 2007 12:39:12 -0500 Message-ID: References: <200711192143.15056.andreas.roehler@online.de> <200711220826.58619.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 1195753188 29495 80.91.229.12 (22 Nov 2007 17:39:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Nov 2007 17:39:48 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 22 18:39:54 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 1IvG1f-0008MK-AY for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2007 18:39:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvG1R-0004nU-32 for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2007 12:39:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IvG1M-0004ka-NH for emacs-devel@gnu.org; Thu, 22 Nov 2007 12:39:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IvG1L-0004ia-9C for emacs-devel@gnu.org; Thu, 22 Nov 2007 12:39:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvG1K-0004iD-Vt for emacs-devel@gnu.org; Thu, 22 Nov 2007 12:39:23 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IvG1F-0006B0-DO; Thu, 22 Nov 2007 12:39:17 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9104D2CF336; Thu, 22 Nov 2007 12:39:16 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 606573FE0; Thu, 22 Nov 2007 12:39:12 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 4D2E46CAA7; Thu, 22 Nov 2007 12:39:12 -0500 (EST) In-Reply-To: <200711220826.58619.andreas.roehler@online.de> ("Andreas =?iso-8859-1?Q?R=F6hler=22's?= message of "Thu, 22 Nov 2007 08:26:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:83878 Archived-At: > However, in this case, making `defun-prompt-regexp' a > lokal variable away from customization seems not the > appropriate way. I suggest to let the user decide about > this regexp and make this decision available for all > sh-scripts. If you can give me some examples of other regexps which might be sometimes (but not always) preferable, send them along. > Functions don't play the role in sh-scripts as in other > languages code. Don't they? Can you expand on this? > So it's probably not useful to require > a "()" in that regexp. It requires either () or `function'. That's how the Bash manpage documents their syntax of functions. > Can't figure out your solution > for `end-of-defun-function'. See the docstring of end-of-defun. It'll just jump to the closing }. Stefan