GNU logs - #78904, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78904: 30.1; in a long directory pathname, "Cannot write backup file" is output with a spurious blank line
Resent-From: Vincent Lefevre <vincent@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Jun 2025 08:47:02 +0000
Resent-Message-ID: <handler.78904.B.17509275659825 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 78904
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 78904 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17509275659825
          (code B ref -1); Thu, 26 Jun 2025 08:47:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Jun 2025 08:46:05 +0000
Received: from localhost ([127.0.0.1]:48492 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uUiFB-0002YN-2P
	for submit <at> debbugs.gnu.org; Thu, 26 Jun 2025 04:46:05 -0400
Received: from lists.gnu.org ([2001:470:142::17]:40976)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <vincent@HIDDEN>)
 id 1uUiF8-0002Xf-Tb
 for submit <at> debbugs.gnu.org; Thu, 26 Jun 2025 04:46:03 -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 <vincent@HIDDEN>)
 id 1uUiF1-0001mj-EW
 for bug-gnu-emacs@HIDDEN; Thu, 26 Jun 2025 04:45:56 -0400
Received: from joooj.vinc17.net ([2001:4b99:1:3:216:3eff:fe20:ac98])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vincent@HIDDEN>)
 id 1uUiEv-0004mx-HH
 for bug-gnu-emacs@HIDDEN; Thu, 26 Jun 2025 04:45:55 -0400
Received: from smtp-qaa.vinc17.net
 (2a02-8428-1b1d-4d01-96a9-491d-7b48-ba31.rev.sfr.net
 [IPv6:2a02:8428:1b1d:4d01:96a9:491d:7b48:ba31])
 by joooj.vinc17.net (Postfix) with ESMTPSA id 4E877176;
 Thu, 26 Jun 2025 10:45:44 +0200 (CEST)
Received: by qaa.vinc17.org (Postfix, from userid 1000)
 id 20076CA044B; Thu, 26 Jun 2025 10:45:43 +0200 (CEST)
From: Vincent Lefevre <vincent@HIDDEN>
Date: Thu, 26 Jun 2025 10:45:42 +0200
Message-ID: <87y0te28nd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2001:4b99:1:3:216:3eff:fe20:ac98;
 envelope-from=vincent@HIDDEN; helo=joooj.vinc17.net
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
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: -1.0 (-)


1. mkdir a-very-very-very-very-very-very-long-directory-pathname
2. cd a-very-very-very-very-very-very-long-directory-pathname
3. touch foo
4. emacs -Q --eval '(defun find-backup-file-name (fn) (list "/"))' foo
5. Modify the buffer.
6. Save with C-x C-s

The following is output:

Cannot write backup file; backing up in ~/.emacs.d/%backup%~

but with a spurious blank line below, i.e. the echo area takes 2 lines
instead of a single one.

Note: it seems that what matters is the length of the absolute
directory pathname. In my case, this is

  /home/vinc17/a-very-very-very-very-very-very-long-directory-pathname

This occurs whether Emacs uses its own interface or runs in a terminal.


In GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49,
 cairo version 1.18.4) of 2025-03-30, modified by Debian built on sbuild
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/30.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/30.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --build
 x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/libexec --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-libsystemd
 --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/30.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/30.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --with-cairo
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -Werror=implicit-function-declaration
 -ffile-prefix-map=/build/reproducible-path/emacs-30.1+1=.
 -fstack-protector-strong -fstack-clash-protection -Wformat
 -Werror=format-security -fcf-protection -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

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_COLLATE: POSIX
  value of $LC_CTYPE: C.UTF-8
  value of $LC_TIME: en_DK.utf8
  value of $LANG: C.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  display-time-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/usr/share/emacs/site-lisp/llvm-13/llvm-mode hides /usr/share/emacs/site-lisp/llvm-14/llvm-mode
