From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.devel Subject: Re: Modern Conventions for Emacs Lisp files? Date: Tue, 09 Apr 2013 01:42:45 +0200 Message-ID: <874nfgtwqy.fsf@gmail.com> References: <87hajhswdh.fsf@gmail.com> <8738v0fxw7.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365464575 5471 80.91.229.3 (8 Apr 2013 23:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2013 23:42:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 09 01:42:59 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 1UPLiE-0001Ud-E4 for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2013 01:42:58 +0200 Original-Received: from localhost ([::1]:46563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPLiE-0008UI-3Y for ged-emacs-devel@m.gmane.org; Mon, 08 Apr 2013 19:42:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPLiB-0008UC-58 for emacs-devel@gnu.org; Mon, 08 Apr 2013 19:42:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPLi9-00076V-Uw for emacs-devel@gnu.org; Mon, 08 Apr 2013 19:42:55 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPLi9-00075R-OH for emacs-devel@gnu.org; Mon, 08 Apr 2013 19:42:53 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UPLi8-0001NT-Ho for emacs-devel@gnu.org; Tue, 09 Apr 2013 01:42:52 +0200 Original-Received: from g231225015.adsl.alicedsl.de ([92.231.225.15]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Apr 2013 01:42:52 +0200 Original-Received: from tjolitz by g231225015.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Apr 2013 01:42:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 72 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231225015.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:bYzxltyyiHZ5Aav4o3Y1tFivYeA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:158789 Archived-At: "Pascal J. Bourguignon" writes: > Stefan Monnier writes: > >>> 1. File structuring with outcommented Org-mode headlines (;; * Headline) >> >> There is already a standard for that: >> >> ;;; Headline >> ;;;; SubHeadline >> ;;;;; SubSubHeadline > > But the lisp convention is the opposite: > > ------------------------------------------------------------------------ > ;;;; -*- mode:lisp -*- > > > ;;;; > ;;;; File comment > ;;;; > > ;;; > ;;; Section comment > ;;; > > (defun code () > ;; indented comment > (form) ; inline comment > (form2) ; long inline comment > ;; indented comment > (form3)) > > ------------------------------------------------------------------------ If thats true (and I think it actually might be) it would be a very inconvenient convention, because one would need to know the number of heading levels in advance, and would have to change all other headers if a new level is introduced at the bottom: ,------------------------------------------- | > ;;;; -*- mode:lisp -*- ; * level 1 | > | > ;;;; | > ;;;; File comment ; * level 1 | > ;;;; | > | > ;;; | > ;;; Section comment ; ** level 3 | > ;;; `------------------------------------------- ,---------------------------------------------- | > ;;;;; -*- mode:lisp -*- ; * level 1 | > | > ;;;;; | > ;;;;; File comment ; * level 1 | > ;;;;; | > | > ;;;; | > ;;;; Section comment ; ** level 2 | > ;;;; | > | > ;;; | > ;;; Subsection comment ; *** level 3 | > ;;; `---------------------------------------------- -- cheers, Thorsten