From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: =?UTF-8?Q?Re=3A_the_=C2=ABinverse=C2=BB_function_of_join=2Dlines?= Date: Tue, 24 Oct 2023 16:47:33 +0700 Message-ID: References: <87zg08pe1q.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10349"; 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 Tue Oct 24 11:48:25 2023 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 1qvE1P-0002Tx-VM for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 Oct 2023 11:48:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvE0s-0004Pj-II; Tue, 24 Oct 2023 05:47:50 -0400 Original-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 ) id 1qvE0p-0004PT-Js for help-gnu-emacs@gnu.org; Tue, 24 Oct 2023 05:47:48 -0400 Original-Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvE0o-0002Ex-3b for help-gnu-emacs@gnu.org; Tue, 24 Oct 2023 05:47:47 -0400 Original-Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-7b5fd0b7522so1136329241.0 for ; Tue, 24 Oct 2023 02:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698140864; x=1698745664; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2GQAYVB8yy2y2wzc6oEJ37SbsGqlLaImhbo0Z2MbV/c=; b=VIyxN2BiTMlEYUBhOCib2iu0q3+n7PyNGvxe5xQHWyH5VxBj2VjSsCq55X9AicQHUm voqc5nDbPfuvz1lqsETsfYEPPdw7sPsjgF1zMO3Qe5bLbGrI7vXsbYjWVc58DylMPxrI XpZLevry9XI9SLwgJQlGUVAYtR24cIezSFQI9+B9HsDsP7DzCBswm+anudgCuydlRlV4 Q1R6yNGujhxReJCKdXMGeakN8YkgQoQPjBVCrGr1o2VJhUdNXVJd/a5ryQs7CrIU2Dj5 05Dw6CUjGT4iVgb2ZAD3dUnNNaw8vz4uEsb4SKyZmGiYJymPubQW9W70e34uy7M9rqMQ 0VCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698140864; x=1698745664; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2GQAYVB8yy2y2wzc6oEJ37SbsGqlLaImhbo0Z2MbV/c=; b=W9MlPPqiqLm0h8OhgOb/xa6NhM+oT8F4jSOmNrM8TkfCbLsDXi1oE7TOUSxwABk/qI 86VllOCJ6IHL8E56rfy1kxeFSMx79UlfCeEWcH8TLRe/wgybaNNz4UI+gTc9QhPv8TRb E6anf0Mg47O3vu0FFPCu8XBDs/2+ptRD8+bD/4JRqOpHDQ4ANtL44ZcEd/zqKKZtgCd9 7N7N1a6eVICjk1DzXcecZDM4vFRG658dmJ7fdm0ogN4s1M0Ym4SoKVF8GJrRW49fgdAo LN6NOFfcXqDltKCMmgO3PP7TgQm/Q9Uj5IeeIEzf+ph8LSeIVFayMtK+qruatgVwZir+ e2QQ== X-Gm-Message-State: AOJu0YxFJapX7/FW7gPJHhcBnY/aTSGPhtmxsp9DfH+EAtZq8S6CHZU5 RMhTRKPdNGxPKoD36dyiVf0IFO2LF1moPg37mdsX4aQeOBo= X-Google-Smtp-Source: AGHT+IE7jACbh08bmoWm5rYbhNfilBz6ZOwKD+xTEAEs6cwFllh3sjqGRUZ1lWJJqs5IXlVxUQRE6FwofLB2WIqDf1k= X-Received: by 2002:a67:cb82:0:b0:454:701c:7717 with SMTP id h2-20020a67cb82000000b00454701c7717mr7030910vsl.5.1698140864658; Tue, 24 Oct 2023 02:47:44 -0700 (PDT) In-Reply-To: <87zg08pe1q.fsf@mat.ucm.es> Received-SPF: pass client-ip=2607:f8b0:4864:20::92e; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92e.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145366 Archived-At: On Tue, 24 Oct 2023 at 16:26, Uwe Brauer wrote: > Here is the problem. Suppose you have text like this > > this is important blabla > but we also want > > So I want to obtain > > this is important blabla but we also want > > The easiest way of doing it, is to put the cursor on b of but and run > joint-line (which is an alias for delete-indentation) > > However most of the time my cursor is on a in blabla I have the following function on M-J, in addition to standard delete-indentation on M-^: (defun yk-join-lines () "Join the current line with the next one." (interactive) (delete-indentation 1)) (Incidentally, they make up a good pair as J is just below 6 on Colemak.)