/usr/share/emacs/site-lisp/llvm-13/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-14/tablegen-mode
/usr/share/emacs/site-lisp/llvm-13/emacs hides /usr/share/emacs/site-lisp/llvm-14/emacs
/usr/share/emacs/site-lisp/llvm-13/llvm-mode hides /usr/share/emacs/site-lisp/llvm-15/llvm-mode
/usr/share/emacs/site-lisp/llvm-13/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-15/tablegen-mode
/usr/share/emacs/site-lisp/llvm-13/emacs hides /usr/share/emacs/site-lisp/llvm-15/emacs
/usr/share/emacs/site-lisp/llvm-13/llvm-mode hides /usr/share/emacs/site-lisp/llvm-16/llvm-mode
/usr/share/emacs/site-lisp/llvm-13/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-16/tablegen-mode
/usr/share/emacs/site-lisp/llvm-13/emacs hides /usr/share/emacs/site-lisp/llvm-16/emacs
/usr/share/emacs/site-lisp/llvm-13/llvm-mode hides /usr/share/emacs/site-lisp/llvm-17/llvm-mode
/usr/share/emacs/site-lisp/llvm-13/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-17/tablegen-mode
/usr/share/emacs/site-lisp/llvm-13/emacs hides /usr/share/emacs/site-lisp/llvm-17/emacs
/usr/share/emacs/site-lisp/llvm-13/llvm-mode hides /usr/share/emacs/site-lisp/llvm-18/llvm-mode
/usr/share/emacs/site-lisp/llvm-13/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-18/tablegen-mode
/usr/share/emacs/site-lisp/llvm-13/emacs hides /usr/share/emacs/site-lisp/llvm-18/emacs
/usr/share/emacs/site-lisp/llvm-13/llvm-mode hides /usr/share/emacs/site-lisp/llvm-19/llvm-mode
/usr/share/emacs/site-lisp/llvm-13/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-19/tablegen-mode
/usr/share/emacs/site-lisp/llvm-13/emacs hides /usr/share/emacs/site-lisp/llvm-19/emacs
/usr/share/emacs/site-lisp/elpa/po-mode-0.23.1/po-mode-autoloads hides /usr/share/emacs/site-lisp/elpa-src/po-mode-0.23.1/po-mode-autoloads
/usr/share/emacs/site-lisp/elpa/po-mode-0.23.1/po-mode hides /usr/share/emacs/site-lisp/elpa-src/po-mode-0.23.1/po-mode
/usr/share/emacs/site-lisp/elpa/po-mode-0.23.1/po-mode-pkg hides /usr/share/emacs/site-lisp/elpa-src/po-mode-0.23.1/po-mode-pkg
/usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/30.1/lisp/net/sasl
/usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/30.1/lisp/language/thai-word

Features:
(shadow sort mail-extr cl-extra help-mode warnings compile comint
ansi-osc ansi-color ring comp-run comp-common rx emacsbug message
yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg
rfc6068 epg-config gnus-util text-property-search 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
cus-start time cc-styles cc-align cc-engine cc-vars cc-defs w3m-load
mmm-auto mmm-vars mmm-utils mmm-compat cus-edit pp cus-load wid-edit
po-mode-autoloads package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt
gv bytecomp byte-compile url-vars 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 153724 11952) (symbols 48 11962 0) (strings 32 37588 3766)
 (string-bytes 1 1225292) (vectors 16 19566)
 (vector-slots 8 481647 76139) (floats 8 52 6) (intervals 56 370 0)
 (buffers 992 12))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Vincent Lefevre <vincent@HIDDEN>
Subject: bug#78904: Acknowledgement (30.1; in a long directory pathname,
 "Cannot write backup file" is output with a spurious blank line)
Message-ID: <handler.78904.B.17509275659825.ack <at> debbugs.gnu.org>
References: <87y0te28nd.fsf@HIDDEN>
X-Gnu-PR-Message: ack 78904
X-Gnu-PR-Package: emacs
Reply-To: 78904 <at> debbugs.gnu.org
Date: Thu, 26 Jun 2025 08:47:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 78904 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
78904: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78904
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78904: 30.1; in a long directory pathname, "Cannot write backup file" is output with a spurious blank line
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Jun 2025 09:23:01 +0000
Resent-Message-ID: <handler.78904.B78904.175092974416129 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78904
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Vincent Lefevre <vincent@HIDDEN>
Cc: 78904 <at> debbugs.gnu.org
Received: via spool by 78904-submit <at> debbugs.gnu.org id=B78904.175092974416129
          (code B ref 78904); Thu, 26 Jun 2025 09:23:01 +0000
