From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: master 6362f65474: Add new command `duplicate-line' Date: Sun, 19 Jun 2022 00:22:25 +0200 Message-ID: <20220618222225.3ajabf4otw7ze3pn@Ergus> References: <165548727183.24473.6170306052807994962@vcs2.savannah.gnu.org> <20220617173432.17B6FC00BAF@vcs2.savannah.gnu.org> <87ilozrxqp.fsf@gmail.com> <20220618163043.g4r2a5inkldmwjue@Ergus> <835ykxoqwh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 19 00:23:26 2022 Return-path: Envelope-to: ged-emacs-devel@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 1o2gqj-0006mx-Nu for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 00:23:25 +0200 Original-Received: from localhost ([::1]:45548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2gqh-0004d6-V6 for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Jun 2022 18:23:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2gpt-0003uY-Mq for emacs-devel@gnu.org; Sat, 18 Jun 2022 18:22:33 -0400 Original-Received: from sonic303-3.consmr.mail.bf2.yahoo.com ([74.6.131.42]:44333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2gpr-00017Y-TL for emacs-devel@gnu.org; Sat, 18 Jun 2022 18:22:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1655590950; bh=mxKl8cdUI/AiBHGKwLG31EItSBjHuo76IxkHchqxLJo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=E6M8b5etPt5yjiq6eKUBsiBHpeGZHKDD6WAQbow/zwm8h+YJvV34+VhX5i9i9UPL+ywEbzmJs2jIkhOlpJMSOlT0ubmL+Ul7cRoV775oBULS0IjcfnMd4GbJU8Z10f+zNMLRCUYcCjkq7CsCPgb3HdmeJyLowaU/QZ4bnQuGwIYpLn9ZjewoIyTCffea75LoDrYw8NMTE1clQbMLhc/oPstutrFJck6BgP9crML+1uMh78StRCzjJMdEZUdfkm0+K0dae2nRz+tPVPZ8PURIjuR3epSpGOV7RW21B1q6na8IMezC1my86V6aQKT88V1o6yywg7o1fpb5xk6BfSSqTQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655590950; bh=DE25odHhFmJkkpP1uqjzDwSGNAxeVjVV5dNJmZ2N3RA=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=PE8E2m8AFPUtzyFH2LutztAsmtXjZ8p1SRT9+arrYK1tg+V0e+w0afpDQjt1EKdgrjHLIzAv0/AIJUSglMDKMAoVhAT/MU8PLTHZgA+0bC3e0QU7mQuBzjSr7m7sDnjOGMIZ3qPW0aXFS3ASUCXbGSERWlat2TVyeSLIuM3qFG6lsWGd7QjFwyPF8pRtszIKrdBWIetQy2hXjjT7xYLxbDVsid0POm2XJRJR8dka//X8Oqfz9wbGIRab+97nmj5+dbXK2mKeZJlPQ1KtkYDq9F1zUEBUiDI7tY46g6aVTZXoY8/9mrefSiSQcZdCU3OuB3UJ45AU96iAhJlSMqPMHQ== X-YMail-OSG: YnnMEBIVM1krSq__q3rOP26FV9_u7IsTTsujltZc9uvv4TmLMj7J3K4562Fwuru KzKc3p4V0o_ps9U.q_SWgEsk2cz8YeZsYKMlnGw8D_21BqAJvCf_J07pUElUv5NFZOGEyq_rebh3 5cxSm7IlL8jP4pL_iZPAG4RPqlKW9FqZblie89GlmVasPC1MhInto8Igal2x8DfBvkVEotoO6ggQ 8eY63uo7uFbIV4hBnT273VTMt_LtUi2d7Nchv2gReOOPdwefzYLMbMQ8D4yUz0SZMFNIp3MkQg6y MHIskrEwp9zmjJpH.c0Xzjaz2HYUCmuTZ5.udZ57lUtZ5OvBzREcJqI2IRFrrIttn29fKVv9__hl jt0lQ6uQIHGQ6xMKQJ3wa3AcZY2rJi3uAZtcA09Fxv9R_fk0Ga.ect8HCZQVajsWdJS6Vrqd.OsM 0bRAytHfWrYA.cHQj6FbR1tS4f38sfKM8qDHbTKZpFu32v82PKh6G8TVqUSxaXkxHDm0DSPKiYaM Ok1niR5EljHRDrFqFyi36lOAcnn1v6hn9acNU.MRdQD5SH7EuNaz.FpNnI5cgMqzkP_H2V8nLT6q DxoMTXaKUsPee3h_.slDOt0Yb8KpA39jkVB3mMS5vXlgPKBU16YNj7ozdPu1GDXN4zh2GjbhFyRN DanOOULAhO51NfDqqyQ0eXbcM.CQcgkz_I4UPV5bq9pvjy6dzGGiLnJpSKBxfWQU3Fg9sZu8fjLq yCu0Ma3nGA.FZMukVDxB2I2Ur_ABqCPKn7qord5n5kW4Al8PbbG6yOV2M6EZiCLInE42nW4J2hxO gVFNPskOQKwSSIe57L2MVnxpCc.6AJZlm2JKzReDZ. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Sat, 18 Jun 2022 22:22:30 +0000 Original-Received: by hermes--canary-production-ir2-c9bf9d9bc-ff8x9 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6a2a817f940f2f87aaf90f8c6ff0dab8; Sat, 18 Jun 2022 22:22:27 +0000 (UTC) Content-Disposition: inline In-Reply-To: <835ykxoqwh.fsf@gnu.org> X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.131.42; envelope-from=spacibba@aol.com; helo=sonic303-3.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291387 Archived-At: On Sat, Jun 18, 2022 at 07:52:30PM +0300, Eli Zaretskii wrote: >> Date: Sat, 18 Jun 2022 18:30:43 +0200 >> From: Ergus >> >> 2) From the same package may we consider a command "move-line", which in >> the same fashion the user could bind to move the current line up/down? > >Isn't that what transpose-lines already provides? > Actually no, transpose-lines is very confusing from the user point of view... because the line moved is not the current one, but the previous one... but also, the cursor moves with it but not to it, but to the beginning of the next one, so we lost the current column position and line; so it looks like a command that acts outside the current position and moves the cursor to random places. Moving the current line one row up means all these steps: (let ((column (current-column))) (next-line) (transpose-lines -1) (previous-line) (forward-char column)) Could we make user live easier for simple editing stuff?? These commands + a repeat keymap are very useful? Best, Ergus