Received: (at 79059) by debbugs.gnu.org; 22 Jul 2025 11:22:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 22 07:22:19 2025 Received: from localhost ([127.0.0.1]:35632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ueB4d-0004bd-1q for submit <at> debbugs.gnu.org; Tue, 22 Jul 2025 07:22:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39108) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ueB4a-0004bA-8k for 79059 <at> debbugs.gnu.org; Tue, 22 Jul 2025 07:22:16 -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 1ueB4U-0005gH-3w; Tue, 22 Jul 2025 07:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=WDrMbZdHHT7Lat3Cv9jqwKxtNB4ymSc/rSKwTl3hde0=; b=Xq2gvdEug/mso2Q3TK16 6s21djw5wKCEm3eh8WSoDz+825K/r57m7pEDmJdTFlMbOAU13SjfNiRpxr3CtzbAf/yvUn6dSBt/X ybiRfqWXZkHpe8Ux/VUKUHEnUTwI5hIJGuQmPruEInhdEJ17JI/SmuAo726srdwmQh692ldu8Qiit hk0FLmGEqtqJAeRzjJaj3ZFPgkD4hmPM7x0E4OhuxoeOmnSWjiYaYWEn+502aPT9/S2wi6xInTzma d9F+eQ70nWHa2rJLN/dR2MMXN0b/U9y0U0zvc5zirdbD6bd3O+5YhyfMzsR+xL9di8+8AlaDLFH2Q 8vI/j4SB4yslNQ==; Date: Tue, 22 Jul 2025 14:22:06 +0300 Message-Id: <867c00bhcx.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?TMOhc3psw7MgVmFza8Oz?= <hello@HIDDEN>, Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <2c0b77a4-46d2-4019-812d-01c682c59a6e@HIDDEN> (message from =?utf-8?B?TMOhc3psw7MgVmFza8Oz?= on Sun, 20 Jul 2025 12:00:55 +0200) Subject: Re: bug#79059: 31.0.50; eshell-emit-prompt errors when front-sticky or rear-nonsticky properties are set to t References: <2c0b77a4-46d2-4019-812d-01c682c59a6e@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79059 Cc: 79059 <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: Sun, 20 Jul 2025 12:00:55 +0200 > From: László Vaskó <hello@HIDDEN> > > Hello, > > Since df288d2e414 (bug#74230) eshell is more careful adding text > properties to prompts using `eshell--append-text-property'. It's > implementation assumes that `get-text-property' will always return a > list. This is not true, as both `front-sticky' and `rear-nonsticky' > properties can be set to t. > > Repro: > > -- 8< -- > cat <<EOF > /tmp/init-eshell-propertized-prompt.el > ;; -*- lexical-binding: t; -*- > (setq eshell-prompt-function > (defun propertizing-prompt () > (setq eshell-prompt-string (propertize "test" 'rear-nonsticky t)))) > (eshell) > EOF > emacs -Q --batch --load /tmp/init-eshell-propertized-prompt.el > -- 8< -- > > Output: > > Loading eshell-alias... > Loading eshell-alias...done > Loading eshell-banner... > Loading eshell-banner...done > Loading eshell-basic... > Loading eshell-basic...done > Loading eshell-cmpl... > Loading eshell-cmpl...done > Loading eshell-extpipe... > Loading eshell-extpipe...done > Loading eshell-glob... > Loading eshell-glob...done > Loading eshell-hist... > Loading eshell-hist...done > Loading eshell-ls... > Loading eshell-ls...done > Loading eshell-pred... > Loading eshell-pred...done > Loading eshell-prompt... > Loading eshell-prompt...done > Loading eshell-script... > Loading eshell-script...done > Loading eshell-term... > Loading eshell-term...done > Loading eshell-unix... > Loading eshell-unix...done > > Error: wrong-type-argument (sequencep t) > eshell--append-text-property(0 4 rear-nonsticky (read-only font-lock-face field) #("test" 0 4 (front-sticky (read-only font-lock-face field) font-lock-face eshell-prompt read-only t field prompt rear-nonsticky t))) > eshell-emit-prompt() > run-hooks(eshell-post-command-hook) > eshell-mode() > eshell() > load-with-code-conversion("/tmp/init-eshell-propertized-prompt.el" "/tmp/init-eshell-propertized-prompt.el" nil t) > command-line-1(("--load" "/tmp/init-eshell-propertized-prompt.el")) > command-line() > normal-top-level() > > debug-early-backtrace...done > Wrong type argument: sequencep, t Thanks. Jim, could you please look into this?
bug-gnu-emacs@HIDDEN
:bug#79059
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 20 Jul 2025 10:50:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 20 06:50:29 2025 Received: from localhost ([127.0.0.1]:49065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1udRci-0003ZH-8K for submit <at> debbugs.gnu.org; Sun, 20 Jul 2025 06:50:28 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47056) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <hello@HIDDEN>) id 1udQrU-00006H-QF for submit <at> debbugs.gnu.org; Sun, 20 Jul 2025 06:01:42 -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 <hello@HIDDEN>) id 1udQrI-0005tL-Pz for bug-gnu-emacs@HIDDEN; Sun, 20 Jul 2025 06:01:29 -0400 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <hello@HIDDEN>) id 1udQrG-0004nA-NP for bug-gnu-emacs@HIDDEN; Sun, 20 Jul 2025 06:01:28 -0400 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id C3E45EC0038 for <bug-gnu-emacs@HIDDEN>; Sun, 20 Jul 2025 06:01:22 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-06.internal (MEProxy); Sun, 20 Jul 2025 06:01:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vlaci.email; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm1; t=1753005682; x=1753092082; bh=o4FC4lHbeV lv9zXQHknSb55yhbykJ6JNzZMv9DNrykU=; b=C4Yebl3P8DWMHKyM11XqyoYsW8 GoFPztOp9UAapahfFA3KUhV6aFv+DLBy04S0TZ20t62AKNoo81tqtws5MKVsJWJi lO3iACvgpAkm4pzRsW1vPMtiDUA1pMOhrGWDHfkEFQc6CHPhmEN4xmzEw13HCYWP c9AMaAzJ23dNwEf8UhWBLWaI7m06Q/iG04FSIuetcIJnYSodJjgfB1S61w1TxSiV ra9kyHShJI6DkScdeenLfPHOywij3ixvv2q06HFxMVEk6xbODPLeIBnQtWKpaQFr lgtHEzE1T/EDl0Eckxu5Vp8rh/xSagRyBAUva2HN/RjLPiH0uf5Tm6UIDcVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1753005682; x=1753092082; bh=o4FC4lHbeVlv9zXQHknSb55yhbykJ6JNzZM v9DNrykU=; b=icsbES6uYrv47DQ5T01n45VtoZDxIYvcU96j/tUOaNdg9WOy275 nAJfaiHH/mytxOfG0sTvtwm4z9DLEotO0DIcSmmzUvbMfvIX3L8zR94oK5rtC8l/ zfi4pu3+FG7/wm3rshwcl+f8x3mFcyoi4TKa1sV+DmAhAtlNyjdL+D9bPPEGdGvH +4bT4ck+CTEq8gmjf9JpSrygFWHJ5s6PQ9r/b1pFQfZL/WNwfZnDYDH373NAxEP1 awGcAK/Sta7cOKha+Igfauxxdr2L56E8gmqlg3np5A7j4X7mlkDeA+3x8WaeYJU2 jRREKr54QFqpY+qQvpUXwbGOpery6khMPPQ== X-ME-Sender: <xms:cr58aB_x8sj9-kBwx9QcZMpPLAFjkLQKvdEX1eoeW62WwzuTcDJd_Q> <xme:cr58aFugnEZuc3nFVsQE4PIalEE8fnH3M0eh_8xBn0Es5EE0Pri2_hbJ0RUCyCQcF HU6uZXGShlY6U4YIHk> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeikeeludcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepofggfffhvffkufgtgfesthhqredtredtje enucfhrhhomhepnfojshiilhpkucggrghskhpkuceohhgvlhhlohesvhhlrggtihdrvghm rghilheqnecuggftrfgrthhtvghrnhepieefveekveelgefhfefgvdejuedvieekleekle duueefieekuddvffevhfejffeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhephhgvlhhlohesvhhlrggtihdrvghmrghilhdpnhgspghrtghpth htohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsghughdqghhnuhdqvghm rggtshesghhnuhdrohhrgh X-ME-Proxy: <xmx:cr58aMbA3nEKjrGMPWPql3flJglIiDPDzdVbI3Oi5ykSp7x1MPm03A> <xmx:cr58aJZjtIN6QwAqoDfEyU_OMXGKzrCYI3X3cGbwx0rEwdfYeaTmbg> <xmx:cr58aAWsBHCtal5RTiWTFG0NkxSJOxr6LMFWhJWCDxxFTBturo1Bug> <xmx:cr58aI2xSnD9Ytme9w57bD8AwqHqnYg0yPtK3uOJjnyxH94YbAdXcw> <xmx:cr58aCmx0YDFOBmuYDAGirTlWK1oN9x7PwvyL_OPxz14R_IjvZKUn5tg> Feedback-ID: i7e51475a:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 704C6700068; Sun, 20 Jul 2025 06:01:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T856d89024711b5ca Date: Sun, 20 Jul 2025 12:00:55 +0200 From: =?UTF-8?Q?L=C3=A1szl=C3=B3_Vask=C3=B3?= <hello@HIDDEN> To: bug-gnu-emacs@HIDDEN Message-Id: <2c0b77a4-46d2-4019-812d-01c682c59a6e@HIDDEN> Subject: 31.0.50; eshell-emit-prompt errors when front-sticky or rear-nonsticky properties are set to t Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.144; envelope-from=hello@HIDDEN; helo=fout-a1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 20 Jul 2025 06:50:22 -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: -0.3 (/) Hello, Since df288d2e414 (bug#74230) eshell is more careful adding text properties to prompts using `eshell--append-text-property'. It's implementation assumes that `get-text-property' will always return a list. This is not true, as both `front-sticky' and `rear-nonsticky' properties can be set to t. Repro: -- 8< -- cat <<EOF > /tmp/init-eshell-propertized-prompt.el ;; -*- lexical-binding: t; -*- (setq eshell-prompt-function=20 (defun propertizing-prompt () (setq eshell-prompt-string (propertize "test" 'rear-nonsticky t)= ))) (eshell) =20 EOF =20 emacs -Q --batch --load /tmp/init-eshell-propertized-prompt.el -- 8< -- Output: Loading eshell-alias... Loading eshell-alias...done Loading eshell-banner... Loading eshell-banner...done Loading eshell-basic... Loading eshell-basic...done Loading eshell-cmpl... Loading eshell-cmpl...done Loading eshell-extpipe... Loading eshell-extpipe...done Loading eshell-glob... Loading eshell-glob...done Loading eshell-hist... Loading eshell-hist...done Loading eshell-ls... Loading eshell-ls...done Loading eshell-pred... Loading eshell-pred...done Loading eshell-prompt... Loading eshell-prompt...done Loading eshell-script... Loading eshell-script...done Loading eshell-term... Loading eshell-term...done Loading eshell-unix... Loading eshell-unix...done Error: wrong-type-argument (sequencep t) eshell--append-text-property(0 4 rear-nonsticky (read-only font-lo= ck-face field) #("test" 0 4 (front-sticky (read-only font-lock-face fiel= d) font-lock-face eshell-prompt read-only t field prompt rear-nonsticky = t))) eshell-emit-prompt() run-hooks(eshell-post-command-hook) eshell-mode() eshell() load-with-code-conversion("/tmp/init-eshell-propertized-prompt.el"= "/tmp/init-eshell-propertized-prompt.el" nil t) command-line-1(("--load" "/tmp/init-eshell-propertized-prompt.el")) command-line() normal-top-level() debug-early-backtrace...done Wrong type argument: sequencep, t In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) Repository revision: 382123e69e2c0cae39e44f9b72ca3674eaec2ad1 Repository branch: master System Description: NixOS 25.11 (Xantusia) Configured using: 'configure --prefix=3D/nix/store/463a7h9nwlk9yzni8s1cb7dhvi8k2dd0-emacs-igc-pgtk-20= 250716.0 --disable-build-details --with-modules --with-pgtk --with-compress-install --with-toolkit-scroll-bars --with-native-compilation --without-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --without-xinput2 --without-xwidgets --with-dbus --with-selinux --with-mps=3Dyes' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBSYSTEMD LIBXML2 MODULES MPS NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: hu_HU.UTF-8 locale-coding-system: utf-8-unix Major mode: Eshell Minor modes in effect: eshell-prompt-mode: t eshell-pred-mode: t eshell-hist-mode: t eshell-cmpl-mode: t eshell-proc-mode: t eshell-arg-mode: t tooltip-mode: t global-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 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 lisp-mnt message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils compile comp-run comp-common em-unix em-term term disp-table shell ehelp em-script em-prompt text-property-search em-pred em-ls em-hist em-glob rx em-extpipe em-cmpl em-dirs em-basic em-banner em-alias esh-mode esh-var eshell esh-cmd generator cl-loaddefs cl-lib esh-ext esh-proc esh-opt esh-io byte-opt gv bytecomp byte-compile esh-arg pcomplete comint subr-x ansi-osc ansi-color ring esh-module esh-module-loaddefs esh-util files-x rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd 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 dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty move-toolbar make-network-process tty-child-frames native-compile mps emacs) Memory information: ((conses 24 0 0) (symbols 56 0 0) (strings 40 0 0) (string-bytes 1 0) (vectors 24 0) (vector-slots 8 0 0) (floats 24 0 0) (intervals 64 0 0) (buffers 1072 0)) -- L=C3=A1szl=C3=B3 Vask=C3=B3
László Vaskó <hello@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#79059
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.