Received: (at 78904) by debbugs.gnu.org; 26 Jun 2025 09:22:24 +0000
Received: from localhost ([127.0.0.1]:48569 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uUioJ-0004C4-92
	for submit <at> debbugs.gnu.org; Thu, 26 Jun 2025 05:22:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44898)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
 id 1uUioG-0004Bn-Cx; Thu, 26 Jun 2025 05:22:21 -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 1uUioA-00032G-Ge; Thu, 26 Jun 2025 05:22:14 -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=vRMPrdIZAVHLuzSwfzgJ0fr+SmuPsfeI55exwgDUm2A=; b=Bj0UlXNHS0CT
 8bCtQsKFP0AVjR114pI86SRFvyy1G8COi7B7OQPU9QW0WfDimkSzLXTh0eFcqCxsbkFbtNEis1ZsI
 0N5OVk7RDToyo4yEuALkNluWTp9jli769jQe1e0b8zvqsKfjYcG/RKcMXxvPXmnadIpd0F0qrki3f
 SWEHVG7ltQ6uFPytdGtygj1y8GHSju9FAGvcBYI/wuo0SK0H+yH2rqwD7MaPchSKP67fhUmwSgSAH
 yqyce9CQ5jEC6RAbJzLuWp1rjIouvLwn2vtXZ1M9zjHI0Y278le0KCQj28GBr5lff/sik4sxmQpOK
 LRE9Wgb209i6tPVhh15NdQ==;
Date: Thu, 26 Jun 2025 12:22:11 +0300
Message-Id: <868qledfi4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87y0te28nd.fsf@HIDDEN> (message from Vincent Lefevre on
 Thu, 26 Jun 2025 10:45:42 +0200)
References: <87y0te28nd.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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 (---)

tags 78904 notabug
thanks

> From: Vincent Lefevre <vincent@HIDDEN>
> Date: Thu, 26 Jun 2025 10:45:42 +0200
> 
> 
> 1. mkdir a-very-very-very-very-very-very-long-directory-pathname
> 2. cd a-very-very-very-very-very-very-long-directory-pathname
> 3. touch foo
> 4. emacs -Q --eval '(defun find-backup-file-name (fn) (list "/"))' foo
> 5. Modify the buffer.
> 6. Save with C-x C-s
> 
> The following is output:
> 
> Cannot write backup file; backing up in ~/.emacs.d/%backup%~
> 
> but with a spurious blank line below, i.e. the echo area takes 2 lines
> instead of a single one.

If you switch to the *Messages* buffer, do you see there a message
like this:

  Saving file /home/vinc17/a-very-very-very-very-very-very-long-directory-pathname

?  If so, this is the long message, shown before the "Cannot write
backup file", and it causes the mini-window to resize to 2 screen
lines instead of just 1.  This resize remains in effect for the
following echo-area messages, to avoid the annoying back-and-forth
jumps of the mode line.  If you don't like this behavior, customize
the option resize-mini-windows to the value t (and see its doc string
for more details about this feature).

This behavior is intended, not a bug.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 26 Jun 2025 09:22:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 26 05:22:27 2025
Received: from localhost ([127.0.0.1]:48571 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uUioJ-0004CB-SI
	for submit <at> debbugs.gnu.org; Thu, 26 Jun 2025 05:22:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44898)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
 id 1uUioG-0004Bn-Cx; Thu, 26 Jun 2025 05:22:21 -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 1uUioA-00032G-Ge; Thu, 26 Jun 2025 05:22:14 -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=vRMPrdIZAVHLuzSwfzgJ0fr+SmuPsfeI55exwgDUm2A=; b=Bj0UlXNHS0CT
 8bCtQsKFP0AVjR114pI86SRFvyy1G8COi7B7OQPU9QW0WfDimkSzLXTh0eFcqCxsbkFbtNEis1ZsI
 0N5OVk7RDToyo4yEuALkNluWTp9jli769jQe1e0b8zvqsKfjYcG/RKcMXxvPXmnadIpd0F0qrki3f
 SWEHVG7ltQ6uFPytdGtygj1y8GHSju9FAGvcBYI/wuo0SK0H+yH2rqwD7MaPchSKP67fhUmwSgSAH
 yqyce9CQ5jEC6RAbJzLuWp1rjIouvLwn2vtXZ1M9zjHI0Y278le0KCQj28GBr5lff/sik4sxmQpOK
 LRE9Wgb209i6tPVhh15NdQ==;
Date: Thu, 26 Jun 2025 12:22:11 +0300
Message-Id: <868qledfi4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vincent Lefevre <vincent@HIDDEN>
In-Reply-To: <87y0te28nd.fsf@HIDDEN> (message from Vincent Lefevre on
 Thu, 26 Jun 2025 10:45:42 +0200)
