From unknown Fri Jun 20 07:12:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53398 <53398@debbugs.gnu.org> To: bug#53398 <53398@debbugs.gnu.org> Subject: Status: 29.0.50; narrow-to-region induces buffer recentering Reply-To: bug#53398 <53398@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:12:03 +0000 retitle 53398 29.0.50; narrow-to-region induces buffer recentering reassign 53398 emacs submitter 53398 Jose A Ortega Ruiz severity 53398 normal tag 53398 wontfix moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 15:59:34 2022 Received: (at submit) by debbugs.gnu.org; 20 Jan 2022 20:59:34 +0000 Received: from localhost ([127.0.0.1]:59325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAeWr-00007r-Dh for submit@debbugs.gnu.org; Thu, 20 Jan 2022 15:59:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:56794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAeWo-00007j-QI for submit@debbugs.gnu.org; Thu, 20 Jan 2022 15:59:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAeWo-0001Sh-Fu for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 15:59:30 -0500 Received: from [2001:470:142:3::e] (port=51948 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAeWn-000543-JS; Thu, 20 Jan 2022 15:59:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=ZzBtnyQEeF8da6qRO8m/CC2s0e8xnNBc441oPii6MiE=; b=oDDr7rmutC++a3 Dh7GnnhVsvp8vVchJ9JAq3KiepEnIDRAh0oSKNI7J6cg3UZBDl7d5YgdOpzRCwBk67Vm9j+MSmxbs pvGlwdP/a0gegfiGQy1rztc6vYZbyeXokp4kfBPvEMjBz/xo1Y6pvbyonRfOv/V8b2sGIizUPhR53 iEAZVWZawHstSwFXr+cYpD8KfnTwP+NaWLK/vkluWIB1WTgLSngq3wxgRUTF5uGrER7oI7MsXqlIa rNU6TJ8rS56xpVcPSEiHweU/VeSdFsIFNHfFVUstQFyYzQa6ayH58qqOdvRzcApgpbuOG6T60jtLQ Qtul7a639CgskO+zKU9A==; Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:50308 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAeWn-0007YA-DF; Thu, 20 Jan 2022 15:59:30 -0500 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 1a46443b; Thu, 20 Jan 2022 20:59:25 +0000 (UTC) From: Jose A Ortega Ruiz To: bug-gnu-emacs@gnu.org Subject: 29.0.50; narrow-to-region induces buffer recentering X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Thu, 20 Jan 2022 20:59:25 +0000 Message-ID: <87tudy9l8y.fsf@gnus.jao.io> MIME-Version: 1.0 Content-Type: text/plain 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, I've observed this behaviour in both emacs 28 and 29 when using message-mode's message-kill-to-signature: - start composing a message, e.g. a reply, so that the current window shows only a portion of the buffer, and not the signature - with point somewhere on the lower half of the window, C-c C-z (message-kill-to-signature) - the text from point to signature is deleted alright, but the buffer contents is recentered, as if one had invoked recenter /twice/, so the window gets scrolled up. previous behaviour was that the window wouldn't scroll at all, one would just see the contents of the buffer below point change (and show the signature). The body of message-kill-to-signature is simple, and i've observed that if one comments out the narrow-to-region invocation marked below, the effect disappears: (defun message-kill-to-signature (&optional arg) "Kill all text up to the signature. If a numeric argument or prefix arg is given, leave that number of lines before the signature intact." (interactive "P" message-mode) (save-excursion (save-restriction (let ((point (point))) (narrow-to-region point (point-max)) ;;;;;; <------------------------ (message-goto-signature) (unless (eobp) (if (and arg (numberp arg)) (forward-line (- -1 arg)) (end-of-line -1))) (unless (= point (point)) (kill-region point (point)) (unless (bolp) (insert "\n"))))))) so i am (wild) guessing that the spurious recenter might be related with save-restriction workings in combination with narrow, but i don't really know what i'm talking about :) The only variable related to scroll i can see changed from its default value in my config is scroll-preserve-screen-position, which i set to 'always, but changing its value doesn't affect the behaviour above in any way. Thanks, jao In GNU Emacs 29.0.50 (build 10, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2022-01-20 built on rivendell Repository revision: 172c055745b1eb32def7be8ddcaae975996a789f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --prefix=/usr/local/stow/emacs --with-x-toolkit=no --with-imagemagick' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-git-commit-mode: t magit-auto-revert-mode: t semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode) S))) circe-lagmon-mode: t telega-root-auto-fill-mode: t telega-active-locations-mode: t telega-patrons-mode: t telega-mode-line-mode: t global-diff-hl-mode: t eshell-syntax-highlighting-global-mode: t pdf-occur-global-minor-mode: t shell-dirtrack-mode: t winner-mode: t global-auto-revert-mode: t corfu-global-mode: t corfu-mode: t marginalia-mode: t vertico-mode: t persistent-scratch-autosave-mode: t global-so-long-mode: t display-battery-mode: t minibuffer-electric-default-mode: t minibuffer-depth-indicate-mode: t repeat-mode: t savehist-mode: t recentf-mode: t save-place-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t Load-path shadows: /home/jao/lib/elisp/org-static-blog/org-static-blog hides /home/jao/.emacs.d/elpa.29/org-static-blog-20220110.739/org-static-blog /home/jao/etc/emacs/site/custom hides /usr/local/stow/emacs/share/emacs/29.0.50/lisp/custom /home/jao/.emacs.d/elpa.29/transient-20220117.1122/transient hides /usr/local/stow/emacs/share/emacs/29.0.50/lisp/transient Features: (shadow sort mailalias bbdb-message mail-extr quail vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml bug-reference forge-post forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit log-edit add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor magit-mode magit-git magit-section magit-utils pulse cl-print misearch multi-isearch bash-completion em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-cmpl em-basic em-banner goto-chg multisession sqlite tramp-cmds executable copyright shortdoc shr-color url-file url-dired url-http url-gw url-cache url-auth vertico-directory textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check org-duration org-agenda cal-iso cal-move mule-util emojify apropos tar-mode arc-mode archive-mode ht network-stream circe-display-images circe-lagmon lui-track circe lui-irc-colors irc lcs lui-logging lui-format circe-compat slack slack-company slack-unread slack-websocket slack-thread-event slack-room-event slack-star-event slack-reaction-event slack-reply-event slack-typing slack-slash-commands slack-message-event slack-event slack-dialog-edit-element-buffer slack-dialog-buffer slack-dialog slack-stars-buffer slack-search-result-buffer slack-thread-message-compose-buffer slack-file-list-buffer slack-file-info-buffer slack-all-threads-buffer slack-message-buffer slack-user-profile-buffer slack-pinned-items-buffer slack-pinned-item slack-thread-message-buffer slack-room-info-buffer slack-room-buffer slack-message-share-buffer slack-message-edit-buffer slack-room-message-compose-buffer slack-message-compose-buffer slack-message-attachment-preview-buffer slack-action slack-star slack-reminder slack-search slack-message-reaction slack-message-editor slack-message-sender slack-message-notification slack-buffer slack-message-formatter slack-thread slack-im slack-channel slack-group slack-conversations slack-create-message slack-attachment slack-selectable slack-bot-message slack-user-message slack-file slack-message slack-message-faces slack-unescape slack-block slack-mrkdwn slack-usergroup slack-reaction slack-modeline slack-room slack-counts slack-user slack-bot slack-dnd-status slack-emoji slack-image slack-request slack-log request lui flyspell ispell slack-team slack-team-ws slack-util websocket exwm-systemtray xcb-systemtray xcb-xembed exwm-edit exwm exwm-input xcb-keysyms xcb-xkb exwm-manage exwm-floating xcb-cursor xcb-render exwm-layout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types xcb-debug paredit display-fill-column-indicator smartscan org-appear cdlatex texmathp image-file image-converter bigml bml-logs bml bml-misc bml-whizzml bml-clojure bml-clj-tests bml-python bml-skels bml-utils whizzml-skeletons skeleton whizzml-mode lice sieve sieve-mode sieve-manage sasl sasl-anonymous sasl-login sasl-plain jao-mpc jao-random-album jao-lyrics jao-spt jao-mpris consult-spotify espotify telega-obsolete telega telega-tdlib-events telega-webpage visual-fill-column telega-root telega-info telega-chat telega-modes telega-company telega-user telega-notifications telega-voip telega-msg telega-tme telega-sticker telega-i18n telega-vvnote bindat telega-ffplay telega-media telega-sort telega-filter telega-ins telega-folders telega-inline telega-tdlib telega-util rainbow-identifiers dired-aux telega-server telega-core cursor-sensor telega-customize emacsbug sendmail jao-mullvad bluetooth json-mode json-snatcher js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs virtualenvwrapper gud ediprolog haskell-doc inf-haskell haskell-decl-scan haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-navigate-imports haskell-repl haskell-svg haskell-collapse hideshow haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-compile haskell-hoogle haskell-process haskell-session haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-complete-module haskell-ghc-support flymake-proc flymake warnings dabbrev haskell-customize pie geiser-guile info-look geiser-repl geiser-compile geiser-debug geiser-image geiser-company geiser-doc geiser-menu geiser-edit etags fileloop xref project geiser-completion geiser-autodoc geiser-eval geiser-connection geiser-syntax scheme geiser-impl help-fns radix-tree geiser-log geiser-popup view geiser-custom geiser-base geiser package-lint finder lisp-mnt edit-list git-modes gitignore-mode gitconfig-mode conf-mode gitattributes-mode git-link git-timemachine diff-hl log-view pcvs-util vc-dir ewoc vc jao-eshell-here eshell-autojump em-dirs esh-var eshell-up git-ps1-mode em-term eshell-syntax-highlighting em-alias vterm face-remap term disp-table ehelp vterm-module term/xterm xterm saveplace-pdf-view pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc consult-notmuch org-capture org-refile jao-notmuch notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj notmuch-query goto-addr icalendar notmuch-tag notmuch-lib notmuch-version notmuch-compat pcase hl-line bbdb-anniv bbdb-com crm bbdb bbdb-site timezone randomsig socks gnutls nsm elpher jao-eww-session markdown-toc dash s markdown-mode htmlize jao-org-links jao-maildir jao-doc-view let-alist pdf-tools pdf-view pdf-cache pdf-info tq pdf-util pdf-macs ol-eshell esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util jao-org-notes ob-shell ob-scheme ob-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell ls-lisp ob-org ob-ocaml ob-makefile ob-haskell ob-gnuplot ob-clojure ob-calc calc-store calc-trail calc-ext calc calc-loaddefs rect calc-macs ob-prolog prolog smie align org-tempo tempo ox-texinfo ox-latex ox-html table ox-ascii ox-publish ox org-fragtog jao-afio winner autorevert filenotify autoinsert embark-consult embark ffap consult-recoll jao-compilation consult-vertico consult bookmark corfu marginalia mct vertico orderless imenu find-dired dired-x wgrep grep compile persistent-scratch so-long cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs jao-tracking tracking shorten jao-notify alert log4e notifications gntp battery time jao-minibuffer minibuf-eldef mb-depth jao-recoll diminish jao-light-theme jao-themes pinentry epa-file transient cus-edit pp cus-load repeat edmacro kmacro jao-sleep server savehist recentf tree-widget saveplace gnu-elpa-keyring-update use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core vc-git diff-mode vc-dispatcher org-element avl-tree generator ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr pixel-fill kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message yank-media rmc puny rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search mail-utils range mm-util mail-prsvr ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi poly-org polymode derived poly-lock polymode-base polymode-weave polymode-export polymode-compat polymode-methods polymode-core polymode-classes eieio-custom wid-edit eieio-base color cl-extra help-mode org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date ol org-keys oc org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs finder-inf tex-site rx info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button 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 x multi-tty make-network-process emacs) Memory information: ((conses 16 2087812 408191) (symbols 48 96469 59) (strings 32 520835 48015) (string-bytes 1 15883545) (vectors 16 231351) (vector-slots 8 6850024 212937) (floats 8 11233 1944) (intervals 56 114191 23112) (buffers 992 88)) -- He who joyfully marches to music in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would suffice. -Albert Einstein From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 02:08:02 2022 Received: (at 53398) by debbugs.gnu.org; 21 Jan 2022 07:08:02 +0000 Received: from localhost ([127.0.0.1]:60064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAo1h-0001p6-L3 for submit@debbugs.gnu.org; Fri, 21 Jan 2022 02:08:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAo1e-0001oh-Vq for 53398@debbugs.gnu.org; Fri, 21 Jan 2022 02:07:59 -0500 Received: from [2001:470:142:3::e] (port=34864 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAo1Z-00044k-0d; Fri, 21 Jan 2022 02:07:53 -0500 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=IbaZcFVRnl4ZdDx1lKyFGw/H0jwFPiQ8gdwmP98W72s=; b=SViJFTHBhIzS RWsSybk+QseCBY0e1P0L3dVhUr/omtcMmKKluyY4OE77rMU+TE/hzwUnKKfxh+ZJCyjuAUA3zgvZV tXedOrEgnXC/laEuA7De8ppnrfGTeE8vSycbvDAY6VG6RwupTI75CguyfkB9C25zZ3dNz/hPSLTsW cU+55VhWKXNEQHiVDiuc5/t3BXvuii73pzyUBwuU5v7qH02ARC85S32zwGyPoSr7OEgSMHgk3NWKW D+HaOLbDbRQuMsTN7Di57b864JanuTkeesOjYGDUSoSOXKXfqg/0gfkFvXH+4XfdmktARjSJUGKpt x7bnDyyvvawv0rD3GOJ3yA==; Received: from [87.69.77.57] (port=2213 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAo1X-0005ni-6L; Fri, 21 Jan 2022 02:07:52 -0500 Date: Fri, 21 Jan 2022 09:07:52 +0200 Message-Id: <83fsphpnw7.fsf@gnu.org> From: Eli Zaretskii To: Jose A Ortega Ruiz In-Reply-To: <87tudy9l8y.fsf@gnus.jao.io> (message from Jose A Ortega Ruiz on Thu, 20 Jan 2022 20:59:25 +0000) Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering References: <87tudy9l8y.fsf@gnus.jao.io> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: 53398@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: -3.3 (---) > From: Jose A Ortega Ruiz > Date: Thu, 20 Jan 2022 20:59:25 +0000 > > (defun message-kill-to-signature (&optional arg) > "Kill all text up to the signature. > If a numeric argument or prefix arg is given, leave that number > of lines before the signature intact." > (interactive "P" message-mode) > (save-excursion > (save-restriction > (let ((point (point))) > (narrow-to-region point (point-max)) ;;;;;; <------------------------ > (message-goto-signature) > (unless (eobp) > (if (and arg (numberp arg)) > (forward-line (- -1 arg)) > (end-of-line -1))) > (unless (= point (point)) > (kill-region point (point)) > (unless (bolp) > (insert "\n"))))))) > > so i am (wild) guessing that the spurious recenter might be related with > save-restriction workings in combination with narrow, but i don't really > know what i'm talking about :) Any chance of having a reproduction recipe that is simpler and preferably doesn't include message.el at all? IOW, if your guess is correct, and the problem is inside narrow-to-region, we shouldn't need this elaborate setup to show the issue, right? Can you show such a recipe? Also, you say "previous behavior was", but when did you see that previous behavior and in what Emacs version? > The only variable related to scroll i can see changed from its default > value in my config is scroll-preserve-screen-position, which i set to > 'always, but changing its value doesn't affect the behaviour above in > any way. So you are saying that this recentering doesn't happen in "emacs -Q", even if you do invoke that Message mode command? If so, please try to find which of your customizations do affect it. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 05:08:32 2022 Received: (at 53398) by debbugs.gnu.org; 21 Jan 2022 10:08:32 +0000 Received: from localhost ([127.0.0.1]:60236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAqqN-0002bK-Pl for submit@debbugs.gnu.org; Fri, 21 Jan 2022 05:08:32 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAqqM-0002b3-D2 for 53398@debbugs.gnu.org; Fri, 21 Jan 2022 05:08:31 -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=HpeC/D/ebp+a446su/1ANtgEoWc7NMZORbGDDb/RSIw=; b=F5mxwizEKN5t1mP8VU8nkuTRkf Mi8izFuRNwAOzT/OwzHFETpLWvW7AwJnmE+dOC09wDVRc67KVd2nsNJ1eKJp9NLf79u/2l8EAUTmr dXEraSm1lGD1lbnnun+0iuYDBNxXKY2IfKIkRTON0L105sh0yJaDAg4l5jHd5tMbc/LE=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAqqD-00007z-6D; Fri, 21 Jan 2022 11:08:23 +0100 From: Lars Ingebrigtsen To: Jose A Ortega Ruiz Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering References: <87tudy9l8y.fsf@gnus.jao.io> X-Now-Playing: Brian Auger & Julie Driscoll's _Open_: "This Wheel's On Fire" Date: Fri, 21 Jan 2022 11:08:20 +0100 In-Reply-To: <87tudy9l8y.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Thu, 20 Jan 2022 20:59:25 +0000") Message-ID: <87fsphv1t7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Jose A Ortega Ruiz writes: > - start composing a message, e.g. a reply, so that the current window > shows only a portion of the buffer, and not the signature > > - with point somewhere on the lower half of the window, C-c C-z [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: 53398@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: -3.3 (---) Jose A Ortega Ruiz writes: > - start composing a message, e.g. a reply, so that the current window > shows only a portion of the buffer, and not the signature > > - with point somewhere on the lower half of the window, C-c C-z > (message-kill-to-signature) > > - the text from point to signature is deleted alright, but the buffer > contents is recentered, as if one had invoked recenter /twice/, so > the window gets scrolled up. previous behaviour was that the window > wouldn't scroll at all, one would just see the contents of the > buffer below point change (and show the signature). I've tried reproducing this in Emacs 29 with various contents in the buffer and with various window sizes, but `C-c C-z' doesn't seem to do any recentring for me. Can you create a test recipe, starting from "emacs -Q", that demonstrates the problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 05:08:35 2022 Received: (at control) by debbugs.gnu.org; 21 Jan 2022 10:08:35 +0000 Received: from localhost ([127.0.0.1]:60239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAqqR-0002bZ-1L for submit@debbugs.gnu.org; Fri, 21 Jan 2022 05:08:35 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAqqP-0002b9-O6 for control@debbugs.gnu.org; Fri, 21 Jan 2022 05:08:33 -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=fzq/WfvsFlVJwGbflS+Lr39lTdqs+SNDaluLwkRMF0U=; b=Cjvz7G+awEhWliMmLE1LEaz6Q9 9VkXm03Y52WwUHubRqOuce40h3+b0Bm8RSVKi9mDL3l2wx8VpRa7D3TnVCeEZp9k1/9eNbCQ/lxfJ 92oujr/Sg4OxOUeLHuL7o+hWf+beDvAxAhDH+cvd7xufERO0KxN9aG/uFv5JlS5YvRdI=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAqqH-000086-TB for control@debbugs.gnu.org; Fri, 21 Jan 2022 11:08:28 +0100 Date: Fri, 21 Jan 2022 11:08:25 +0100 Message-Id: <87ee51v1t2.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53398 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 53398 + moreinfo 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: -2.3 (--) 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: -3.3 (---) tags 53398 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 22 14:13:33 2022 Received: (at 53398) by debbugs.gnu.org; 22 Jan 2022 19:13:33 +0000 Received: from localhost ([127.0.0.1]:37915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBLpN-0003rf-7I for submit@debbugs.gnu.org; Sat, 22 Jan 2022 14:13:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBLpK-0003rR-ND for 53398@debbugs.gnu.org; Sat, 22 Jan 2022 14:13:31 -0500 Received: from [2001:470:142:3::e] (port=56970 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBLpF-0005ME-1Y; Sat, 22 Jan 2022 14:13:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=X/sg//T9Hyp3zitZ8yxbOtEUcG6pql/b4bgMklztxMs=; b=SN2NFR5apH76ZcotsWG2 l4KlEAacQe03GsTPD7ph7sRof9wcxAACK4B7+ybKy7Xi/2iBtRBkneLTXv67dVoCeDR1w95Y5GQIY 1kFCKW+zMN0cD9Nv31hMQBYucy5qp4nA1EFWZyiu4KtpaZ5NXmpwp5cwYIuArt5iETtBuqijMa0GE VtQWhd1dVNpK7KCklf1HI41ExnSWA88y9pv8R/hMlcjiCc1RFgJ+ljipakpekTPrq6bCHtL+3Ze6X 62YlQqWaEpJb5U8m1aG6Y6Q7SK/rUVUcpTv1winnJvvDQ2g/4pbUGHJR8RJ/6xEFRPrpvgJEBF+mx 5aBUh3oUrJ/ZDg==; Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:50366 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBLpE-0003Ql-Of; Sat, 22 Jan 2022 14:13:24 -0500 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id dcde4830; Sat, 22 Jan 2022 19:13:21 +0000 (UTC) From: Jose A Ortega Ruiz To: Lars Ingebrigtsen Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering In-Reply-To: <87fsphv1t7.fsf@gnus.org> References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Sat, 22 Jan 2022 19:13:21 +0000 Message-ID: <87czkj8tym.fsf@gnus.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: 53398@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: -3.3 (---) On Fri, Jan 21 2022, Lars Ingebrigtsen wrote: > Jose A Ortega Ruiz writes: > >> - start composing a message, e.g. a reply, so that the current window >> shows only a portion of the buffer, and not the signature >> >> - with point somewhere on the lower half of the window, C-c C-z >> (message-kill-to-signature) >> >> - the text from point to signature is deleted alright, but the buffer >> contents is recentered, as if one had invoked recenter /twice/, so >> the window gets scrolled up. previous behaviour was that the window >> wouldn't scroll at all, one would just see the contents of the >> buffer below point change (and show the signature). > > I've tried reproducing this in Emacs 29 with various contents in the > buffer and with various window sizes, but `C-c C-z' doesn't seem to do > any recentring for me. > > Can you create a test recipe, starting from "emacs -Q", that > demonstrates the problem? Yes, i finally managed to create a recipe. It's kind of exotic and involves setting a custom set-message-function that adds properties to the displayed message (!). More concretely, with emacs -Q, eval this code: (defun text-with-right-padding (text) (let* ((len (+ (string-pixel-width text) (string-pixel-width " "))) (padding (propertize "-" 'display `(space :align-to (- (+ right right-margin) (,len)))))) (concat padding text " "))) (defun custom-set-message (msg) (when msg (concat msg (text-with-right-padding (buffer-name))))) (setq set-message-function #'custom-set-message) text-with-right-padding is copied directly from a message in emacs-devel and i don't fully understand it (in particular, i cannot make sense of the parens around (,len)), but it does its intended job: with custom-set-message one sees messages displayed with the current buffer name attached and padded to the right. That triggers the recentering for me. I just create a file with a bunch of lines containing, e.g. --8<---------------cut here---------------start------------->8--- slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj ;; ^^ repeat the above a bunch of times so that you don't ;; see the signature part below -- slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj slkdfjsldkfj --8<---------------cut here---------------end--------------->8--- Then load-library message, just move somewhere in the buffer without the signature being visible and M-x message-kill-to-signature. In my real case, i have a set-message-function that adds a varied amount of extra status information aligned to the right. I have a previous version with adds the padding by computing manually the needed width and simply concatenating in the middle with format and width spec, no fancy 'display properties. With that function, the recentering does not happen. Hope this helps! Cheers, jao -- What sane person could live in this world and not be crazy? -Ursula K. Le Guin, author From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 01:08:40 2022 Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 06:08:40 +0000 Received: from localhost ([127.0.0.1]:38444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBW3M-0005mL-8j for submit@debbugs.gnu.org; Sun, 23 Jan 2022 01:08:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBW3K-0005m8-QX for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 01:08:39 -0500 Received: from [2001:470:142:3::e] (port=37508 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBW3F-0004eU-IT; Sun, 23 Jan 2022 01:08:33 -0500 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=q0P+3VdP0vAlYxPuF7Wh1um8zkrm5Mi/iqp+50ckVQY=; b=C1TKhcBxV95a 1jvHbdbUjv3BEBuWzjfRP8VBPzMxxIsG52anLqBLs5xruDbm/eQ0CrExa3bVqBRJp3vyHJurJye09 IL8K0TWqlr12Ecm68lqk8vZXs0fulTqk6Ojk24+c9tvrSXBb9hIcjMOUuCTVoSAR7RzkNuLNnxYug jcu6Ig5PgL4+k6EHavrKZ4+a8d/o+KrvbYMHnm8l/N/CUHv4bMCR3vEEt8AUWvsiwdvaah9v1vItQ AcQmaywnNiDkFICtXt7HpPwQvQjQH2buOxxNDxSJ4i0+wg2G1dxVuHTsCFTphapIGkgoKCHdQuZFd 8IpyI6r2GgKivbp/uv1QzQ==; Received: from [87.69.77.57] (port=3989 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBW39-0006W5-9D; Sun, 23 Jan 2022 01:08:28 -0500 Date: Sun, 23 Jan 2022 08:08:10 +0200 Message-Id: <83tudvkmr9.fsf@gnu.org> From: Eli Zaretskii To: Jose A Ortega Ruiz In-Reply-To: <87czkj8tym.fsf@gnus.jao.io> (message from Jose A Ortega Ruiz on Sat, 22 Jan 2022 19:13:21 +0000) Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: larsi@gnus.org, 53398@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: -3.3 (---) > From: Jose A Ortega Ruiz > Date: Sat, 22 Jan 2022 19:13:21 +0000 > Cc: 53398@debbugs.gnu.org > > (defun text-with-right-padding (text) > (let* ((len (+ (string-pixel-width text) (string-pixel-width " "))) > (padding (propertize "-" > 'display > `(space :align-to (- (+ right right-margin) (,len)))))) > (concat padding text " "))) > > (defun custom-set-message (msg) > (when msg (concat msg (text-with-right-padding (buffer-name))))) > > (setq set-message-function #'custom-set-message) > > text-with-right-padding is copied directly from a message in emacs-devel > and i don't fully understand it (in particular, i cannot make sense of > the parens around (,len)), but it does its intended job: with > custom-set-message one sees messages displayed with the current buffer > name attached and padded to the right. These customizations cause the echo-area message become too long for a single screen line. That in turn causes Emacs to resize the mini-window to show the echo-area message, and that indirectly causes the recentering you see. So I don't think there's anything in this behavior that isn't expected. If you want to prevent recentering, try setting max-mini-window-height to 1, so that mini-windows aren't resized. (I didn't try it, though.) Or just don't ask the echo-area messages to display so much stuff. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 07:33:15 2022 Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 12:33:15 +0000 Received: from localhost ([127.0.0.1]:38743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBc3X-0001Sq-CY for submit@debbugs.gnu.org; Sun, 23 Jan 2022 07:33:15 -0500 Received: from quimby.gnus.org ([95.216.78.240]:37458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBc3W-0001SZ-8V for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 07:33:14 -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=ApYRdvp2/re5V27a6blbqvlnbKl1imsS7IlLnegWeMQ=; b=lGedWBMfymQiK1G1+U/5K9cJEE ooURdP3+bHEnb365jKTAy0lcOBoyN0cqziID0SuBWT5GosQras9La3cRo5g8CvARW0lbBxAgWuX5o YJsmthmI0Yj8ZIFQ8k++ZC8s3y7nn9fXOEl9XkUDg58QBxvAPuq+hNUa7ZmICmsdDeVA=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBc3N-0004u5-HP; Sun, 23 Jan 2022 13:33:08 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> <83tudvkmr9.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUtKjA6Qk5MWFwm HyO1l1x9jZtPcpL///9nLqjFAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YBFwwQAL+//5wAAAGxSURB VDjLZZM9bsMwDIVFCehscvAsctCcIDco2iPYcy2guv8RSuonkVLGQGx95nskJTvXAxBxc0CiwUyb rYXHzf4QDVdg77jgbL2xmofIhPXp8QgdALC02BrRX3eSL4tP4foYhs0dG/hm7OBhKahSFRxHHMXW 97XGBr4/oXloioVnvZoHNClVum/mzDSDYKCWZb01gM+M2wqAJm81EcEGHLg5vE6pg/fgbQJhAkNq lPvcFKYGSFbg2Tfg1wyQza99zKwFum1aDTdE6mTthFAm8ELwVGJRKVgtqB4TWjxUq5QhtQCg8/c8 s2W5tWD/e5zHka3cFVAqRznOkt9GAkVNLN7BXrDkYtcCdudLTFcqomwGHxuUa88VlAVEBR/Z9Fbg f1wqPuM/AGzuGeUJttF3BZIxleTsS2DmWEH0FUg6d1XNrwzRenW0jjI4lbu6x50SFhYbkgokJWPC KFcHzjtrZrSJdKVI9fOTmlHiMMmJvQGIdvR7CprWfhkIngxIS2Hdcdqz1/ugLYlqSU3RSRNpobEd GNRNyyVHvYmaoqOKo5JqnwEJiXEGJHU3dTZACAP8AcQ+cWvz2CwmAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIyLTAxLTIzVDEyOjE2OjAwKzAwOjAwORnwpQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0w MS0yM1QxMjoxNjowMCswMDowMEhESBkAAAAASUVORK5CYII= X-Now-Playing: Sade's _Promise_: "Jezebel" Date: Sun, 23 Jan 2022 13:33:05 +0100 In-Reply-To: <83tudvkmr9.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Jan 2022 08:08:10 +0200") Message-ID: <875yqaaaym.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Eli Zaretskii writes: > So I don't think there's anything in this behavior that isn't > expected. If you want to prevent recentering, try setting > max-mini-window-height to 1, so that mini-windows aren't resized. (I > did [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: 53398@debbugs.gnu.org, Jose A Ortega Ruiz 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 (---) Eli Zaretskii writes: > So I don't think there's anything in this behavior that isn't > expected. If you want to prevent recentering, try setting > max-mini-window-height to 1, so that mini-windows aren't resized. (I > didn't try it, though.) Or just don't ask the echo-area messages to > display so much stuff. Yes, I don't think there's anything much we could do on the Emacs side here -- any function that issues a message while narrowing is in effect will lead to recentring with a set-message function like this. So 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 Sun Jan 23 07:33:26 2022 Received: (at control) by debbugs.gnu.org; 23 Jan 2022 12:33:26 +0000 Received: from localhost ([127.0.0.1]:38746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBc3i-0001TI-L6 for submit@debbugs.gnu.org; Sun, 23 Jan 2022 07:33:26 -0500 Received: from quimby.gnus.org ([95.216.78.240]:37472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBc3g-0001T4-Sh for control@debbugs.gnu.org; Sun, 23 Jan 2022 07:33:25 -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=m4YqKG1gZHrs/Piu3cOpxGjavs3mko4nxwGPsTGi4YA=; b=XUek1/gsROzjoOYsTbCCDB3tRr KDwW+9GILzuOrLEaTrMOJsW2MMNj0EFdQd96u2wlCjp4T2Quuh0eaXggbAuD5ND4kVMSI4PAL+dNO uYcPek1J91ME5CvfxY+0bbTzq08CbYnEdkk8f+OW38RrpNDranY/kV4Ms4LnbyDl7oW4=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBc3Z-0004uF-0l for control@debbugs.gnu.org; Sun, 23 Jan 2022 13:33:19 +0100 Date: Sun, 23 Jan 2022 13:33:16 +0100 Message-Id: <871r0yaayb.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53398 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 53398 wontfix close 53398 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: -2.3 (--) 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: -3.3 (---) tags 53398 wontfix close 53398 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 10:43:03 2022 Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 15:43:03 +0000 Received: from localhost ([127.0.0.1]:40841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBf1D-0004Bp-Gh for submit@debbugs.gnu.org; Sun, 23 Jan 2022 10:43:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBf1B-0004BL-Dr for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 10:43:01 -0500 Received: from [2001:470:142:3::e] (port=42946 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBf16-0004Rg-0v; Sun, 23 Jan 2022 10:42:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=A2FH+mueWioyFrXrvwhBFX9gT00WugI/LI1OdKv0E4c=; b=dPRuI5IJkTCEBrc3YAuw 3jcb8plHF+DJRNraAcSHFsFCJ/q95nV0sO7siy0nIoMEitJ/90y8IzRQEbAddXwiIS19l6Dth8Yyy JH9wANwgEFOmGoINRl+7Uk4NgfOQQB8b8Vo8cxdyn1ACglhoV5XsV1YA/y8H6gWDqO5wb9Xgd28p1 ZoH/6rE1I6wV20a9PIilNZIwJQVdH3iaSkYghUWC7QG97lb5xbqHLUVyfNdEQQtdMqqrHlF0Fb/uf W7UBJSE1XRHMfvSYY+B13d4d7BODFOO4hgEV//e2XPgauxEIQSvyrf+eUrAbc1oWXkRkQU1kR3Xlz rHYXm/zdANRZcw==; Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:50388 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBf15-0006JT-Hf; Sun, 23 Jan 2022 10:42:55 -0500 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 350c8af3; Sun, 23 Jan 2022 15:42:51 +0000 (UTC) From: Jose A Ortega Ruiz To: Lars Ingebrigtsen , Eli Zaretskii Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering In-Reply-To: <875yqaaaym.fsf@gnus.org> References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> <83tudvkmr9.fsf@gnu.org> <875yqaaaym.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Sun, 23 Jan 2022 15:42:51 +0000 Message-ID: <871r0ycvb8.fsf@gnus.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: 53398@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: -3.3 (---) On Sun, Jan 23 2022, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > >> So I don't think there's anything in this behavior that isn't >> expected. If you want to prevent recentering, try setting >> max-mini-window-height to 1, so that mini-windows aren't resized. (I >> didn't try it, though.) Or just don't ask the echo-area messages to >> display so much stuff. > > Yes, I don't think there's anything much we could do on the Emacs side > here -- any function that issues a message while narrowing is in effect > will lead to recentring with a set-message function like this. just for my own understanding: are you saying that the fact that the minibuffer displays more than one line causes a re-centering of my current buffer? why is that normal? if i M-: (message "a\nb\n"), should i expect that my current buffer is recentered? (it isn't). (also, for the record, the message displayed by that custom set-message does not span more than one line, as far as i can tell.) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 11:12:40 2022 Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 16:12:40 +0000 Received: from localhost ([127.0.0.1]:40944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfTs-0007QT-Lg for submit@debbugs.gnu.org; Sun, 23 Jan 2022 11:12:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfTq-0007Q3-Lt for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 11:12:39 -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=KY9rp5EqnjePncdYuFEfCGUaJ9m0M10c+3rh6r3jA6s=; b=Va2Nx0FquR/rGSuAcC6QgUBsjV pnQhXFkoMip8PwLdiXAxZnsH+PHaJEDxZ/YROfs5XXum6KaCvGRQ+XYZnEWhFDkK9KEyytsM3ns1v z4yPdFs68VMORuD2xtjhy7AVhk7zxsWf1iFkKwF7u6hPwqt6RI6ATjXaiKmd2QOBXhsQ=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBfTi-0006Rq-6x; Sun, 23 Jan 2022 17:12:32 +0100 From: Lars Ingebrigtsen To: Jose A Ortega Ruiz Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> <83tudvkmr9.fsf@gnu.org> <875yqaaaym.fsf@gnus.org> <871r0ycvb8.fsf@gnus.jao.io> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWxr6rZ1MiGgns1 MzH///9Axw47AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YBFxALM7xlDwQAAAGESURBVDjLdZOJjcQg DEVtaMDONMDRQIL7720/BnJpgzQj4sf3CUTEyool2Ahh9X/fzO9/1if4XPwF9L3urmcaTyBv5WU4 i+ky5gH0HqOWcKQ0/d5BSEQhvBRbSd0ZD4+QyDxsZjCW/AICux0PxRBE2IkDBRF6KKpZClpbaqE8 ABQJR4W5Jzpb2FHleLZkABGBQbLyVc6og3tTxJN5KjyKB/IaNO66BjWBeOnFbAWX6T50ICnVvOYx nEsKmXQjsnx6QmiBABb5LdDn4vlsezWSQElmDJUBYqvNrCnFvIBXAH8FCWX0ZgCeAIkFQqZqtj9B 0Jgp6GazjlFCUvRQdhzq8+ILsHBMujH9TjAah8wi/JPZDbDfPf0B9ADWFujFFbi0MXg7ziYCNGbM cIDtbHtXAMcm1QXHBYSyIEjrgriAOsBV80ythZovsMkJrM/gUshKyUyEr6wAjgkarqncgWUHpZ0v k/2plZLwK6niBj8e7Fh7L8T+efEj/MuI10fRPhTB8/LtHw6CQir5aoJ0AAAAJXRFWHRkYXRlOmNy ZWF0ZQAyMDIyLTAxLTIzVDE2OjExOjUxKzAwOjAw9euEmgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy Mi0wMS0yM1QxNjoxMTo1MSswMDowMIS2PCYAAAAASUVORK5CYII= X-Now-Playing: Hector Zazou's _Reivax au Congo_: "Que le Bongo est beau" Date: Sun, 23 Jan 2022 17:12:27 +0100 In-Reply-To: <871r0ycvb8.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Sun, 23 Jan 2022 15:42:51 +0000") Message-ID: <87y23677o4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Jose A Ortega Ruiz writes: > just for my own understanding: are you saying that the fact that the > minibuffer displays more than one line causes a re-centering of my > current buffer? why is that normal? if i M-: (message "a\n [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: Eli Zaretskii , 53398@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: -3.3 (---) Jose A Ortega Ruiz writes: > just for my own understanding: are you saying that the fact that the > minibuffer displays more than one line causes a re-centering of my > current buffer? why is that normal? if i M-: (message "a\nb\n"), should > i expect that my current buffer is recentered? (it isn't). Causing such redisplay while the buffer is narrowed will have this effect. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 11:34:44 2022 Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 16:34:44 +0000 Received: from localhost ([127.0.0.1]:41000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfpD-0004Z3-Q1 for submit@debbugs.gnu.org; Sun, 23 Jan 2022 11:34:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfpB-0004Yh-Mm for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 11:34:42 -0500 Received: from [2001:470:142:3::e] (port=43354 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBfp6-0006K5-5R; Sun, 23 Jan 2022 11:34:36 -0500 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=Z62ca6kzPyCqcFF6rnr63JMU88PZOAmCwM+YNxaBea4=; b=E+jvjm1PKjj1 hP9yWvNpq3GgaRoYrwbhyuheNpUXFkPUwsDiI0Fn6KACm3No55jmdG5MxHmLL/s5VzLKpoTo4+hGZ LQnsZX7s/SRwnfE4m2TTA3qMufbqnYSCTA6O0ZuhjJMBH5hjqC2i9RkwF6ohNSngZUTBVHCbcc/Xs 95/gcbin/VP+MqO7RE4YUvtJ9MTGugPdqQkZPqTL/Av62fFNTr87maD2IaayoBHvoAZbNUsTaBrKB 3fDOHpTMBGG4xZvZSFYc+fQb4HRZVdzLySjifkTQPTQQ/SCps3oRgdCdbRn1LNXuT7kkaTQueA3D0 M5vgtpiFUx2sXpwo8a3z+w==; Received: from [87.69.77.57] (port=3032 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBfp5-0006N2-Gz; Sun, 23 Jan 2022 11:34:35 -0500 Date: Sun, 23 Jan 2022 18:34:15 +0200 Message-Id: <83ilual8c8.fsf@gnu.org> From: Eli Zaretskii To: Jose A Ortega Ruiz In-Reply-To: <871r0ycvb8.fsf@gnus.jao.io> (message from Jose A Ortega Ruiz on Sun, 23 Jan 2022 15:42:51 +0000) Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> <83tudvkmr9.fsf@gnu.org> <875yqaaaym.fsf@gnus.org> <871r0ycvb8.fsf@gnus.jao.io> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: larsi@gnus.org, 53398@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: -3.3 (---) > From: Jose A Ortega Ruiz > Cc: 53398@debbugs.gnu.org > Date: Sun, 23 Jan 2022 15:42:51 +0000 > > just for my own understanding: are you saying that the fact that the > minibuffer displays more than one line causes a re-centering of my > current buffer? why is that normal? if i M-: (message "a\nb\n"), should > i expect that my current buffer is recentered? (it isn't). If point is in the last N lines that would be "covered" by the enlarged mini-window, then Emacs will recenter to keep point visible. > (also, for the record, the message displayed by that custom set-message > does not span more than one line, as far as i can tell.) It does, see the continuation indicator at the right fringe. You have computed the alignment to span the entire screen line, but Emacs needs one more place there to display the cursor. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 12:05:08 2022 Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 17:05:08 +0000 Received: from localhost ([127.0.0.1]:41129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBgIe-0005tT-6e for submit@debbugs.gnu.org; Sun, 23 Jan 2022 12:05:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBgIc-0005st-7i for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 12:05:06 -0500 Received: from [2001:470:142:3::e] (port=43756 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBgIW-0004Mo-B6; Sun, 23 Jan 2022 12:05:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=7CfuzaCE0VwXxK/Okh3sczmLwF6MCtcm3bwLyObEQqc=; b=efpBxajO82CcTfUAYBbQ T9uGmW+pnDdp6Xll7LIhR+/GZL4ZzpXTKDave6gqDcRixXHWdUkLOGJAyo7LGdjA0TnkUFfCLKlIu RqtUijaqOfCr1bjNjF3HuiGGiM+kwMdGDGdm01sQ2/GUWiIysFbT/CgdbVd+qvn9lTPozqVT3GZ3b x4fwaMCSrw8M2heet9sIkN1C2Axz2HuBKvmeWpV7vMrwpHqSerEUrAyeEbDfMhdwnx1W2ldEEhqad k4YE0hEZyQxmOuGA3Uwp858AsdWGlu+wum2jjE012xCRgdTXbY79obtsHrr1pY1C1Jld2Ojmh2i5a yQip4uPLgtHQRg==; Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:50396 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBgIU-0004uZ-3X; Sun, 23 Jan 2022 12:04:59 -0500 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id e2698294; Sun, 23 Jan 2022 17:04:54 +0000 (UTC) From: Jose A Ortega Ruiz To: Eli Zaretskii Subject: Re: bug#53398: 29.0.50; narrow-to-region induces buffer recentering In-Reply-To: <83ilual8c8.fsf@gnu.org> References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> <83tudvkmr9.fsf@gnu.org> <875yqaaaym.fsf@gnus.org> <871r0ycvb8.fsf@gnus.jao.io> <83ilual8c8.fsf@gnu.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Sun, 23 Jan 2022 17:04:54 +0000 Message-ID: <87v8yabcy1.fsf@gnus.jao.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53398 Cc: larsi@gnus.org, 53398@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: -3.3 (---) On Sun, Jan 23 2022, Eli Zaretskii wrote: >> From: Jose A Ortega Ruiz >> Cc: 53398@debbugs.gnu.org >> Date: Sun, 23 Jan 2022 15:42:51 +0000 >> >> just for my own understanding: are you saying that the fact that the >> minibuffer displays more than one line causes a re-centering of my >> current buffer? why is that normal? if i M-: (message "a\nb\n"), should >> i expect that my current buffer is recentered? (it isn't). > > If point is in the last N lines that would be "covered" by the > enlarged mini-window, then Emacs will recenter to keep point visible. > >> (also, for the record, the message displayed by that custom set-message >> does not span more than one line, as far as i can tell.) > > It does, see the continuation indicator at the right fringe. You have > computed the alignment to span the entire screen line, but Emacs needs > one more place there to display the cursor. i see. thank you both Eli and Lars for your time, greatly appreciated. cheers, jao -- Since when do we have to agree with people to defend them from injustice? -Lillian Hellman, playwright (20 Jun 1905-1984) From unknown Fri Jun 20 07:12:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 21 Feb 2022 12:24:18 +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