From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Need advice for naming practice for namespaces in Elisp. Date: Tue, 05 Feb 2013 22:44:49 +0200 Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net Message-ID: <87ehguo5ha.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360097116 30614 80.91.229.3 (5 Feb 2013 20:45:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 20:45:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 05 21:45:37 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1U2pOZ-00029h-IB for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 21:45:35 +0100 Original-Received: from localhost ([::1]:42290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2pOE-0005cP-EO for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 15:45:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2pO7-0005Ys-41 for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 15:45:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2pO6-0002wR-5J for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 15:45:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2pO5-0002v8-Vy for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 15:45:06 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U2pOK-0001we-UH for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 21:45:20 +0100 Original-Received: from 37.229.4.200 ([37.229.4.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Feb 2013 21:45:20 +0100 Original-Received: from gavenkoa by 37.229.4.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Feb 2013 21:45:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.229.4.200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:LR1RkkxKKZb5clcvupd8CPeCJnE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88973 Archived-At: I read very small amount of elisp code and found practice to put '->' in the name of elisp var/func: ./emacs-bzr/emacs-24/lisp/info-look.el:107:(defsubst info-lookup->topic-value (topic) ./emacs-bzr/emacs-24/lisp/info-look.el:110:(defsubst info-lookup->mode-value (topic mode) ./emacs-bzr/emacs-24/lisp/info-look.el:113:(defsubst info-lookup->regexp (topic mode) Also I search for dot in names: ./emacs-bzr/trunk/lisp/erc/erc-backend.el:928: (setf (erc-response.sender msg) ./emacs-bzr/trunk/lisp/erc/erc-backend.el:933: (setf (erc-response.command msg) and for colon: ./emacs-bzr/emacs-24/lisp/org/org-agenda.el:5666: (maxgap (org-hh:mm-string-to-minutes ./emacs-bzr/emacs-24/lisp/org/org-agenda.el:5703: (org-minutes-to-hh:mm-string Seems that official sources don't often use special marker to separate package name and command and some times uses '->', ':' and '.' I want to choose good marker for package to simplify reading my code and make it more syntactically structured. I am feeling good with dot: blog4y-chunk.write blog4y-chunk.read blog4y-blog-selection.select blog4y-blog-selection.buffer-name blog4y-blog-selection.regex but would be glad to hear any suggestion and coding practices... My be some syntax agreement come from CL or other languages or have some historical background... -- Best regards!