From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Right justify the comments starting from the position of `#' for all lines. Date: Mon, 27 Sep 2021 17:54:47 +0800 Message-ID: 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="16755"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 12:09:02 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 1mUnZE-0004Dl-SI for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 12:09:00 +0200 Original-Received: from localhost ([::1]:50560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUnZD-0005zy-NA for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 06:08:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUnLg-0007mi-QM for help-gnu-emacs@gnu.org; Mon, 27 Sep 2021 05:55:00 -0400 Original-Received: from mail-ua1-x92a.google.com ([2607:f8b0:4864:20::92a]:40697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUnLf-0005r1-Cx for help-gnu-emacs@gnu.org; Mon, 27 Sep 2021 05:55:00 -0400 Original-Received: by mail-ua1-x92a.google.com with SMTP id i8so9677107uae.7 for ; Mon, 27 Sep 2021 02:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=dkeak+n+UzLCGRxS/sYcLT/Sr3KPdUJk3s9gmtD6vnA=; b=FfFyl2BGvco5t8fhM/pD0mnH5RyRC0r6hqIP4enNYyiqPtloxF1X7jRvJ8d5GOkqVo Xq57nH+ggXObJynhed8DEh6t3oi3sfr3NLjMqs7rd9eVjEmMMqPztQJeU3igGX2Wp8WG MrqePfWJouv5FHzwa8gfeQx02AQBbBTeRuwlaaf3Fo2eXvRVnJuo+1ZTci73mRQBqw4H 2/6ZGlTXuDYt4Y5iCQlHfn+RO3PrIVqMPdDYxyAavaGYevNjQRUa0xMK7g28KB7VSycb 7B63D5FIYuXP8SgabP86QwdamfYamWQpQ4VwJHSYUbF798k1XFGOSYxGZ4M+Ur6fQGdY uDJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dkeak+n+UzLCGRxS/sYcLT/Sr3KPdUJk3s9gmtD6vnA=; b=0MerMpNu3CvdTK15AKF5EIGGZrmocxQHKi2XFcGISaw0sKx2p20fF+gaPuCMOWX3sc EnW73IEDIswMJQkp1jbbRjrTBp382/yV95Eh1uw9BQ82Q0Vl5V0AmdKrHlBHkhxqtkpX dpWduXD1mn1RJJebGsIosIEl1qbz1dI27fPwbwlvoaswBTHZ5+KuGDW6TqhYPYkCuI9S Bz9COTpJKkHRweVvEwKKKtjDE34f0x79Ihs5baqCmsUzYzd/yrgzJHtGZ28CpKm4Eu7z PqggQkGtuK564nis81fHyEBbXsZjd7U4yFfTVUQS8B1Vrj6X+LV08ofLxN5mhTdD/qgM RgjQ== X-Gm-Message-State: AOAM530wrWDZPkxHFcdiFCjzToQnGvF7cwMdIwyQOG0lF2QGU0H9w4ij vrRtFD7j/q8Ux3Rb8CTna53wlu4AiSxnb3gU86tC6ZYzRK36Rw== X-Google-Smtp-Source: ABdhPJxkTHMjV+WPMzYTnQjnJv7CrTlqGCDUGqEb3hA4gIoOgnXuaeK0d4E31qu8Vgs9lyfvu7ui/r+gis4adZxdoOY= X-Received: by 2002:ab0:1001:: with SMTP id f1mr17319234uab.115.1632736498091; Mon, 27 Sep 2021 02:54:58 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::92a; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92a.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_40=-0.001, 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:133288 Archived-At: Suppose I've the following code snippets: foo ... # foo comments bar ... # bar comments baz ... # baz comments [...] Now, I want to right justify the comments starting from the position of `#' for all lines. Any hints/tips for achieving this goal? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province