From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: Modern Conventions for Emacs Lisp files? Date: Tue, 09 Apr 2013 09:29:15 +0200 Message-ID: <874nfguppw.fsf@bzg.ath.cx> References: <87hajhswdh.fsf@gmail.com> <87y5csu7ml.fsf@gmail.com> <87hajgu5bp.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365492561 21498 80.91.229.3 (9 Apr 2013 07:29:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2013 07:29:21 +0000 (UTC) Cc: Thorsten Jolitz , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 09 09:29:25 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPSza-0007U3-Dz for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2013 09:29:22 +0200 Original-Received: from localhost ([::1]:51247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPSza-0000WQ-17 for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2013 03:29:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPSzW-0000T8-Df for emacs-devel@gnu.org; Tue, 09 Apr 2013 03:29:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPSzU-0007ma-H4 for emacs-devel@gnu.org; Tue, 09 Apr 2013 03:29:18 -0400 Original-Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:34738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPSzU-0007m4-BD for emacs-devel@gnu.org; Tue, 09 Apr 2013 03:29:16 -0400 Original-Received: by mail-we0-f172.google.com with SMTP id r3so5210132wey.3 for ; Tue, 09 Apr 2013 00:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=IGbk8yrCOKY2tlvA9/VWnjhRzuSrNJfk1sH4Q6yCXoM=; b=M7K3u2wdreopMNdI7E0rUdgIlZJnOpmtzG8IbdI2TfMJhte/fZoglc9VSP99sH4otX WP/AvCvdeIMgR1Sdz0pTJtsa+go/lIb/ADYZkLUrd/jCEzKj7BqW73pU7iETcaMrBTfi 87PPhc1JsvK2l2Z9iXwgvOTc4smWHoQ69k2VxUgOkzqSfNOiRv1pw0PrukvHUDATYWu1 DBsYiZg89T7y8lS3JLgsNix4sr44dVq2ZBm5tlGvG4enJ7o2ugIpCiqHsf23OTImNuKv hXUPaV8ZRXuo3vRZ9yGlj1DdnLujjddUkLhx97A7zMeQBgqecMKnkpxkc6Dtk3RtywSZ EeLA== X-Received: by 10.194.63.240 with SMTP id j16mr6916736wjs.45.1365492555349; Tue, 09 Apr 2013 00:29:15 -0700 (PDT) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id gl11sm23921017wic.8.2013.04.09.00.29.13 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Apr 2013 00:29:14 -0700 (PDT) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 2CAA21C2101F; Tue, 9 Apr 2013 09:29:15 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Mon, 08 Apr 2013 17:26:59 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158792 Archived-At: Stefan Monnier writes: > Couldn't "Org-mode" be made to work with the current convention? Not really. But you can make org-mode work on top of current conventions, provided users set `orgstruct-heading-prefix-regexp' to "^;;;+ " as a local file variable in their Elisp files, and use `orgstruct-mode' for them. In that case, they can fold/unfold lines starting with "^;;;+ \*+". (This is in the next release.) > That would be a lot more useful since it would "just work" on all > the existing files. Right now we can use `outline-minor-mode' for existing files that do not "*" characters in the comment sections, and `orgstruct-mode' for those who do. Personally, I'm not in favor of enforcing a new convention for using "*" in comment sections: this is aesthetically dubious, it relies on a nice little hack that provides Org-like folding. I'd be more in favor of making it easier to use `outline-minor-mode' with current conventions (i.e. more accessible keybindings, etc.) -- Bastien