From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81190 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.gnus.general Subject: Re: Emacs version compatibility Date: Thu, 02 Feb 2012 13:26:12 +0100 Message-ID: <87bophmnff.fsf@gmx.de> References: <871uqey9t4.fsf@gnus.org> <87k445ptt5.fsf@marauder.physik.uni-ulm.de> <877h057ejp.fsf@gnus.org> <87r4ydms6b.fsf@gmx.de> <87boph33v2.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328185600 30972 80.91.229.3 (2 Feb 2012 12:26:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 12:26:40 +0000 (UTC) Cc: ding@gnus.org To: Lars Ingebrigtsen Original-X-From: ding-owner+M29471@lists.math.uh.edu Thu Feb 02 13:26:39 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RsvkL-0003F1-Gu for ding-account@gmane.org; Thu, 02 Feb 2012 13:26:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RsvkE-00050a-56; Thu, 02 Feb 2012 06:26:30 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RsvkD-00050V-C7 for ding@lists.math.uh.edu; Thu, 02 Feb 2012 06:26:29 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Rsvk9-0001Sz-1J for ding@lists.math.uh.edu; Thu, 02 Feb 2012 06:26:29 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by quimby.gnus.org with smtp (Exim 4.72) (envelope-from ) id 1Rsvk7-0007jV-BL for ding@gnus.org; Thu, 02 Feb 2012 13:26:23 +0100 Original-Received: (qmail invoked by alias); 02 Feb 2012 12:26:16 -0000 Original-Received: from p57BB9489.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.148.137] by mail.gmx.net (mp071) with SMTP; 02 Feb 2012 13:26:16 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18DmPI856sDyCkuNBHjMHuDRcRPak1XAMa3YGy49C wjnBGQ/Y+dbt+Y In-Reply-To: <87boph33v2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 02 Feb 2012 11:51:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81190 Archived-At: Lars Ingebrigtsen writes: > But I was thinking that (as with gnulib), projects would just copy stuff > from the compat library at will as they need it, instead of having to > include the entire shebang. And they'd include different bits of it, > according to what Emacs versions they attempt supporting. Sure. First step into this direction could be a modularization of that compat library into compat22.el, compat23.el, xcompat.el. compat22.el would include compatibility functions needed in Emacs 22 and introduced in Emacs 23, and compat23.el would include those from Emacs 24 aso. In Gnus, you could do (if (featurep 'xemacs) (require 'xcompat) (require 'compat23)) In Tramp, I would also require compat22.el (as long as I'm not bored of Emacs 22 support). And there is a relation between fsf-compat.el from XEmacs, and xcompat.el. Best regards, Michael.