From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.help Subject: Re: ABC index Date: Tue, 27 Oct 2020 23:12:34 +0100 Message-ID: References: <87lffr5pom.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1584"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) 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 27 23:13:32 2020 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 1kXXDg-0000KX-1i for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 23:13:32 +0100 Original-Received: from localhost ([::1]:40690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXXDf-0004py-37 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 18:13:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXXDD-0004nT-CI for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 18:13:03 -0400 Original-Received: from sonic312-26.consmr.mail.ir2.yahoo.com ([77.238.178.97]:38022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXXD9-0002cj-Sd for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 18:13:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1603836772; bh=qvAjY56vo7mNAqzfjbsWJiboxEfMMUN8nufVYRR80C4=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject; b=BPGnokghnByNn0+D1PKzCssJ18Pn9PCoXjP+CEDXx4I/vb0EVfXRiKhFPqCh67Nj1Lyt6yNK1DGQfkhv1HziFAK35nLaMhNLxQcOjoJne7XfvO3GGPOmsWlKsxh+n+QNbTVKVv5Tzvd9vvO8D8YF61OqhjPkywHkyETx1N72Sri92453TC3Q2cZrA7TlJfwVyOYBCerp7Uy8HoQsfN4zkQZIeBxN5mp5ofs7E26/U91/RTQ6s97vPKBEKLgZl7ChqrdNYMgjmmwI0cC0sKCQ1hApcZ1iM2lHHFRm9SkSgrAL1asUhHPOwloPlHPjy1+r1eKpcQTzwMXpxqSUbEMdlA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1603836772; bh=na0EyaTlu6vFqKe3si4rzp4iRZa+osA9DGFytqicyJ2=; h=From:To:Subject:Date; b=Py9N4vat5y4Gj6/tz6Du61ah34cRmrY4xbnOcXZxmdBbIbdzrZ20rzGlFxoLGFgGrbUC6STPmHuNw6gMjaUH/wNikIRicNFe2BX6aIK/Ki+E2t8vHAMnKPu0qUDyvTVfrxCzTB0B3j8IZfltTy6qBbVhJXU+PRjBA2NsyCr8jUcPFAxUIVneQ3fDcKz8XfdP2xTXEbbqs2tZG3UgpIU/Blo7sb7jUmjbr8lKXBIJKj7zZXRVfAu4jdVtOz/iHm+PnlUFJBXehvYePoB13gGy0tCK9uLizolbEpazy+PbB1zjclexLYcleVuXpfIYK3+L6rvlVFju01H8X98UIBGTKw== X-YMail-OSG: 18lh0eQVM1mqs9zzWNG8HVCw6z9NRgjOM7L1rNIck3A4dx9nETQs7NJjy8OzX_F 60vAkU22FXZAtZuHbSFef4JhVzdMPZ3hbAupX7ml6J0TZWMboTxTlorvALlSDIvuzFRdHTymEhnL ps.4eIAM6ihrD2den3xo5jsL5.7D5NEPxQxq0B5X66OBj3r2oKGmxDXflYdVVzPdZEW_6N_60YCe 2Q4nsDyVDaPJK1VZexSZZLxmUr9fjzjftOhHJk0gQKY.R2LHxK.jxv_kP.m8mpaPg9j4MrW1P_8j 4e69lxbuIqUGgbiPOm7CoBUpiKWPuEqfYNAmGR3Uw_ECJ_Mc2TC7MWn0mttbXxW5DHstNrp46Vzi rrF0RZ3NY8P1l4BLWQhcCyl.oacVY0d9UGfn0h2k0PEu.tKGsRbfG3Ml6cVepxhX.9.BAUYaFIjr USqfx6rj6SINwnyS5Ac3zWJ_enHqWLBzK.pFfAWE7D3uGHmK6l5ItAx0YBYIZgVljdSkEe93dWMu ed4Knh2ohtVnVFdpFAB0pbcgVMdqh3m4JIxtjNuSS8L0asv7.SyuEBBgADB.o0RQMMuy2c15X48o gqdHhyI1LcIDZLwktqhi4UB9SzbfyEVCxdhaw2ecyTAWZqQO_e1wqpsMdfvMkDvhBWeqAN3qXlS7 6Nyy.VkEbqkL9olP7BDqtvXmFDtBcXkhHVTNQCthiWJCAceFTAGg_FzekOf8gpQ_.k3qmGwAd6g5 w5T6tEeHfRry79APtaq8N6Wz.YgGoztEt8nB.z.PScrRw6MeVLKt8i.oomDmkiZaIQi9zKnK2poQ 0RnoBo9rXV4vtKRlb9Y.tSXVfGXPyxGACxEa5UPZCJ Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Tue, 27 Oct 2020 22:12:52 +0000 Original-Received: by smtp410.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 471dc066cfa2c98e8a299aa431466663; Tue, 27 Oct 2020 22:12:44 +0000 (UTC) In-Reply-To: <87lffr5pom.fsf@zoho.eu> (Emanuel Berg via Users list for the's message of "Tue, 27 Oct 2020 22:23:05 +0100") X-Mailer: WebService/1.1.16868 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=77.238.178.97; envelope-from=mardani29@yahoo.es; helo=sonic312-26.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 18:12:53 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:124755 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > A friend asked how to do this > > Kate Moss > Elle Macpherson > Alicia Silverstone > > into this > > A Kate Moss > B Elle Macpherson > C Alicia Silverstone > > No idea why! > > Anyway, ABC index contest! Elisp and keyboard macros allowed! > Interactively, make a rectangle selection just before the first column and then: C-u C-x r N 65 RET %c RET In Lisp, you could write something like (defun rectangle-char-lines (beg end letter) (interactive "r\ncStart letter:") (rectangle-number-lines beg end letter "%c ")) and bind it to a key.