From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 31 15:40:11 2020 Received: (at submit) by debbugs.gnu.org; 31 Dec 2020 20:40:11 +0000 Received: from localhost ([127.0.0.1]:41675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kv4jz-0007rs-2x for submit@debbugs.gnu.org; Thu, 31 Dec 2020 15:40:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:37248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kv4jy-0007rl-0S for submit@debbugs.gnu.org; Thu, 31 Dec 2020 15:40:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv4jx-0001xc-Oe for bug-gnu-emacs@gnu.org; Thu, 31 Dec 2020 15:40:09 -0500 Received: from serv1.kernkonzept.com ([2a01:4f8:1c1c:b490::2]:48247 helo=mx.kernkonzept.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv4jw-0002XM-34 for bug-gnu-emacs@gnu.org; Thu, 31 Dec 2020 15:40:09 -0500 Received: from ip5f5a9a82.dynamic.kabel-deutschland.de ([95.90.154.130] helo=cert) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) id 1kv4jl-0007yU-Nz for bug-gnu-emacs@gnu.org; Thu, 31 Dec 2020 21:39:57 +0100 Received: from localhost ([::1] helo=cert) by cert with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kv4jl-000LI0-Bm for bug-gnu-emacs@gnu.org; Thu, 31 Dec 2020 21:39:56 +0100 From: Hendrik Tews To: bug-gnu-emacs@gnu.org Subject: 27.1; please document default-directory for filters and sentinels Date: Thu, 31 Dec 2020 21:39:55 +0100 Message-ID: <87y2hdzp44.fsf@cert.kernkonzept.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a01:4f8:1c1c:b490::2; envelope-from=hendrik@askra.de; helo=mx.kernkonzept.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.318, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, the value of default-directory has a number of implicit effects. Therefore, it would be good, if the elisp manual would explicitly state the value that default-directory has in process filters and process sentinels. From the behavior I see, it seems it gets the value from the working directory of the process. Is this right? Thanks, Hendrik From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 31 20:55:35 2020 Received: (at 45577) by debbugs.gnu.org; 1 Jan 2021 01:55:36 +0000 Received: from localhost ([127.0.0.1]:41929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kv9fD-0006wF-F3 for submit@debbugs.gnu.org; Thu, 31 Dec 2020 20:55:35 -0500 Received: from sonic311-32.consmr.mail.ir2.yahoo.com ([77.238.176.164]:37885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kv9f9-0006vp-O3 for 45577@debbugs.gnu.org; Thu, 31 Dec 2020 20:55:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1609466124; bh=sB+NNrsriNXmB1L0IO8MtUW5zu0MUcvoeyMzU+QLSI8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=Pd446gt2HLI3mFYBUWPDCbZGY34caUgy4weLR+0VSuyBFOz5anJ8mSGB9yRzADZEKB3JhJ9X4jUvTzE2Yd5WT2Lv094HTlFG6MrWRq8Bf8tdnMFBvpGwH77DxMFpKTJTYO9pUfbqBWPeIIylwqciCuYpsHoUOsUCkvnYAWiULw5UotX04A44cDXDQxJIP8G+16KxL5DjHWB7YAeBQKnKlSS0FKKcdHlz8rpmnTWK12pHRNRkssehH0Rb8qsxHD1yi5BdOgSTbW4lJAwVg/pQojx1f2p0HcHTnC4Ix3AyaDzdsFV1bk7K7pDDKPgLOKdshzRAj7uyqthQleE8DCQVSQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1609466124; bh=ODPCYHzIymCmBVzo+OK8B8kmg40flrsARjLVp8XYdqh=; h=From:To:Subject:Date:From:Subject; b=afuxugOeCvtAe9+3qiMe7c9gE0KuIu460hdZhhJAH9G1ZL4xBGfaU8rwJ4Su0a5F1PDbQxpIU6tdjKz/fuMovYWXvk5YXbGuAbuHxwgdz8EWqylZW6hS14tHEWRi08QYoI0GBKyGIbAS/JZ/WOXvaxkbu2ebgjllCplW6KD0GEO6Q2j4SUxcUoz48H/S/QJE6zAVzv4BW7oVtZwO3YxXiLoo64xOPmOiRRD0ZqvfZ8LHqLhHE1sFf8ARrFhio/G594p9Gp3vaP5W00mpq10z5wCFB9HKMOjGwP2hRTgPZLlD3FcrIhY/kvbW4JTqa2aOPETLxsZn9zU7eoRVXC053A== X-YMail-OSG: 6yPyrhwVM1nyHtvnb5_KIuem9PiEWq9TrgL.ZFWvGnIMFf5X1IQPQufr3xrvvGw RvbhQkxH.hAVDIVoIliBDV11q1cMnwkcZRsh_hrQc7hh0GoZoWPvWv45DMfA8tzxvicsYiE9rReI g3Qc9MrwWZ0P.iVQxMLEW5HY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ohUgAn_uhjnSSt lyxey9bo7m1ThvOcu4bqyI7Fw13wrnufuJYVNEey.bsCaEeVX1M1r_6pPd6n0TqBq65sCV4n5HtS r66irSIzILj3fQ45_Dss4gsQAN74ikXb5ws3.mj7DRy1iqcFPqLqPFAbPUn2Mr.Tnauf.ho4Mnk7 NIpupeX_.y1Gz3zHzL5Zc1OfrWWkWYdb5fmcJURtfeuu.9mFDxhzM5i_BWHNYgdNtgqNwTBRe Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Fri, 1 Jan 2021 01:55:24 +0000 Received: by smtp415.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 0f8bd29e3e7a4556ffb63d06faf48c1c; Fri, 01 Jan 2021 01:55:20 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: Hendrik Tews Subject: Re: bug#45577: 27.1; please document default-directory for filters and sentinels References: <87y2hdzp44.fsf@cert.kernkonzept.com> Date: Fri, 01 Jan 2021 02:55:15 +0100 In-Reply-To: <87y2hdzp44.fsf@cert.kernkonzept.com> (Hendrik Tews's message of "Thu, 31 Dec 2020 21:39:55 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.17278 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Content-Length: 1310 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 45577 Cc: 45577@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hendrik Tews writes: > Hi, > > the value of default-directory has a number of implicit effects. > Therefore, it would be good, if the elisp manual would > explicitly state the value that default-directory has in process > filters and process sentinels. From the behavior I see, it seems > it gets the value from the working directory of the process. Is > this right? Process filters and sentinels are functions, so default-directory, as any other buffer-local variable, will have the value that is bound in the current buffer. As you said, it's usually the same as the working directory of the process, because the working directory of an inferior process in Emacs is usually initialized from default-directory when the process is started. This is described at (info "(elisp) Subprocess Creation"). Note that default-directory *may change* as the user switches buffers or sets it explicitly with "M-x cd", for example. For more information about when and how Emacs changes default-directory for file-visiting and non-file-visiting buffers, see (info "(emacs) File Names"). I don't think the manual needs to be much more explicit here, IMHO, because process filters and sentinels are not very different from other functions. But let's wait for more opinions from the Emacs developers. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 01 06:03:22 2021 Received: (at 45577) by debbugs.gnu.org; 1 Jan 2021 11:03:22 +0000 Received: from localhost ([127.0.0.1]:55456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvIDK-0006NX-Gm for submit@debbugs.gnu.org; Fri, 01 Jan 2021 06:03:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvIDI-0006NJ-F9 for 45577@debbugs.gnu.org; Fri, 01 Jan 2021 06:03:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8YaLKGaGwxaAU/ZxctW0kPQB8OsSBLRtEonE+MyBCyc=; b=PEsprKAIr2R0GDAwZgephvPuRX e1U15w8H3qr1+AVrML7iv1anoi3J6Q17PiK6PhPQi82wXUEuB4KCk8gQwQcNIz6x2Hb2oflzZ7pTK +xx4D2EKDKfJbcD0rKTtYZTm26LK5jqU7MHcd7ppek0x3fZgxpc2UciwwBAtZkGC/gFY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kvID9-0000ET-CL; Fri, 01 Jan 2021 12:03:14 +0100 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#45577: 27.1; please document default-directory for filters and sentinels References: <87y2hdzp44.fsf@cert.kernkonzept.com> X-Now-Playing: Dif Juz's _Who Says So?_: "Channel" Date: Fri, 01 Jan 2021 12:03:10 +0100 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Fri, 01 Jan 2021 02:55:15 +0100") Message-ID: <87v9cgc429.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín writes: > I don't think the manual needs to be much more explicit here, IMHO, > because process filters and sentinels are not very different from other > functions. But let's wait for more opinions from the E [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45577 Cc: Hendrik Tews , 45577@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Mart=C3=ADn writes: > I don't think the manual needs to be much more explicit here, IMHO, > because process filters and sentinels are not very different from other > functions. But let's wait for more opinions from the Emacs developers. Yeah, I don't think there's anything further to document here? There's nothing special about default-directory for sentinels/process filters -- they're called in a buffer, and the default-directory is whatever is in that buffer, as usual. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 04 17:39:30 2021 Received: (at 45577) by debbugs.gnu.org; 4 Jan 2021 22:39:30 +0000 Received: from localhost ([127.0.0.1]:60529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwYVe-0008Cx-9d for submit@debbugs.gnu.org; Mon, 04 Jan 2021 17:39:30 -0500 Received: from serv1.kernkonzept.com ([159.69.200.6]:51793 helo=mx.kernkonzept.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwYVc-0008Cl-9c for 45577@debbugs.gnu.org; Mon, 04 Jan 2021 17:39:28 -0500 Received: from ip5f5a9a82.dynamic.kabel-deutschland.de ([95.90.154.130] helo=cert) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) id 1kwYVa-0003lk-Sl; Mon, 04 Jan 2021 23:39:27 +0100 Received: from localhost ([::1] helo=cert) by cert with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kwYVa-000joM-Fw; Mon, 04 Jan 2021 23:39:25 +0100 From: Hendrik Tews To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#45577: 27.1; please document default-directory for filters and sentinels References: <87y2hdzp44.fsf@cert.kernkonzept.com> Date: Mon, 04 Jan 2021 23:39:25 +0100 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Fri, 01 Jan 2021 02:55:15 +0100") Message-ID: <87im8ciaxu.fsf@cert.kernkonzept.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 45577 Cc: 45577@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, > Process filters and sentinels are functions, so default-directory, as > any other buffer-local variable, will have the value that is bound in > the current buffer. This means that my guess was wrong. The current buffer may change independently of the working directory of the process. > because process filters and sentinels are not very different from other > functions. They are called asynchronously and the current buffer may change arbitrarily and unrelated to the process. For functions called from the command loop, the user has control over the current buffer and therefore also default-directory. For filters and sentinels the user cannot reliably control the current buffer and neither can the programmer. IMO this is enough difference to include a warning in the manual that filters and sentinels need to set the current buffer in case they are not agnostic to the current buffer of the value of default-directory. Hendrik From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 04 17:42:59 2021 Received: (at 45577) by debbugs.gnu.org; 4 Jan 2021 22:42:59 +0000 Received: from localhost ([127.0.0.1]:60540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwYYm-0008I2-3m for submit@debbugs.gnu.org; Mon, 04 Jan 2021 17:42:59 -0500 Received: from serv1.kernkonzept.com ([159.69.200.6]:52085 helo=mx.kernkonzept.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwYYj-0008Ht-Rt for 45577@debbugs.gnu.org; Mon, 04 Jan 2021 17:42:42 -0500 Received: from ip5f5a9a82.dynamic.kabel-deutschland.de ([95.90.154.130] helo=cert) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) id 1kwYYi-0003nr-Vb; Mon, 04 Jan 2021 23:42:41 +0100 Received: from localhost ([::1] helo=cert) by cert with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kwYYi-000jtE-TP; Mon, 04 Jan 2021 23:42:40 +0100 From: Hendrik Tews To: Lars Ingebrigtsen Subject: Re: bug#45577: 27.1; please document default-directory for filters and sentinels References: <87y2hdzp44.fsf@cert.kernkonzept.com> <87v9cgc429.fsf@gnus.org> Date: Mon, 04 Jan 2021 23:42:39 +0100 In-Reply-To: <87v9cgc429.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 01 Jan 2021 12:03:10 +0100") Message-ID: <87eej0iasg.fsf@cert.kernkonzept.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 45577 Cc: 45577@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > nothing special about default-directory for sentinels/process filters -- > they're called in a buffer OK, but where does the manual say in which buffer sentinels and filters are called? A valid choice could also be the associated buffer of the process, if it is present. Hendrik From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 05 03:54:53 2021 Received: (at 45577) by debbugs.gnu.org; 5 Jan 2021 08:54:53 +0000 Received: from localhost ([127.0.0.1]:40755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwi7B-0005dN-Eo for submit@debbugs.gnu.org; Tue, 05 Jan 2021 03:54:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwi79-0005dA-K5 for 45577@debbugs.gnu.org; Tue, 05 Jan 2021 03:54:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7fzwX5YUCB5dNwedw57HF31NII60yCA08+T7AKxdFcs=; b=QXTdQ4oyOq6vJvyAVrYAAvPgOt I16REjdiObaUPGZYq3y6HAxnE8tGJpHB9PVquLpWMxG+SPL2qLeuugBcxg7nbDdrx1De64qa8g6Ld Fk8HfUCbZITNCfBICN5l9Hxyde1ebuvcPSYIPH/Zcgk8tC84RNJCt8yiX2BMEQb83iJ8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwi6u-0006my-63; Tue, 05 Jan 2021 09:54:45 +0100 From: Lars Ingebrigtsen To: Hendrik Tews Subject: Re: bug#45577: 27.1; please document default-directory for filters and sentinels References: <87y2hdzp44.fsf@cert.kernkonzept.com> <87v9cgc429.fsf@gnus.org> <87eej0iasg.fsf@cert.kernkonzept.com> X-Now-Playing: Big Audio Dynamite's _This Is Big Audio Dynamite_: "The Bottom Line" Date: Tue, 05 Jan 2021 09:54:34 +0100 In-Reply-To: <87eej0iasg.fsf@cert.kernkonzept.com> (Hendrik Tews's message of "Mon, 04 Jan 2021 23:42:39 +0100") Message-ID: <87czyj3gs5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hendrik Tews writes: > Lars Ingebrigtsen writes: > >> nothing special about default-directory for sentinels/process filters -- >> they're called in a buffer > > OK, but where does the manual say in which [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45577 Cc: Daniel =?utf-8?Q?Mart=C3=ADn?= , 45577@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hendrik Tews writes: > Lars Ingebrigtsen writes: > >> nothing special about default-directory for sentinels/process filters -- >> they're called in a buffer > > OK, but where does the manual say in which buffer sentinels and > filters are called? A valid choice could also be the associated > buffer of the process, if it is present. As with most (all?) async functions, it's undefined what buffer they're called from. As the "Filter Functions" node says, this is the canonical way of running a filter function: (defun ordinary-insertion-filter (proc string) (when (buffer-live-p (process-buffer proc)) (with-current-buffer (process-buffer proc) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 10:49:23 2021 Received: (at 45577) by debbugs.gnu.org; 11 Jan 2021 15:49:23 +0000 Received: from localhost ([127.0.0.1]:57947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyzRb-0001jb-1h for submit@debbugs.gnu.org; Mon, 11 Jan 2021 10:49:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyzRZ-0001jL-7M for 45577@debbugs.gnu.org; Mon, 11 Jan 2021 10:49:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LNcpP9D2PvmKlw8vHJ43lYPvLW1CwLXVZHZNu4N0uaY=; b=XVRnd0g90ef+0fkt3WMs3HtbBY bwn6NnJxIh2BhoEAF30eGTxC4T/wKrqkkdQzGOydElhXMhUSiwNGQMwj0V3ixVpVJdCQwfNBTBfPj JEyu1xJ3A0AIbfSLezg5OfIIQwOzN9K1NmORIlyKe3eQGPS98Tl4txvf7vZgTupLs5qM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyzRQ-00007O-TT; Mon, 11 Jan 2021 16:49:15 +0100 From: Lars Ingebrigtsen To: Hendrik Tews Subject: Re: bug#45577: 27.1; please document default-directory for filters and sentinels References: <87y2hdzp44.fsf@cert.kernkonzept.com> <87v9cgc429.fsf@gnus.org> <87eej0iasg.fsf@cert.kernkonzept.com> <87czyj3gs5.fsf@gnus.org> X-Now-Playing: CZR's _Fabric Presents: Octo Octa & Eris Drew_: "Structure" Date: Mon, 11 Jan 2021 16:49:11 +0100 In-Reply-To: <87czyj3gs5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 05 Jan 2021 09:54:34 +0100") Message-ID: <877dojfp8o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > As with most (all?) async functions, it's undefined what buffer they're > called from. So I don't think there's anything here that should be documented any further, and I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45577 Cc: 45577@debbugs.gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > As with most (all?) async functions, it's undefined what buffer they're > called from. So I don't think there's anything here that should be documented any further, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 10:49:42 2021 Received: (at control) by debbugs.gnu.org; 11 Jan 2021 15:49:42 +0000 Received: from localhost ([127.0.0.1]:57950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyzRu-0001kD-AG for submit@debbugs.gnu.org; Mon, 11 Jan 2021 10:49:42 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyzRf-0001jZ-5n for control@debbugs.gnu.org; Mon, 11 Jan 2021 10:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hLf1f41qTrdGijZGe3l8FCwGiONSXFO9Ni9cSzAMiPo=; b=QzXTWgTnCzZkjEHxw5zwi2m8Yc L1fo3+VYxamIdo+BprMybAsXtJKa/YlSX85LKnNcySq65YnrRJrRZiML4FsivOwfKD9Oh4sQcjryM IUIS7+sifAYFIKvDaD6rZNjCpv0shvYNEK9nOn/iZfM1wjh5FtHREA+U7EwXvRH4rCtM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyzRX-00007X-IN for control@debbugs.gnu.org; Mon, 11 Jan 2021 16:49:21 +0100 Date: Mon, 11 Jan 2021 16:49:18 +0100 Message-Id: <875z43fp8h.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45577 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45577 notabug close 45577 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 45577 notabug close 45577 quit From unknown Fri Sep 12 20:32:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Feb 2021 12:24:11 +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