From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Emacs conventions (was: Re: Overriding emacs key bindings) Date: Wed, 18 May 2016 07:22:54 +0200 Message-ID: <86eg90c53l.fsf@student.uu.se> References: <86k2iteg4e.fsf@student.uu.se> <87lh39h2hr.fsf@robertthorpeconsulting.com> <7ed720ce-0339-4de0-8f05-2f2ebbab3531@default> <867fesdtv4.fsf_-_@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463549023 29771 80.91.229.3 (18 May 2016 05:23:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 05:23:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 07:23:34 2016 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 1b2txG-00039f-Bv for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 07:23:34 +0200 Original-Received: from localhost ([::1]:43016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2txF-0005Kl-JK for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 01:23:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2tws-0005KT-6C for help-gnu-emacs@gnu.org; Wed, 18 May 2016 01:23:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2twn-0008BA-Vg for help-gnu-emacs@gnu.org; Wed, 18 May 2016 01:23:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2twn-0008AT-Ou for help-gnu-emacs@gnu.org; Wed, 18 May 2016 01:23:05 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b2twm-0002uE-2a for help-gnu-emacs@gnu.org; Wed, 18 May 2016 07:23:04 +0200 Original-Received: from c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se ([85.230.225.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2016 07:23:04 +0200 Original-Received: from embe8573 by c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2016 07:23:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:qJAV6cfEFY/9iXVncBMY/TLC91U= 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.21 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" Xref: news.gmane.org gmane.emacs.help:110041 Archived-At: Drew Adams writes: > Yes, they are good to be aware of. But again, > they are for someone writing a library for > more than personal use. They are in no way > restrictions on users. > > There is no convention (that I know of) that > restricts key bindings for users or even > suggests that users should stay away from > certain keys. OK. No doubt, disregarding conventions in code that is supposed to be shared - you should have a very good reason for doing that! (The assumption being the convention makes sense.) Still, there is a hesitation in my mind doing a to sharp division between libraries that are professional, and then the user stuff... The user stuff is the best school. So it is a good place to start acting like a skilled programmer, and that skilled programmer may well write or contribute to a library, and that doesn't have to take three decades like some people think.... As they say in boxing, "you want to be a champion? Start acting like one, today". So a list of conventions, good habits, known pitfalls, etc. is a good idea. (Perhaps it can in large parts be compiled from different parts of existing material.) Just a thought - I'm not up for the job myself :) But here is one thing that might help for code that is a package: (defun check-package-style () (interactive) (checkdoc-current-buffer t) ; TAKE-NOTES (message "Style check done.") ) Eh :) -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 33 Blogomatic articles -