From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Package initialization Date: Sat, 18 Jul 2015 17:56:12 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1437235013 15818 80.91.229.3 (18 Jul 2015 15:56:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2015 15:56:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 18 17:56:46 2015 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 1ZGUTk-0004tp-KB for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2015 17:56:44 +0200 Original-Received: from localhost ([::1]:48663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGUTk-0002YS-0q for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2015 11:56:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGUTY-0002YJ-4Y for emacs-devel@gnu.org; Sat, 18 Jul 2015 11:56:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGUTT-00012k-4b for emacs-devel@gnu.org; Sat, 18 Jul 2015 11:56:32 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGUTS-00012b-Uq for emacs-devel@gnu.org; Sat, 18 Jul 2015 11:56:27 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZGUTO-0004lF-9j for emacs-devel@gnu.org; Sat, 18 Jul 2015 17:56:22 +0200 Original-Received: from 212.46.170.156 ([212.46.170.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jul 2015 17:56:22 +0200 Original-Received: from eller.helmut by 212.46.170.156 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jul 2015 17:56:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 212.46.170.156 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:F1h+M42Q5VWVdovzWBTaazZDG6g= 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:187950 Archived-At: What is the official way to initialize an ELPA package? E.g. if the package needs add a hook somewhere or change auto-mode-alist. The manual says this about NAME-autoload.el files: They are typically used to autoload the principal user commands defined in the package, but they can also perform other tasks, such as adding an element to ‘auto-mode-alist’ Which seems to suggest that one should write some ;;;###autoload (progn ...) somewhere that does the initialization. Is this the way it should be done? And what is supposed to happen if two packages make conflicting changes to auto-mode-alist? Helmut