Subject: Re: bug#78904: 30.1;
 in a long directory pathname, "Cannot write backup file" is output
 with a spurious blank line
References: <87y0te28nd.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
Cc: 78904 <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 (---)

tags 78904 notabug
thanks

> From: Vincent Lefevre <vincent@HIDDEN>
> Date: Thu, 26 Jun 2025 10:45:42 +0200
> 
> 
> 1. mkdir a-very-very-very-very-very-very-long-directory-pathname
> 2. cd a-very-very-very-very-very-very-long-directory-pathname
> 3. touch foo
> 4. emacs -Q --eval '(defun find-backup-file-name (fn) (list "/"))' foo
> 5. Modify the buffer.
> 6. Save with C-x C-s
> 
> The following is output:
> 
> Cannot write backup file; backing up in ~/.emacs.d/%backup%~
> 
> but with a spurious blank line below, i.e. the echo area takes 2 lines
> instead of a single one.

If you switch to the *Messages* buffer, do you see there a message
like this:

  Saving file /home/vinc17/a-very-very-very-very-very-very-long-directory-pathname

?  If so, this is the long message, shown before the "Cannot write
backup file", and it causes the mini-window to resize to 2 screen
lines instead of just 1.  This resize remains in effect for the
following echo-area messages, to avoid the annoying back-and-forth
jumps of the mode line.  If you don't like this behavior, customize
the option resize-mini-windows to the value t (and see its doc string
for more details about this feature).

This behavior is intended, not a bug.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78904: 30.1; in a long directory pathname, "Cannot write backup file" is output with a spurious blank line
Resent-From: Vincent Lefevre <vincent@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Jun 2025 09:31:01 +0000
Resent-Message-ID: <handler.78904.B78904.175093024324495 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78904
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: notabug
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 78904 <at> debbugs.gnu.org
Received: via spool by 78904-submit <at> debbugs.gnu.org id=B78904.175093024324495
          (code B ref 78904); Thu, 26 Jun 2025 09:31:01 +0000
Received: (at 78904) by debbugs.gnu.org; 26 Jun 2025 09:30:43 +0000
Received: from localhost ([127.0.0.1]:48601 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uUiwM-0006MO-Gr
	for submit <at> debbugs.gnu.org; Thu, 26 Jun 2025 05:30:42 -0400
Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:50808)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <vincent@HIDDEN>)
 id 1uUiwI-00060F-UB
 for 78904 <at> debbugs.gnu.org; Thu, 26 Jun 2025 05:30:39 -0400
Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.98.2)
 (envelope-from <vincent@HIDDEN>) id 1uUiwC-00000000pnF-24YV;
 Thu, 26 Jun 2025 11:30:32 +0200
Date: Thu, 26 Jun 2025 11:30:32 +0200
From: Vincent Lefevre <vincent@HIDDEN>
Message-ID: <20250626093032.GC2472@HIDDEN>
References: <87y0te28nd.fsf@HIDDEN>
 <868qledfi4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <868qledfi4.fsf@HIDDEN>
X-Mailer-Info: https://www.vinc17.net/mutt/
User-Agent: Mutt/2.2.13+86 (bb2064ae) vl-169878 (2025-02-08)
X-Spam-Score: 0.0 (/)
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: -1.0 (-)

On 2025-06-26 12:22:11 +0300, Eli Zaretskii wrote:
> If you switch to the *Messages* buffer, do you see there a message
> like this:
> 
>   Saving file /home/vinc17/a-very-very-very-very-very-very-long-directory-pathname
> 
> ?

I'm wondering whether this is useful as it is not visible:
immediately overwritten by "Cannot write backup file...".

> If so, this is the long message, shown before the "Cannot write
> backup file", and it causes the mini-window to resize to 2 screen
> lines instead of just 1.  This resize remains in effect for the
> following echo-area messages, to avoid the annoying back-and-forth
> jumps of the mode line.

OK, but this is not what I observe: it reduces to just 1 line for

Wrote /home/vinc17/a-very-very-very-very-very-very-long-directory-pathname/foo

So this seems inconsistent.

-- 
Vincent Lefèvre <vincent@HIDDEN> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)





Last modified: Thu, 26 Jun 2025 09:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.