Received: (at 74157) by debbugs.gnu.org; 1 Nov 2024 14:57:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 01 10:57:39 2024 Received: from localhost ([127.0.0.1]:49993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t6t5m-0003r8-SJ for submit <at> debbugs.gnu.org; Fri, 01 Nov 2024 10:57:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1t6t5l-0003r2-4K for 74157 <at> debbugs.gnu.org; Fri, 01 Nov 2024 10:57:37 -0400 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 <eliz@HIDDEN>) id 1t6t5f-0006eo-NM; Fri, 01 Nov 2024 10:57:31 -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=YagPJ6PPLOKnHqmd5M4+n2j3M1nKmf9vpoBHC1el5Z0=; b=WRIzDDRav9w9 2iHGLYD+KapNOWEhCMqQCAcLiMmy0uimTmobALOsSy3thToZuTcJhNIL6Ur+nV5yeDY0fm2pOSzQA uzOQDRxCH4L7wsN/uDZYhAb6sn5kggRTqj4CfeRqqkkvdoutIQBumTEln0/FufsIF4TiXNorirgGB jTCxSOJwQx9EkmwxyRLdsUuiBf/os+qgCddyxsCHIJlJU3PJcaxgLUBfqjQTi/PnR6cU2EfUyTS0g YXdLZBMjBPZGeig5FIEqr/kHry8b7cGIzERmk/icome21Mv1EUn/V5BBJi/Zlb7xB+vViwHkpNkAc Hx5yU9LdR8u9bvoqY6M+Sw==; Date: Fri, 01 Nov 2024 16:57:23 +0200 Message-Id: <864j4r0zos.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Jerome <an.inbox@HIDDEN> In-Reply-To: <fe5dddac-b6c3-400c-8004-7d6f887dc09d@HIDDEN> (message from Jerome on Fri, 1 Nov 2024 16:51:32 +0900) Subject: Re: bug#74157: 30.0.92; `emacsclient-program-name' doesn't factor Emacs name changes References: <fe5dddac-b6c3-400c-8004-7d6f887dc09d@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74157 Cc: 74157 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 1 Nov 2024 16:51:32 +0900 > From: Jerome <an.inbox@HIDDEN> > > Emacs 30 adds the `emacsclient-program-name', but its default value > doesn't factor the build time Emacs name configuration changes (with > prefix, suffix and sed transormation). I only verified this with the > suffix confguration, but assume prefix and sed transformation are the > same. > > In my case I configured with `--program-suffix=-30pre'. The Emacs client > program is, as expected, `emacsclient-30pre', but the value of > `emacsclient-program-name' is still `'emacsclient'. The variable value > should reflect the configure time name change(s). It's actually more complex than that: the programs are renamed only when Emacs is installed, not when Emacs is built. So when Emacs is run from the build tree, this variable should have its original name, and only when Emacs is run from its installed location, the name should reflect the transform. Which means the name transformation cannot be static, at build time; it must be done at run time when we take note of invocation-name. > This would make `with-editor' simpler (from Emacs 30 onward) as no > heuristics would be needed to derive the Emacs client name. See: > https://github.com/magit/with-editor/issues/132 It's too late for Emacs 30 for such non-trivial changes, unfortunately. So we can only improve this in Emacs 31.
bug-gnu-emacs@HIDDEN
:bug#74157
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 1 Nov 2024 13:21:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 01 09:21:15 2024 Received: from localhost ([127.0.0.1]:49451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t6raU-0000il-8b for submit <at> debbugs.gnu.org; Fri, 01 Nov 2024 09:21:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:38422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <an.inbox@HIDDEN>) id 1t6mRh-0006h6-Ft for submit <at> debbugs.gnu.org; Fri, 01 Nov 2024 03:51:51 -0400 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 <an.inbox@HIDDEN>) id 1t6mRh-0002QM-7N for bug-gnu-emacs@HIDDEN; Fri, 01 Nov 2024 03:51:49 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <an.inbox@HIDDEN>) id 1t6mRd-00072Z-Ug for bug-gnu-emacs@HIDDEN; Fri, 01 Nov 2024 03:51:48 -0400 Received: from [192.168.1.145] (unknown [110.233.12.233]) (Authenticated sender: an.inbox@HIDDEN) by smtp5-g21.free.fr (Postfix) with ESMTPSA id 415EB5FFAF; Fri, 1 Nov 2024 08:51:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1730447499; bh=48qS/11fRZZDXtFprr5MhankLaRpFCQ2AKumIw+lj4s=; h=Date:To:Subject:From:From; b=joAYYXX8hfmlVZqDYZtqVSRsNljaKTNwPRhZl5KbprxaPqGmOjPKQRAq7GZUrRCxM /5toeO54MV0HP8qrfzxDy4WfS8afE6E13UTojP/i+IZ9myvLdVgI0XzezsHWLTcLFJ GAFZnUr1GvDSrsHIZKYp8RvHvZdmRcf2bGVaICY0F2DGcyt5AW+7csApOdIcn+MxkG U4+nVB2i+m17n+N//Eer6okuTiizmjvKRhIH/4l1z3HZ4oQjfzK7WFnps4LYBhoiY8 cHWXbJLMcQWVPS4lpNegApB/3uG/G1zUCBg1mgPqvZlZ8Rmq/dI9cZ0CAXmeW+Tk1O DB+LmNd9Z5mwQ== Message-ID: <fe5dddac-b6c3-400c-8004-7d6f887dc09d@HIDDEN> Date: Fri, 1 Nov 2024 16:51:32 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: bug-gnu-emacs@HIDDEN Subject: 30.0.92; `emacsclient-program-name' doesn't factor Emacs name changes From: Jerome <an.inbox@HIDDEN> Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=212.27.42.5; envelope-from=an.inbox@HIDDEN; helo=smtp5-g21.free.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 01 Nov 2024 09:21:12 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) Emacs 30 adds the `emacsclient-program-name', but its default value doesn't factor the build time Emacs name configuration changes (with prefix, suffix and sed transormation). I only verified this with the suffix confguration, but assume prefix and sed transformation are the same. In my case I configured with `--program-suffix=-30pre'. The Emacs client program is, as expected, `emacsclient-30pre', but the value of `emacsclient-program-name' is still `'emacsclient'. The variable value should reflect the configure time name change(s). This would make `with-editor' simpler (from Emacs 30 onward) as no heuristics would be needed to derive the Emacs client name. See: https://github.com/magit/with-editor/issues/132 Thanks ------------------- In GNU Emacs 30.0.92 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2024-10-27 built on red Windowing system distributor 'The X.Org Foundation', version 11.0.12101014 System Description: Debian GNU/Linux trixie/sid Configured using: 'configure --prefix=/usr/local/stow/emacs-30.0.92 --program-suffix=-30pre --with-tree-sitter --with-file-notification=yes 'CFLAGS=-O2 -march=native'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print byte-opt gv bytecomp byte-compile thingatpt help-fns radix-tree help-mode cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 68133 11926) (symbols 48 6289 0) (strings 32 19033 2140) (string-bytes 1 514914) (vectors 16 10889) (vector-slots 8 148624 8376) (floats 8 27 8) (intervals 56 280 0) (buffers 992 12))
Jerome <an.inbox@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#74157
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.