From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: convert-standard-filename's doc Date: Sat, 29 May 2004 13:40:51 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8011-Sat29May2004134051+0300-eliz@gnu.org> References: <20040527152017.0849.JMBARRANQUERO@wke.es> <3099-Thu27May2004202140+0300-eliz@gnu.org> <2719-Fri28May2004110245+0300-eliz@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085834379 10214 80.91.224.253 (29 May 2004 12:39:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 12:39:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 29 14:39:32 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BU37c-0005L3-00 for ; Sat, 29 May 2004 14:39:32 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BU37b-00055i-00 for ; Sat, 29 May 2004 14:39:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BU37g-0006zo-6m for emacs-devel@quimby.gnus.org; Sat, 29 May 2004 08:39:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BU37G-0006n9-9U for emacs-devel@gnu.org; Sat, 29 May 2004 08:39:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BU37D-0006mQ-Cv for emacs-devel@gnu.org; Sat, 29 May 2004 08:39:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BU37D-0006mN-A7 for emacs-devel@gnu.org; Sat, 29 May 2004 08:39:07 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BU36X-0001On-Us for emacs-devel@gnu.org; Sat, 29 May 2004 08:38:26 -0400 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by mx20.gnu.org with esmtp (Exim 4.34) id 1BU2xs-0004rB-Ql for emacs-devel@gnu.org; Sat, 29 May 2004 08:29:33 -0400 Original-Received: from zaretski ([80.230.144.7]) by aragorn.inter.net.il (MOS 3.4.6-GR) with ESMTP id CZB48892; Sat, 29 May 2004 13:43:20 +0300 (IDT) Original-To: Stefan Monnier X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Stefan Monnier on 28 May 2004 12:19:31 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24165 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24165 > From: Stefan Monnier > Date: 28 May 2004 12:19:31 -0400 > > How about something like > > (defun foo () > "doc" > (if-when-compile (memq system-name '(bar baz)) > toto > titi)) > > For insert-directory, the answer would be a bit different (it can't be > decided at compile-time), but the idea would be the same: I think we cannot decide anything at compile time, as all the *.el files are compiled on a GNU or Unix machine when a release is being prepared. > (defun insert-directory (blabla) > "doc" > (if insert-directory-use-ls > (insert-directory-using-ls blabla) > (insert-directory-using-lisp blabla))) > > I.e. nothing clever. Yes, something like that will do, although it being non-clever means that someone needs to manuall find all those places and modify them as above. Not a catastrophe, of course.