From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Fleischer Newsgroups: gmane.emacs.help Subject: Re: Right justify the comments starting from the position of `#' for all lines. Date: Mon, 27 Sep 2021 17:43:45 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18311"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 16:51:51 2021 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 1mUryw-0004ao-QL for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 16:51:50 +0200 Original-Received: from localhost ([::1]:54720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUryv-0002nW-M5 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 10:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUrrG-00039b-PI for help-gnu-emacs@gnu.org; Mon, 27 Sep 2021 10:43:54 -0400 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:37756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUrrB-0005d8-0P for help-gnu-emacs@gnu.org; Mon, 27 Sep 2021 10:43:54 -0400 Original-Received: by mail-wr1-x42c.google.com with SMTP id t8so52478353wrq.4 for ; Mon, 27 Sep 2021 07:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XbhRoXSRpsZugc+SzHdk9qE08jdYk4uN99Guqq286gg=; b=W3jaR0ZNKlPz3ecqhGlSNWOPOKbQnnadprX80HUs2nmjg3oh1RPm9TZMr58bYJ+v5m bXvBPB6hAoeKXBW04RUf7f2EXBuY4YDxmTe+MTolxPSBnlTeXFwToYt7NkgcxmRgGJE8 UTRs4QSI+2rBy5pbT6VFKn7wP8h4dXOfNjFe1eI9L+4L6gK1irO+Z59b2sFtdIExf2h5 /0rAOOspZ0xcSyMuQXggU2PW5tpqQLhlddPhqDiaN5RoO12DzyhkXHaloiWL57o580A+ Q+I6ajwY2QgFeL0Waovsjtb5f3JJeYd0xjRvFebqiqkE7wtyL+VvHEM+Aqo5Aap81DR/ lDgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XbhRoXSRpsZugc+SzHdk9qE08jdYk4uN99Guqq286gg=; b=6mYyILmXbHk/c6g5TbUxxkDdz7dR2wK+geEoruKVHE/l2/roNvhtLkS7gqjltg03UR 2dvpLWP9mBZf9KTgqfztpgGUFlp0Bk86E6VA2GUbvU6nD/ybd3KBqXngOobT4u4asp7w knWJVYV6Ahf/fDiJRgKJV7Vf4FSD7rpmlAimD+MmaxsCbscih/pPdQryeNA7jLrkDFVQ F3GnuDSRbxgnNb/hUj9w2MR0z1G2MSUvrX0nNqYCbE57ngdKwXo/C6DzBzHWTKOPBhhb jFvHkbUMjwLniAxL4uI/lhRJMsgQPoSIkfdI69hhFzswEEAeGOAIe0Wx2wm6skBXuHAC Xarg== X-Gm-Message-State: AOAM5313/RRy7oegP3EOWBVtMK/sszxewCE9AukPykFBgiFOlbR1aCqY vWgV8JpCI6zTU1wfo2qccaO/NxZizHY= X-Google-Smtp-Source: ABdhPJxtrjD3D2revb+Toa9KrDd2aWd3huOcoxjZSjiySxSC/y3mVfW4fLxQ5eQwWms/P+hnSfBfAQ== X-Received: by 2002:a5d:64c3:: with SMTP id f3mr217290wri.73.1632753827510; Mon, 27 Sep 2021 07:43:47 -0700 (PDT) Original-Received: from Home-Mac ([141.226.13.159]) by smtp.gmail.com with ESMTPSA id u1sm13722761wmc.29.2021.09.27.07.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 07:43:47 -0700 (PDT) In-Reply-To: (Hongyi Zhao's message of "Mon, 27 Sep 2021 22:04:57 +0800") Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=danflscr@gmail.com; helo=mail-wr1-x42c.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.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:133295 Archived-At: Hongyi Zhao [2021-09-27 Mon 22:04] wrote: > Thank you very much. It really works. BTW, how to adjust/control/set > the position of the starting '#' in the ultimate aligned results? Call the function with 'C-u'. It will ask you some questions, use the same '#' but you now can specify the "amount of spacing". Another option is using the wonderful CUA-rectangle mode. It's very (!) powerful but a bit hidden, see https://emacs.stackexchange.com/a/16902 for documentation. It allows you to create blocks, fill them with strings, fill them with integers series, insert/append text, kill, reverse, align, sort and more. -- Daniel Fleischer