From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Evil defvars in org.el Date: Sat, 28 Apr 2012 10:25:00 +0800 Message-ID: <874ns4sidf.fsf@gnu.org> References: <87k411g8xa.fsf@gnu.org> <877gx1pv19.fsf@gnu.org> <87vckls01f.fsf@gnu.org> <77ehr96ty6.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335579935 20120 80.91.229.3 (28 Apr 2012 02:25:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2012 02:25:35 +0000 (UTC) Cc: Bastien , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 28 04:25:33 2012 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 1SNxLk-00037m-VI for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2012 04:25:29 +0200 Original-Received: from localhost ([::1]:40012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNxLk-0003B0-4n for ged-emacs-devel@m.gmane.org; Fri, 27 Apr 2012 22:25:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNxLg-0003Au-Rk for emacs-devel@gnu.org; Fri, 27 Apr 2012 22:25:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNxLf-0006Pw-6m for emacs-devel@gnu.org; Fri, 27 Apr 2012 22:25:24 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:46289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNxLf-0006Ps-3a for emacs-devel@gnu.org; Fri, 27 Apr 2012 22:25:23 -0400 Original-Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:58085 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SNxLc-00087x-En; Fri, 27 Apr 2012 22:25:21 -0400 In-Reply-To: <77ehr96ty6.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 27 Apr 2012 12:05:53 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 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:150106 Archived-At: Glenn Morris writes: > I discussed this with Stefan off-list some time ago. > Still waiting for "dlet"... :) > >> > Eg diary-list-entries has always advertized NUMBER and >> > ORIGINAL-DATE as available for use in the hook functions it >> > calls. It's widely used within the calendar, and probably outside >> > as well. It's not how I would have implemented it, but here we are. >> >> > The only way I can think to change it is to make it respect both eg >> > DIARY-NUMBER and NUMBER equally, with a view to removing NUMBER in >> > future. I think we should bite the bullet and introduce new defvars with properly prefixed names, as was done for `e'. We can have a transition period during which the diary binds both the new variables and the old ones, then eliminate the old ones in (say) Emacs 25. Any third party code that wants backward compatibility with old Emacs versions can check if the new variables are bound, and use them first.