From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] notifications: Don't expand-file-name app-icon. Date: Tue, 25 Jul 2023 17:05:07 +0300 Message-ID: <83jzuoozn0.fsf@gnu.org> References: <877cqpsnct.fsf@trop.in> <83fs5dsd0g.fsf@gnu.org> <87zg3kk3jw.fsf@trop.in> <837cqoqjy7.fsf@gnu.org> <379c4b8a-db49-06b3-f313-91e550c8c14c@gutov.dev> <87y1j4jego.fsf@trop.in> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, emacs-devel@gnu.org To: Andrew Tropin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 25 16:05:18 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qOIf6-0008Yr-Jt for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Jul 2023 16:05:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOIeM-0008I6-Ge; Tue, 25 Jul 2023 10:04:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIeI-0008HU-IP for emacs-devel@gnu.org; Tue, 25 Jul 2023 10:04:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIeG-0005ul-LI; Tue, 25 Jul 2023 10:04:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=cuhKXxLVv2BjqDFmJRxbJ6/WCqE6ckQTj6c+aFBEovM=; b=oi+jH5BsTBYB SkLWnIytZss3C6iOmGymCe9utNTAf6/9uNnXtEm2EkyxfJT7LSJj3JIvqlIGQsBUlv9LLvMrZkgW5 AYUIRrndoOPJ3zV4Dvgzdaky8DGpPBeEvaNkKvFDxKzL2sdts57f05f8MbGT9GTSXFqsYm9LnfYy5 cMAXiA47zeVy4rYb4MIwd2NNd0YQTyrZyf5Ig5h/byTcsilmhzIgLCz1f4LUAsXKG+FYqrgD8/KmZ D9pqrO++cRSmFAth8P7M4r3dtjvE5lNSHGvDb7dEdG3pigBmnh+C0VJlqT+cSvHjUplm1Fb5Ff16l Cb8hYQIMhv66UIghHxDNcw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIeD-0006sk-I0; Tue, 25 Jul 2023 10:04:24 -0400 In-Reply-To: <87y1j4jego.fsf@trop.in> (message from Andrew Tropin on Tue, 25 Jul 2023 17:41:27 +0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308098 Archived-At: > From: Andrew Tropin > Cc: emacs-devel@gnu.org > Date: Tue, 25 Jul 2023 17:41:27 +0400 > > > On 25/07/2023 15:01, Eli Zaretskii wrote: > >> But that's exactly the point: how can we make sure the file is "in > >> cwd"? > > > > When it's not in cwd, wouldn't (expand-file-name file) fail to work too? > > Right. > > Eli, by cwd I mean default-directory. If that's what you meant, then my question should be rephrased: how do we know that the code in question always runs when the buffer that is the current buffer has the directory of the icon file as its default-directory?