From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Giuliano Procida" Newsgroups: gmane.emacs.bugs Subject: Re: perl-mode - fix syntax of anonymous sub prototypes Date: Sat, 29 Mar 2008 14:58:23 +0000 Message-ID: <5c8016cf0803290758q3cba61ffr374865efa59587d0@mail.gmail.com> References: <5c8016cf0803281037q5c64bd21le5e3359ddadca955@mail.gmail.com> <5c8016cf0803290143x34727c91laac78b676d598000@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206802723 24955 80.91.229.12 (29 Mar 2008 14:58:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 14:58:43 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 15:59:14 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfcWW-0000Gv-M3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 15:59:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfcVv-0007KL-59 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 10:58:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfcVo-0007Fa-Ap for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:58:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfcVm-0007CP-M5 for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:58:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfcVm-0007CD-FI for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:58:26 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfcVm-0002L0-5A for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:58:26 -0400 Original-Received: by mu-out-0910.google.com with SMTP id g7so1239341muf.0 for ; Sat, 29 Mar 2008 07:58:24 -0700 (PDT) Original-Received: by 10.78.144.11 with SMTP id r11mr11447855hud.49.1206802703524; Sat, 29 Mar 2008 07:58:23 -0700 (PDT) Original-Received: by 10.78.198.16 with HTTP; Sat, 29 Mar 2008 07:58:23 -0700 (PDT) In-Reply-To: <5c8016cf0803290143x34727c91laac78b676d598000@mail.gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17763 Archived-At: Joost Diepenmaat wrote: > Just FYI, prototypes on anonymous subs are useless. As in; discarded by > the perl interpreter. I'm actually surprised it's even valid syntax. We are getting off-topic here but I disagree. It is useful to the programmer or maintainer to see the argument structure at a glance (especially when writing a lot of functional-style code). It could even be useful to code analysis tools, though with Perl that's going to be a bit hard. I think the language syntax is more regular with this feature than without. > Also, I would strongly recommend cperl-mode (which in fact does > recognize the construct) instead of perl-mode. I have found cperl-mode's defaults rather unpleasant and I don't want to spend ages customising it to my taste (i.e., make it look like perl-mode). I just use perl-mode and I will be happy if I can fix the few issues I have with it. Giuliano Procida