From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576) Date: Wed, 25 May 2016 23:36:50 -0400 Message-ID: References: <20160518194708.27363.47377@vcs.savannah.gnu.org> <20160518194708.86FE0220157@vcs.savannah.gnu.org> <834m9u9dis.fsf@gnu.org> <83r3cx8eg2.fsf@gnu.org> <83mvnl894y.fsf@gnu.org> <83lh3583tb.fsf@gnu.org> <83eg8w97kf.fsf@gnu.org> <8337pc8sjc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1464233843 3097 80.91.229.3 (26 May 2016 03:37:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 May 2016 03:37:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 26 05:37:14 2016 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 1b5m6k-0005RY-AB for ged-emacs-devel@m.gmane.org; Thu, 26 May 2016 05:37:14 +0200 Original-Received: from localhost ([::1]:36231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5m6j-00083N-Bw for ged-emacs-devel@m.gmane.org; Wed, 25 May 2016 23:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5m6d-00083I-NT for emacs-devel@gnu.org; Wed, 25 May 2016 23:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5m6a-0001cH-Ik for emacs-devel@gnu.org; Wed, 25 May 2016 23:37:07 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5m6a-0001cC-Bb for emacs-devel@gnu.org; Wed, 25 May 2016 23:37:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b5m6W-0005PX-Np for emacs-devel@gnu.org; Thu, 26 May 2016 05:37:00 +0200 Original-Received: from 45.72.246.142 ([45.72.246.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 May 2016 05:37:00 +0200 Original-Received: from monnier by 45.72.246.142 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 May 2016 05:37:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 45.72.246.142 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:qy5fTPQmyYGcVwaTmUDv9IW6l/g= 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.21 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" Xref: news.gmane.org gmane.emacs.devel:204024 Archived-At: > The code I pushed just populates a new hash table `definition-prefixes'. > We still need to change help-fns.el (and various other places) to make > use of it. BTW, there could be other uses for it: - detect and warn about prefix-conflicts (when two packages use the same prefix). The main difficulty here could be to figure out if two files are part of the same package or not, tho a good heuristic could be to check if they're in the same directory. - emit warnings about packages that are not namespace clean which we can define as "use more than one prefix". There are some non-trivial issues to handle, tho, such as the issue of exceptions like "define-", or the issue of files which have very few definitions (say 3), in which case my algorithm may decide that the file uses 3 separate prefixes. Stefan