From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Enhancement for file-attributes Date: Sun, 30 Sep 2012 21:16:31 -0400 Message-ID: References: <83a9w7egdd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349054199 20977 80.91.229.3 (1 Oct 2012 01:16:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 01:16:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 03:16:44 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 1TIUcl-0005r7-Kv for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 03:16:43 +0200 Original-Received: from localhost ([::1]:48963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIUcg-0007NK-53 for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 21:16:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIUcd-0007MD-Pt for emacs-devel@gnu.org; Sun, 30 Sep 2012 21:16:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIUcc-0005ep-V7 for emacs-devel@gnu.org; Sun, 30 Sep 2012 21:16:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:31753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIUcb-0005dk-KV; Sun, 30 Sep 2012 21:16:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLT4/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200338031" Original-Received: from 69-196-180-248.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.180.248]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Sep 2012 21:16:32 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 1166EAE5F6; Sun, 30 Sep 2012 21:16:32 -0400 (EDT) In-Reply-To: <83a9w7egdd.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 30 Sep 2012 16:26:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:153791 Archived-At: > Would it be a good idea to enhance file-attributes by adding one more > optional argument to it, which, when non-nil, will cause Emacs call > 'stat', not 'lstat', on the argument file name? This should avoid the > need to call file-chase-links when all we want is to get the > attributes of the file pointed to by the symlink. It would have made a lot of sense originally, but I'm wondering whether it's worth the trouble now. In how many places would we save the file-chase-links all? Are these places important? Stefan