From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 07 08:19:22 2012 Received: (at submit) by debbugs.gnu.org; 7 Oct 2012 12:19:22 +0000 Received: from localhost ([127.0.0.1]:59190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKppJ-0000VK-Nz for submit@debbugs.gnu.org; Sun, 07 Oct 2012 08:19:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59024) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKppG-0000V8-GP for submit@debbugs.gnu.org; Sun, 07 Oct 2012 08:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKpoo-0004eB-8q for submit@debbugs.gnu.org; Sun, 07 Oct 2012 08:18:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKpoo-0004e7-5X for submit@debbugs.gnu.org; Sun, 07 Oct 2012 08:18:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKpom-0003vn-FN for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 08:18:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKpok-0004dZ-Fx for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 08:18:48 -0400 Received: from mail-in-08.arcor-online.net ([151.189.21.48]:39042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKpok-0004d2-5i for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 08:18:46 -0400 Received: from mail-in-05-z2.arcor-online.net (mail-in-05-z2.arcor-online.net [151.189.8.17]) by mx.arcor.de (Postfix) with ESMTP id 6F8D53AE89F for ; Sun, 7 Oct 2012 14:18:43 +0200 (CEST) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id 6E0486F2465 for ; Sun, 7 Oct 2012 14:18:43 +0200 (CEST) Received: from Rainer.invalid (pD9EB56F6.dip.t-dialin.net [217.235.86.246]) (Authenticated sender: stromeko@arcor.de) by mail-in-04.arcor-online.net (Postfix) with ESMTPSA id 36448AA418 for ; Sun, 7 Oct 2012 14:18:43 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-04.arcor-online.net 36448AA418 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nexgo.de; s=mail-in; t=1349612323; bh=3dMsB9gj0BTPcEFFQyU4yXGcX3qltS9dP3yBDBDISUg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=B3jExSe4ee9YLxqddjN/xQSnW8UJuZ3SsVeYuFOQC/ujMY9OYzlx7cNlUMCkEFrgV h9+WSYy8THyAqc0cqNL5g4vJHbkEB62wEQ/2nuDC9Mi5JWt25ReS6EKAGCiIQ5sD9m 7/xYhAlaoALLIr5kOXVes4lvGEvmwCWaWxDll64I= From: Achim Gratz To: bug-gnu-emacs@gnu.org Subject: 24.2; optional arguments NOSUFFIX MUSTSUFFIX to the load function Date: Sun, 07 Oct 2012 14:18:34 +0200 Message-ID: <87sj9qbhlx.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) In GNU Emacs 24.2.1 (i686-suse-linux-gnu, GTK+ Version 3.4.4) of 2012-09-30 on Rainer Windowing system distributor `The X.Org Foundation', version 11.0.11203000 There appears to be a mismatch between documentation and implementation of the optional arguments NOSUFFIX and MUSTSUFFIX to the load function. The behaviour is as described when both NOSUFFIX and MUSTSUFFIX are nil, or when NOSUFFIX is nil and MUSTSUFFIX is non-nil. However, with NOSUFFIX non-nil, MUSTSUFFIX is not at all evaluated and no extensions are tried, contrary to what the documentation says: If this function fails to find a file, it may look for different representations of that file before trying another file. It does so by adding the non-empty suffixes in `load-file-rep-suffixes' to the file name. Emacs uses this feature mainly to find compressed versions of files when Auto Compression mode is enabled. The exact suffixes that this function tries out, in the exact order, are given by the value of the variable `load-file-rep-suffixes' if NOSUFFIX is non-nil and by the return value of the function `get-load-suffixes' if MUST-SUFFIX is non-nil. If both NOSUFFIX and MUST-SUFFIX are nil, this function first tries out the latter suffixes and then the former. Both the documented and the implemented behaviour might be intended, but they should be made consistent. If following the documentation, then it seems that fd = openp (Vload_path, file, - (!NILP (nosuffix) ? Qnil + (!NILP (nosuffix) ? Vload_file_rep_suffixes : !NILP (must_suffix) ? Fget_load_suffixes () : Fappend (2, (tmp[0] = Fget_load_suffixes (), tmp[1] = Vload_file_rep_suffixes, tmp))), &found, Qnil); should correct the implementation. However, the behaviour has been implemented from the very beginning to not affix anything to the filename when NOSUFFIX is non-nil, so maybe the documentation should be corrected instead. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 20 08:54:00 2012 Received: (at 12592) by debbugs.gnu.org; 20 Oct 2012 12:54:00 +0000 Received: from localhost ([127.0.0.1]:52788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPYYx-0008G0-Df for submit@debbugs.gnu.org; Sat, 20 Oct 2012 08:54:00 -0400 Received: from mail-vc0-f172.google.com ([209.85.220.172]:58026) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPYYr-0008Fc-Uj for 12592@debbugs.gnu.org; Sat, 20 Oct 2012 08:53:54 -0400 Received: by mail-vc0-f172.google.com with SMTP id fl11so1714716vcb.3 for <12592@debbugs.gnu.org>; Sat, 20 Oct 2012 05:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=8CK3E92upyvA38kzRoAIU2a/MCidx5b2qRCeUaS0M7E=; b=uXkFtwR7f1bBExDput8Wzwua6ebdv9GWCj4vvBMR8ngt79odwcRucRIxeycgS208tF j1IQYBoXrkb2f3g+fzV24RxHmJMEB5qsi5uDnfsWBcVo4RVQTvuYBktGoFZ9W8A48ldH PwNuTgPKTBfGR3f265wpBWH8gX2ccYvO5jAv1xAf8PlL6cengCpcJM5DLlvC+reoavOf KXXrnX/noMjEtmr5e9HdxtKpH0eFTAuGvgmWXrT6a/FcO5cyY84ouKMNOb+WKOkC+MMn x6rRZD5vXXgjSrc0fyjjShSWHH6kz1FTu0G+HuOFVw1mKrEFluEHRQ8RgcWQXSxpM6Rc lmFw== Received: by 10.58.180.134 with SMTP id do6mr5943242vec.13.1350737533316; Sat, 20 Oct 2012 05:52:13 -0700 (PDT) Received: from ulysses (rrcs-184-75-32-88.nyc.biz.rr.com. [184.75.32.88]) by mx.google.com with ESMTPS id t12sm4210124vdi.18.2012.10.20.05.52.11 (version=SSLv3 cipher=OTHER); Sat, 20 Oct 2012 05:52:12 -0700 (PDT) From: Chong Yidong To: Achim Gratz Subject: Re: bug#12592: 24.2; optional arguments NOSUFFIX MUSTSUFFIX to the load function References: <87sj9qbhlx.fsf@Rainer.invalid> Date: Sat, 20 Oct 2012 20:52:10 +0800 In-Reply-To: <87sj9qbhlx.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 07 Oct 2012 14:18:34 +0200") Message-ID: <873919s3ut.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 12592 Cc: 12592@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.7 (/) Achim Gratz writes: > There appears to be a mismatch between documentation and > implementation of the optional arguments NOSUFFIX and MUSTSUFFIX to > the load function. The docstring was in error. Fix committed to trunk, thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 20 08:53:59 2012 Received: (at control) by debbugs.gnu.org; 20 Oct 2012 12:53:59 +0000 Received: from localhost ([127.0.0.1]:52786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPYYw-0008Fw-C9 for submit@debbugs.gnu.org; Sat, 20 Oct 2012 08:53:59 -0400 Received: from mail-vb0-f44.google.com ([209.85.212.44]:49112) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPYYt-0008Ff-G7 for control@debbugs.gnu.org; Sat, 20 Oct 2012 08:53:56 -0400 Received: by mail-vb0-f44.google.com with SMTP id fc26so1746187vbb.3 for ; Sat, 20 Oct 2012 05:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=BrZnO+upUYIR4C8gE6zBBz4ZxhbbdJpe7+F1j+xiXmo=; b=IIlJli0LJig5CwRwCoUdILivbiRQFescbZRHdIWJSoRze2okf7ZuC7DpUPDmCcRFIq t6nwSCB1XYQoJIWMV4/ie8zFMWYNK8fbkcPPYyyyowP77k8Vr+HQO4/O891CrqHndVhK qHS/tFhk4ilKjWrzncMmCujU8ZTMa7jk+RVKAnPFdHuQpsHFqaWN0A1jHtnXVEUJprrz WASJ97sy2JEBqHCQlCv8T+ZK1GuG6pV2yoDz1NPWDqST9SjCgPJXLKon9uVzrWc8tLVK tRdStZyD4IiJGG2AqMrXAIRuEFqLL32cKZvZh6RwsdKxKqeLmuwco83wPt9EKj2aP5n7 TZ9w== Received: by 10.52.90.2 with SMTP id bs2mr4377066vdb.23.1350737535042; Sat, 20 Oct 2012 05:52:15 -0700 (PDT) Received: from ulysses (rrcs-184-75-32-88.nyc.biz.rr.com. [184.75.32.88]) by mx.google.com with ESMTPS id dg6sm4230383vdc.3.2012.10.20.05.52.13 (version=SSLv3 cipher=OTHER); Sat, 20 Oct 2012 05:52:14 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 12592 Date: Sat, 20 Oct 2012 20:52:12 +0800 Message-ID: <87d30d71c3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) close 12592 thanks From unknown Sat Sep 13 08:57:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Nov 2012 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator