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: bug#4004: filename completion Date: Mon, 17 Aug 2009 12:42:08 -0400 Message-ID: <87ab1y8k9r.fsf@stupidchicken.com> References: <1b97198a0908010936o1f0b2015w8405a82648a5f869@mail.gmail.com> <877hxlbndl.fsf@gmx.de> <87ocqwenwl.fsf@gmx.de> <87my607th6.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250527357 19940 80.91.229.12 (17 Aug 2009 16:42:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 16:42:37 +0000 (UTC) Cc: Colin Williams , Stefan Monnier , "emacs-devel@gnu.org" To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 17 18:42:30 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Md5Hs-0000nY-S8 for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2009 18:42:25 +0200 Original-Received: from localhost ([127.0.0.1]:36492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md5Hs-0000sL-9Z for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2009 12:42:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md5Hm-0000no-Sg for emacs-devel@gnu.org; Mon, 17 Aug 2009 12:42:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md5Hi-0000jV-Bh for emacs-devel@gnu.org; Mon, 17 Aug 2009 12:42:18 -0400 Original-Received: from [199.232.76.173] (port=42295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md5Hi-0000jM-6J for emacs-devel@gnu.org; Mon, 17 Aug 2009 12:42:14 -0400 Original-Received: from pantheon-po40.its.yale.edu ([130.132.50.103]:42535) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md5Hh-0008FU-Rc for emacs-devel@gnu.org; Mon, 17 Aug 2009 12:42:13 -0400 Original-Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po40.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n7HGg8rd016057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Aug 2009 12:42:08 -0400 Original-Received: by furry (Postfix, from userid 1000) id D39BCC070; Mon, 17 Aug 2009 12:42:08 -0400 (EDT) In-Reply-To: (Michael Albinus's message of "Mon, 17 Aug 2009 17:32:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114345 Archived-At: Michael Albinus writes: >>> Would it be OK to add the check >>> (and (boundp 'completion-styles) >>> (member 'partial-completion (symbol-value 'completion-styles))) >> >> You mean >> >> (and (boundp 'completion-styles) >> (member 'partial-completion completion-styles)) >> >> ? > > Yes, I mean that. My version avoids compiler warnings for unknown > symbol completion-styles, when Tramp runs outside GNU Emacs 23. The byte-compiler is smart enough to recognize this situation and avoid warning about it.