From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Yu Newsgroups: gmane.emacs.help Subject: Do not display bottom logical lines that don't fit with visual-line-mode Date: Mon, 7 Feb 2022 23:45:57 +0800 Message-ID: <20220207154557.c77hv527us4x5ezf@gentoo-dell> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jxhf4xsvyyagmuxm" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40205"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 16:48:14 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nH6FR-000AAn-9a for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 16:48:13 +0100 Original-Received: from localhost ([::1]:49238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH6FP-0004Hu-6A for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 10:48:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH6De-0004Ab-UN for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 10:46:23 -0500 Original-Received: from andrewyu.org ([173.249.27.223]:45400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH6DY-0003Wn-FM for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 10:46:22 -0500 Original-Received: from localhost (unknown [47.241.24.30]) by andrewyu.org (Postfix) with ESMTPSA id 191E8581769 for ; Mon, 7 Feb 2022 16:46:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=andrewyu.org; s=mail; t=1644248766; bh=duBZ8wAKYr+VSxbLYvTvdJCH6iET3Us+CIAp8vp0CWM=; h=Date:From:To:Subject:From; b=HihmpzzV/JPjoAVFiYHEVUOjEdEZmbZMUxlg/L5E4XdXakUfaYTlUARSUq+AQmS8s hhQVoDnX5Waqb+Yjz32gjlZA1DTB6ej+bim06oTYQti3veByFQWFrEdw+zXMNfwaPL iCuTiu8S3LsU3Ws8ywAiamDu8CBi98H1rQoUj1ouNwZeOMcuXPP1/18EoNplMQIogf 95L/6ZoacyvlAEVhMMAfNEKFyT63LjCUX7LPaFtAIf7FWvNH7/AFZwvpcFnKd7yy3o TX7nTsC4DGL0Lh6oqOrwMyVm1g0bWhIin2f74XYheyLsPWKSOGi795yFdAtaq5WMxP ZBlPCFBKQjv7Q== Content-Disposition: inline Received-SPF: pass client-ip=173.249.27.223; envelope-from=andrew@andrewyu.org; helo=andrewyu.org X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135798 Archived-At: --jxhf4xsvyyagmuxm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. When using visual-line-mode, by default long lines at the bottom of the window are partially displayed. I would like to replace the beginning of each physical line in the undisplayable logical line with @s, as how Vim does it by default. (The @s are just for familiarity, it's okay if it's something else, though in that case it's probably easy to change.) The example below does not use word-wrap or anything like that. Line numbers are absolute. The cursor is indicated with #. File (raw, sorry if your email reader doesn't line wrap): Short line. =20 Long long long long long long long long long long long long long long long = long long long long long long long long long long long long long long long = long long long long long long long long long long long long long long long = long long long long long long long long long long long long long long long = long long long long long long long long long long long long long long long = long long long long long long long long long long long long long long long = long long long long long long long long long long long long long line. Wanted behavior (viewport shorter than that but taller than two physical lines): +----------------------------------------------------------------------+ | 1 Short line. | | 2 @ | | @ | | @ | | @ | | @ | +----------------------------------------------------------------------+ Emacs behavior (viewport shorter than that but taller than two physical lines): +----------------------------------------------------------------------+ | 1 Short line. | | 2 Long long long long long long long long long long long long long | | long long long long long long long long long long long long long | | long long long long long long long long long long long long long | | long long long long long long long long long long long long long | | long long long long long long long long long long long long long | +----------------------------------------------------------------------+ As you can see, the emacs version has the long line truncated, instead of not being displayed. The reason for me to do so is I'm using vertical splits with follow-mode in order to expand the lines of text I can display. However I encounter long lines in my org and LaTeX documents. It's quite annoying to have the last line in the left column display incompletely, and have the right column start from the beginning of the incompletely displayed logical line. Of course it'd be cool to fix follow-mode to account for visual-line-mode, but I'd still want the Vim-like behavior because lines splitting across windows may still confuse me. Are there any minor modes for this? Or other ways to get this? Thanks! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Defend software freedom (https://fsf.org) End software patents (https://endsoftwarepatents.org) Read EULAs (https://www.eff.org/wp/dangerous-terms-users-guide-eulas) New sites, suggestions welcome: Free Computing Movement (https://fcm.andrewyu.org) Host Things Yourself (https://host.andrewyu.org) Libre Society (https://project.andrewyu.org/libresociety) To any Skynet, FBI, CIA, NSA, etc. agents reading my email: please consider whether defending the Constitution and our basic rights to freedom and speech and privacy against all enemies, foreign or domestic, requires you to follow Snowden's example. (Adapted from RMS) Andrew Yu (https://www.andrewyu.org) --jxhf4xsvyyagmuxm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEWL15gSGHG3GHDCfZl4tYka0/WYYFAmIBPrEACgkQl4tYka0/ WYacaA//ZFgdvdAUoCLf2O5lNx+kDjLNJtVpMY6mdMPGXOjlvZFWdzCe1dmHZ7BH Z/X9XaIA0szaQgszX2sbdREEVX8LGaCNBpsOfJK7iDI8j+0feadvh0PzDLRZv5G8 qipmpx4bBRj2+AOvySQ5XjJAu5LwbfHAzk7Lh3BSSqlqgwV66zxozH3P0Er0lMhf z2dw1/6FFkZnHkn3w2PznBVDbphOA6CYX8yulDFoN+oMLce5z7DxtuEJOEeoeMkx e58RjlFuOHLaWfkiUpfu35DQBAnGOuHEIyr9h3XQ5PFx9fbR9Q7ONhjYHOn36LtL SKpnWevInnuXRlPms2BJDbjtraNJhUPN38Vo9peVN6lPuwjq5t5bBmFgoTeDs6+/ eUGdgxF9SCzk8JTIOE8jp2D9U8I2alOmWNE8WwGkis8vl3DKy2xR06gpt+Ji4G5p HLIm+DCcTeRo4qdj0ztH7/Xw4ckE6hv4ds4J2VRuuXBY30ZRmxpiXE7qnuomJUt4 EfrZoStimduztJiq8S/84I+UimZo6GVrvpuJmZuyUf/oJ7InlM1iyd/x4OPg3el1 vFB/vO+veuAMpKnuQb+kedGrw7Sb2Xh/goUXO20NxkxK2Q2aT44/GlI9XeN5oBkd 6aYehx8BumCi6Yu2lnx0n06qdBsKXOg3lfkksv9KM4+ADl48UEw= =oMFq -----END PGP SIGNATURE----- --jxhf4xsvyyagmuxm--