From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Herzig Newsgroups: gmane.emacs.help Subject: Re: Free cursor movement beyond the end of line Date: Mon, 14 May 2018 08:16:51 +0000 Message-ID: References: <2871cce1-65e5-45ad-b618-7a5682112170@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1526285736 31446 195.159.176.226 (14 May 2018 08:15:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 May 2018 08:15:36 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 14 10:15:32 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fI8dm-00083y-Po for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2018 10:15:31 +0200 Original-Received: from localhost ([::1]:49833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fI8ft-0001Ws-T9 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 May 2018 04:17:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fI8fB-0001VS-Kl for help-gnu-emacs@gnu.org; Mon, 14 May 2018 04:16:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fI8f8-0004bN-G9 for help-gnu-emacs@gnu.org; Mon, 14 May 2018 04:16:57 -0400 Original-Received: from mail-oln040092066107.outbound.protection.outlook.com ([40.92.66.107]:5760 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fI8f8-0004Zi-5G for help-gnu-emacs@gnu.org; Mon, 14 May 2018 04:16:54 -0400 Original-Received: from DB5EUR01FT049.eop-EUR01.prod.protection.outlook.com (10.152.4.56) by DB5EUR01HT125.eop-EUR01.prod.protection.outlook.com (10.152.5.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16; Mon, 14 May 2018 08:16:51 +0000 Original-Received: from HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM (10.152.4.53) by DB5EUR01FT049.mail.protection.outlook.com (10.152.5.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.755.15 via Frontend Transport; Mon, 14 May 2018 08:16:51 +0000 Original-Received: from HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM ([fe80::d530:8470:8db8:34a9]) by HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM ([fe80::d530:8470:8db8:34a9%13]) with mapi id 15.20.0755.018; Mon, 14 May 2018 08:16:51 +0000 Thread-Topic: Free cursor movement beyond the end of line Thread-Index: AQHT606IU+MH0OP46kyVUHKIIQ+nyw== In-Reply-To: <2871cce1-65e5-45ad-b618-7a5682112170@googlegroups.com> (yegupov@gmail.com's message of "Sun, 13 May 2018 23:32:37 -0700") Accept-Language: de-AT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1P195CA0009.EURP195.PROD.OUTLOOK.COM (2603:10a6:800:d0::19) To HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:ef::21) x-incomingtopheadermarker: OriginalChecksum:0F2841750678D5A634EBB4D211C37DB6D7C25FCE6E7F7EE313B240C6CD287825; UpperCasedChecksum:C05654471BD9E24203BE037A8EE8302E8469B0C0A5D2189FACD18FA838CF677A; SizeAsReceived:7485; Count:49 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [JOYrcgRRlaJjFrmVMJt8/3OOnmXSIjKr] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT125; 7:XOcttQEADkwUJ4Z8quUr9Pot7tFrJSosBJ464fReyDAVPROgQ9n50dMB7eVQVsXhrkgIRCAOBNT8nr97fQRURvAfyFOHh3EvX9yez5yiCiktG8SFAQLvuVNQPkFjQ9a9lm2VzW+HscDgMzWC09eq7GRPrK428fk4cXYEB/buThsZQbnMZ6yVLSZDbEe/hlQWsrHP8zhKgJHEMgfDApXg1WzuT3IIbZfDYn8v+9sRpRhRczUUfgdk6aoPTsVNEXtS x-incomingheadercount: 49 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125425)(1701031045); SRVR:DB5EUR01HT125; x-ms-traffictypediagnostic: DB5EUR01HT125: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:DB5EUR01HT125; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT125; x-forefront-prvs: 067270ECAF x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(199004)(189003)(3280700002)(76176011)(2351001)(104016004)(5640700003)(486006)(74316002)(3660700001)(11346002)(14454004)(55016002)(2501003)(7696005)(99286004)(97736004)(5660300001)(5250100002)(44832011)(86362001)(74482002)(476003)(68736007)(386003)(105586002)(6346003)(8936002)(6506007)(106356001)(82202002)(6916009)(25786009)(229853002)(6436002)(81156014)(26005)(33656002)(446003)(2900100001)(9686003)(102836004)(59450400001)(8676002)(6246003)(305945005)(29773004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT125; H:HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:; received-spf: None (protection.outlook.com: outlook.at does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=daniel.herzig@outlook.at; x-microsoft-antispam-message-info: D5O5CDtAG0uuNiHCA+7jhLlxSvk4SjX90Md2UwUnzsrdyyE97i+3wRqonVY0LFVidMmvI2Dxq59Elfs82WqpBILKxaBh6K+trjtJncBpX+aHdNQd5pNnqcGVgBIxjQQF3iSLpCThzuEFIm049S1IeiUptQDRXYbuKYG2P8CDltQ/wn+m8gaLHiFltUG+Fqo0 X-MS-Office365-Filtering-Correlation-Id: 6f031cbc-11ab-465b-4f77-08d5b9730b63 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 6f031cbc-11ab-465b-4f77-08d5b9730b63 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2018 08:16:51.3259 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT125 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.66.107 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116727 Archived-At: writes: Hello, I recently discovered rectangle-mode -- maybe it does what you want. If you hit C-x SPC at the end of your long line you can press "down" and will land exactly in the column below. It will not place any whitespace at the and of your short line. If you hit C-g then, the cursor lands at the end of the short line. Best regards, Daniel > Hello.=20 > > There is popular text editors option "allow cursor movement end of line".= =20 > It was implemented in many of text editors long time ago. > > But it seems that it's absent in emacs (yes, I tried set-goal-column, pic= ture-mode, artist-mode). > > > For example when I edit the text:=20 > ------------------------------ > this is my long line| > short line > this is my other long line > ------------------------------ > > What I need:=20 > > - when press "down" key cursor should keep position at column 21: > ------------------------------ > this is my long line > short line | > this is my other long line > ------------------------------ > > - buffer shouldn't be modified because of cursor movement only, no need = to surprising trailing spaces;=20 > > - keys like C-e should move cursor to the REAL end of line: > ------------------------------ > this is my long line > short line| > this is my other long line > ------------------------------ > - this should be worked ok with visual-line-mode mode too > > > Notes=20 > - set-goal-column seems a something close about that but not exactly > - artist-mode and picture-mode unfortunatelly add extra spaces and has s= urprice behavour in visual-line-mode > > > Is there a way to solve somehow this problem in emacs?