From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 07FA9158074 for ; Sat, 28 Jun 2025 18:41:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id EE472340906 for ; Sat, 28 Jun 2025 18:41:47 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E69B4110278; Sat, 28 Jun 2025 18:41:46 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id DA54D110278 for ; Sat, 28 Jun 2025 18:41:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93354340906 for ; Sat, 28 Jun 2025 18:41:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA4CA2AF7 for ; Sat, 28 Jun 2025 18:41:44 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1751134686.4f18041b98df9ba1f5f5394e47845f9598e5ccc2.ulm@gentoo> Subject: [gentoo-commits] proj/emacs-tools:emacs-daemon commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog emacs.rc X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 4f18041b98df9ba1f5f5394e47845f9598e5ccc2 X-VCS-Branch: emacs-daemon Date: Sat, 28 Jun 2025 18:41:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e20d4fc-e751-4070-a357-05b9f3166ae4 X-Archives-Hash: c3a491c871595a7c0f49d02487c63ec0 commit: 4f18041b98df9ba1f5f5394e47845f9598e5ccc2 Author: Ulrich Müller gentoo org> AuthorDate: Sat Jun 28 18:18:06 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Jun 28 18:18:06 2025 +0000 URL: https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=4f18041b Posixify the init script * emacs.rc (start_pre): POSIX shell does not support "local". (start): Ditto. Drop the intermediate variable because s-s-d itself can expand the tilde. Signed-off-by: Ulrich Müller gentoo.org> ChangeLog | 6 ++++++ emacs.rc | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2af5f69..d4c4455 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-06-28 Ulrich Müller + + * emacs.rc (start_pre): POSIX shell does not support "local". + (start): Ditto. Drop the intermediate variable because s-s-d + itself can expand the tilde. + 2025-03-14 Ulrich Müller * Version 0.25 released. diff --git a/emacs.rc b/emacs.rc index 3f8611f..16c8524 100644 --- a/emacs.rc +++ b/emacs.rc @@ -34,9 +34,8 @@ start_pre() { # and would therefore hang, waiting for user interaction. # Redirecting stdin and unsetting TERM and DISPLAY will cause most # of them to exit with an error. - local has_daemon=$(unset TERM DISPLAY; ${EMACS} -batch -q --no-site-file \ - --eval "(princ (fboundp 'daemonp))"