From unknown Mon Aug 11 21:14:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11636 <11636@debbugs.gnu.org> To: bug#11636 <11636@debbugs.gnu.org> Subject: Status: 23.1; wrong comment indentation Reply-To: bug#11636 <11636@debbugs.gnu.org> Date: Tue, 12 Aug 2025 04:14:59 +0000 retitle 11636 23.1; wrong comment indentation reassign 11636 emacs submitter 11636 Jack Duthen severity 11636 minor tag 11636 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 06:51:08 2012 Received: (at submit) by debbugs.gnu.org; 6 Jun 2012 10:51:08 +0000 Received: from localhost ([127.0.0.1]:60086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScDpT-0000IT-H8 for submit@debbugs.gnu.org; Wed, 06 Jun 2012 06:51:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52967) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScDp7-0000Hh-Gj for submit@debbugs.gnu.org; Wed, 06 Jun 2012 06:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScDmr-0001kh-PD for submit@debbugs.gnu.org; Wed, 06 Jun 2012 06:48:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:59806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScDmr-0001kQ-J9 for submit@debbugs.gnu.org; Wed, 06 Jun 2012 06:48:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScDml-0002Ya-5f for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2012 06:48:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScDmh-0001jj-FY for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2012 06:48:18 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:43167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScDmh-0001jS-7n for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2012 06:48:15 -0400 Received: by yenm7 with SMTP id m7so5588316yen.0 for ; Wed, 06 Jun 2012 03:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=F+ksGkBtjKJE5EQAQimThZas6L7PrRYH1KxAHanZ3JY=; b=oCvIMXchWF1HqRCeMtl6oZOo5Y0tlb+y2QiPcDA19wI4WDGnJx2IsLjGLvl7Pdz+3O mkE+MV0kphHhIV7M6vQC+WNWlxJk4UxE28UoEBhDJjcDn5qG1I4JjHc/ejygOOvFgKCM ccZRC99cWOmEckyKqI3KZdXL7o0yiZEDOwmaawOf1IvAz3VUr0LznLMgnrUdKB015kBI dwVUAMvGv5klDOGhSvwKsjdVianeiXdsMhEyhRopgZyjooJvwGjbhUpySnNyb3CaL3WT CoqQAlpMN4WMWGtZcFDgAaGE8+WeAupSPIuGniDVY/SZyqCAWkn29Rv0oylon5hdIO6r YZIQ== Received: by 10.60.29.41 with SMTP id g9mr19546281oeh.18.1338979693023; Wed, 06 Jun 2012 03:48:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.51.195 with HTTP; Wed, 6 Jun 2012 03:47:52 -0700 (PDT) From: Jack Duthen Date: Wed, 6 Jun 2012 12:47:52 +0200 X-Google-Sender-Auth: DV9tToLG0JUKmCqgIJ5cBeaC8_0 Message-ID: Subject: 23.1; wrong comment indentation To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --text follows this line-- Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: $ cat bug-comment-col.el (defun jd-sh-ft-convert-logger_warn-into-COM_log () (interactive) (query-replace-regexp (concat (jd-re-or "COM_writeLog 1") ; (jd-re-paren "return ") ; \2 \n "return " (jd-re-paren "[0-9]")) ; "COM_log \\3\\2\\3")) $ emacs -Q bug-comment-col.el M-: comment-column RET => 40 M-< C-M-q => the semicolons are not aligned Is this a bug? If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) of 2011-03-04 on roseapple, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10900000 configured using `configure '--build=i686-linux-gnu' '--host=i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i686-linux-gnu' 'host_alias=i686-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f b u C-M-q C-w C-M-a C-M-q C-x C-s C-w C-M-a C-M-q C-w C-M-a C-M-q C-k C-M-a C-M-q 1 C-_ C-_ C-k C-n C-n C-b C-b C-k C-n C-k C-M-a C-M-q C-_ C-_ C-M-a C-M-q C-_ C-_ C-_ C-_ C-_ C-_ C-_ C-M-a C-M-q C-k C-M-a C-M-q C-_ C-_ C-k C-M-a C-M-q C-f C-x C-s C-d C-M-a C-M-q C-_ C-_ C-f C-f M-d C-d C-f C-f C-k x C-M-a C-M-q C-_ C-_ C-_ C-_ C-_ C-M-a C-M-q C-k C-M-a C-M-q C-_ C-_ C-SPC C-b C-b C-b C-b C-b C-b C-b C-b C-b C-w C-M-q C-M-a C-M-q C-_ C-_ SPC x x x x x x x x x x x x x x x C-k C-M-a C-M-q C-_ C-_ C-_ C-d C-M-a C-M-q C-d C-M-a C-M-q C-_ C-_ C-_ C-_ C-f C-f C-f C-f C-f C-f C-f C-f C-e C-b C-M-a C-M-q C-_ C-_ C-x C-s C-d M-; SPC C-M-a C-M-q C-_ C-_ C-_ C-_ C-M-a C-M-q M-: M-p c o m m e n t - c o l C-a C-4 C-0 C-f C-M-a C-M-q Recent messages: Mark set Undo! [2 times] (No changes need to be saved) Mark set Undo! [4 times] Mark set goto-history-element: Beginning of history; no preceding item 40 (#o50, #x28) Mark set /usr/bin/mail is not an executable. Setting mail-interactive to t. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 09:21:18 2012 Received: (at 11636) by debbugs.gnu.org; 6 Jun 2012 13:21:19 +0000 Received: from localhost ([127.0.0.1]:60199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScGAo-0004XI-Na for submit@debbugs.gnu.org; Wed, 06 Jun 2012 09:21:18 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:33858) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScGAV-0004WQ-4k for 11636@debbugs.gnu.org; Wed, 06 Jun 2012 09:21:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCqoy/2dsb2JhbABEtBGBCIIWAQVWIxALNBIUGA0kiCG6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="189926963" Received: from 76-10-170-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.170.50]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Jun 2012 09:18:45 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9194359113; Wed, 6 Jun 2012 09:18:39 -0400 (EDT) From: Stefan Monnier To: Jack Duthen Subject: Re: bug#11636: 23.1; wrong comment indentation Message-ID: References: Date: Wed, 06 Jun 2012 09:18:39 -0400 In-Reply-To: (Jack Duthen's message of "Wed, 6 Jun 2012 12:47:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > (jd-re-or "COM_writeLog 1") ; > (jd-re-paren > "return ") ; \2 \n "return " > (jd-re-paren "[0-9]")) ; > "COM_log \\3\\2\\3")) [...] > Is this a bug? I don't think so: - The second comment is not moved to the same column as the first because that would push the text past fill-column. If you shorten the second comment or if you increase fill-column, then the 3 comments will be aligned. - The first is not moved to the same column as the second because Emacs doesn't look past a non-commented line. If you add a comment on the `jd-re-paren' line, then Emacs will look further and will align all 4 comments. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 07 05:13:04 2012 Received: (at 11636) by debbugs.gnu.org; 7 Jun 2012 09:13:04 +0000 Received: from localhost ([127.0.0.1]:32998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScYm7-0000Cu-VB for submit@debbugs.gnu.org; Thu, 07 Jun 2012 05:13:04 -0400 Received: from mail-ob0-f172.google.com ([209.85.214.172]:49161) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScYln-0000Bp-ON for 11636@debbugs.gnu.org; Thu, 07 Jun 2012 05:13:03 -0400 Received: by obbeh20 with SMTP id eh20so784388obb.3 for <11636@debbugs.gnu.org>; Thu, 07 Jun 2012 02:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=LF6nGrApD2nUwSC6GkKmQ3BdfZrjlr88lvaRm8PXKsY=; b=yb66wpEV06mCNvODxzH2k6M7okaEvLpsiraV4MKmnYtYJ1on6F1bTN3KCw0dopHP1G Z4l4QiE7tAaY8jgUVF3VloDVWizPh5B1skqhKNvTEbgC7aCtvAE0Er0RZQhGpgknoE9S Wd7UU4V7HhTYFn5JaYmKOD54mrKeW8rV8U/TufcuPKk8JNhQYtLAc6ga42JvLMD24IzE yi5l+kJTZR8Bd4YGPcL/CXqZzp+Cq+twmkidmZRJAl5uPvAthup+H9NRQLACSwPjIkbC /ZsUij8qHcGY8Q7+/bKNBXTpW2kshLiFCARjPzTrPi+uYSduIKD/oqDRsWxm6RUP0nkZ qAJQ== Received: by 10.60.20.198 with SMTP id p6mr1214489oee.60.1339060223122; Thu, 07 Jun 2012 02:10:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.51.195 with HTTP; Thu, 7 Jun 2012 02:10:02 -0700 (PDT) In-Reply-To: References: From: Jack Duthen Date: Thu, 7 Jun 2012 11:10:02 +0200 X-Google-Sender-Auth: NfaShxBDq-fyRe9iLMVl_Q5cqUc Message-ID: Subject: Re: bug#11636: 23.1; wrong comment indentation To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Ok. Many thanks for the explanation. I made a mistake. (I'm sorry about that...) So, I just read carefully the docs to understand what happened. I didn't know `comment-dwim' (maybe it's new since emacs 14...) and believed the action of M-; was just to insert or reindent a comment past the right end of a normal code instruction, but it seems to do much more. The documentation of the function `comment-dwim' itself does not refer to the behaviour of the variable `fill-column', but it refers to the function `comment-indent', whose documentation refers to the variable `comment-column', whose documentation refers to the variable `comment-fill-column', whose documentation refers to the variable `fill-column'. So, yes, the documentation describes clearly (sic!) the behaviour you reminded me in your answer! (I should have RTFM! and apologize!) Nevertheless there is no such reference in the Emacs info: 30.5 Manipulating Comments and its sections (30.5.1 30.5.2 30.5.3): * Comment Commands:: Inserting, killing, and aligning comments. * Multi-Line Comments:: Commands for adding and editing multi-line comments= . * Options for Comments::Customizing the comment features. (though 30.5.2 refers to `auto-fill-mode' (which is not in use in my example)) Also if you lookup-subject-in-emacs-manual or -in-elisp-manual with comment-fill-column, you will find no reference to it. Maybe there should be a word about it in =A730.5.1 or =A730.5.3 ? 2012/6/6 Stefan Monnier : >> =A0 =A0 (jd-re-or "COM_writeLog 1") =A0 =A0 =A0 =A0 ; >> =A0 =A0 (jd-re-paren >> =A0 =A0 =A0"return ") =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ; \2 <= msg> \n "return " >> =A0 =A0 (jd-re-paren "[0-9]")) =A0 =A0 =A0 =A0 =A0 =A0; >> =A0 =A0"COM_log \\3\\2\\3")) > [...] >> Is this a bug? > > I don't think so: > - The second comment is not moved to the same column as the first > =A0because that would push the text past fill-column. =A0If you shorten t= he > =A0second comment or if you increase fill-column, then the 3 comments > =A0will be aligned. > - The first is not moved to the same column as the second because Emacs > =A0doesn't look past a non-commented line. =A0If you add a comment on the > =A0`jd-re-paren' line, then Emacs will look further and will align all > =A04 comments. > > =A0 =A0 =A0 =A0Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 13 22:14:25 2018 Received: (at 11636) by debbugs.gnu.org; 14 Feb 2018 03:14:25 +0000 Received: from localhost ([127.0.0.1]:42020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elnWb-0003ev-AD for submit@debbugs.gnu.org; Tue, 13 Feb 2018 22:14:25 -0500 Received: from mail-it0-f44.google.com ([209.85.214.44]:33816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elnWZ-0003ec-DR; Tue, 13 Feb 2018 22:14:23 -0500 Received: by mail-it0-f44.google.com with SMTP id j21so11521025ita.1; Tue, 13 Feb 2018 19:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CfhULFRp8CjTSMxcIqSRQ9JlRO+asFAYYkl+8SENr0k=; b=rc7pXKvGqh7UrigO2P21z/zHaXQQMAFebnvOz8YBJxVXabuJrBBZPNq87k8FcYK7z6 +z5kP3VqC9FKStVhlYN7mMh649iHR8QQisSCnJ/U+keTs4HmeXPRXnMQln1uVaSXUUfZ YLgu6TQ6BPcwVJHo4AA+hl4bcLJTHR0W5ZO/mSZt16/7bGaJGFCYuJmkdI2lUxa5rnUf LjauJw6KDkxLf/z1p+yzAE+CbyNMfQVOn2s2nidxPT2AuLL35C5Lx5IqHodJ4h6bRypE yW12tr/ECp3zsCfX802igVZr7X6LJVylLOVBT0VHRhz8b8fuC//c6SW44180odz8Zfiz 525w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=CfhULFRp8CjTSMxcIqSRQ9JlRO+asFAYYkl+8SENr0k=; b=CXjfSZR7h+kMX9gqHE0enHcN7aY1kqanEi/DeL0EsVtLme6apcJEkQygbTg5bprDYy BnoY54LGAmAK2R/cWRaHjn2d/i8u84m2RIYmuhnmwZP6TkfYz5XV4DayoLbMBKfGzOJh xL0d+QDVxdgQv8REk3HfW24SGLWV1pK90anJQ3U9cVm5hUuIQ+2jRIOjbI1UhuCyAkZv O5qNOpHIVYC732neIILTI/nH+QLflTlUHAuPpQFUuO1uL3V909QfANxA1KHQiaBlQn2E XUtEsmg2HYiFfAlR9IIDoytdrpXLXNSaglxI3O3ABXV6Q7IG7xWBO8YA0fj5JFF/bHCp TJIg== X-Gm-Message-State: APf1xPBpVuc/iKSe2+kTrjGqJIaqDcA1uYNWTTH0B7uQVdZ/rWUe/RAC xYtiQUxKai/qVVqzdh07lfvu/g== X-Google-Smtp-Source: AH8x225Rd/qpqqLUmZTQO0jNyaSqu9RNOCPMUiVDnRYNPKybcyahqL9gc5JpTfc7iwx5wMD0iGKhBw== X-Received: by 10.36.120.80 with SMTP id p77mr4122361itc.115.1518578057786; Tue, 13 Feb 2018 19:14:17 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f16sm15084974iob.75.2018.02.13.19.14.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Feb 2018 19:14:16 -0800 (PST) From: Noam Postavsky To: Jack Duthen Subject: Re: bug#11636: 23.1; wrong comment indentation References: Date: Tue, 13 Feb 2018 22:14:14 -0500 In-Reply-To: (Jack Duthen's message of "Thu, 7 Jun 2012 11:10:02 +0200") Message-ID: <8760709sah.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tags 11636 + patch quit Jack Duthen writes: > Also if you lookup-subject-in-emacs-manual or -in-elisp-manual > with comment-fill-column, you will find no reference to it. > > Maybe there should be a word about it in =C2=A730.5.1 or =C2=A730.5.3 ? How about this: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Document-comment-fill-column-in-the-manual-Bug-11.patch Content-Description: patch >From 8f455ca6dfe5361783bf3e897527816f558dd9c9 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 13 Feb 2018 22:10:03 -0500 Subject: [PATCH v1] Document comment-fill-column in the manual (Bug#11636) * doc/emacs/programs.texi (Comment Commands) (Options for Comments): Mention comment-fill-column. --- doc/emacs/programs.texi | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 4289124545..6c650a4ccf 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -989,7 +989,8 @@ Comment Commands @key{TAB} would indent to (@pxref{Basic Indent}). If the line is non-blank, the comment is placed after the last non-whitespace character on the line; normally, Emacs tries putting it at the column -specified by the variable @code{comment-column} (@pxref{Options for +specified by the variable @code{comment-column} while keeping the end +of the comment within @code{comment-fill-column} (@pxref{Options for Comments}), but if the line already extends past that column, it puts the comment at some suitable position, usually separated from the non-comment text by at least one space. In each case, Emacs places @@ -1088,13 +1089,17 @@ Options for Comments @subsection Options Controlling Comments @vindex comment-column +@vindex comment-fill-column @kindex C-x ; @findex comment-set-column As mentioned in @ref{Comment Commands}, when the @kbd{M-j} command -adds a comment to a line, it tries to place the comment at the column -specified by the buffer-local variable @code{comment-column}. You can -set either the local value or the default value of this buffer-local -variable in the usual way (@pxref{Locals}). Alternatively, you can +adds a comment to a line, it tries to place the comment starting at +the column specified by the buffer-local variable +@code{comment-column} and ending before @code{comment-fill-column} (or +if that is @code{nil}, then the value of @code{fill-column}, +@pxref{Fill Commands}). You can set either the local value or the +default value of these buffer-local variables in the usual way +(@pxref{Locals}). Alternatively, you can type @kbd{C-x ;} (@code{comment-set-column}) to set the value of @code{comment-column} in the current buffer to the column where point is currently located. @kbd{C-u C-x ;} sets the comment column to -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 13 23:45:03 2018 Received: (at 11636) by debbugs.gnu.org; 14 Feb 2018 04:45:03 +0000 Received: from localhost ([127.0.0.1]:42067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elowI-0007hi-Tq for submit@debbugs.gnu.org; Tue, 13 Feb 2018 23:45:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elowG-0007gu-UA for 11636@debbugs.gnu.org; Tue, 13 Feb 2018 23:45:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elow8-0001Ar-Aj for 11636@debbugs.gnu.org; Tue, 13 Feb 2018 23:44:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elovy-00019L-TM; Tue, 13 Feb 2018 23:44:42 -0500 Received: from [176.228.60.248] (port=4648 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elovx-0004gw-W9; Tue, 13 Feb 2018 23:44:42 -0500 Date: Wed, 14 Feb 2018 06:44:34 +0200 Message-Id: <83d118xjrh.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <8760709sah.fsf@users.sourceforge.net> (message from Noam Postavsky on Tue, 13 Feb 2018 22:14:14 -0500) Subject: Re: bug#11636: 23.1; wrong comment indentation References: <8760709sah.fsf@users.sourceforge.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org, monnier@iro.umontreal.ca, duthen.mac.01@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Noam Postavsky > Date: Tue, 13 Feb 2018 22:14:14 -0500 > Cc: 11636@debbugs.gnu.org, Stefan Monnier > > Jack Duthen writes: > > > Also if you lookup-subject-in-emacs-manual or -in-elisp-manual > > with comment-fill-column, you will find no reference to it. > > > > Maybe there should be a word about it in §30.5.1 or §30.5.3 ? > > How about this: Sounds good, but could you please break those two longish sentences into 2, so that the text reads more easily? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 20:37:00 2018 Received: (at 11636) by debbugs.gnu.org; 15 Feb 2018 01:37:00 +0000 Received: from localhost ([127.0.0.1]:43483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em8Ts-0008GJ-HR for submit@debbugs.gnu.org; Wed, 14 Feb 2018 20:37:00 -0500 Received: from mail-it0-f42.google.com ([209.85.214.42]:36966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em8Tr-0008G6-Gn for 11636@debbugs.gnu.org; Wed, 14 Feb 2018 20:36:59 -0500 Received: by mail-it0-f42.google.com with SMTP id d10so11258502itj.2 for <11636@debbugs.gnu.org>; Wed, 14 Feb 2018 17:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Xoc77mqUHaCgsobUxpBKg3U1Lodsu11mQzzoq7cMgjU=; b=QxEt3R24TAwQUtfIvPzFE1/RUPrJkfh13Tiw17lsElhqhu7aYnuQBgniHrBXfc5gM7 uSZk9PDdAthcOy/kbXCnvMZvn2wJXbVxjN5f8i4iJNoPB2OMdwFjIHILmUL1gWBwKlBM G8ghSm73exBSmhTaydRFF3z3ZPqq4cNzjeFRDgv2QLo/4FvHe9kdoLubrj4v1GvU4Ckw CZNOf3Qv1kkYlBBrL8iNhAggLt+f3RGkHuXRvaGDQ3yiUErFWPT6niuxWxwPFVtIn9ES IJu2b6PkTGBpp3jVuB+P8cQlxtcW+TmKwwKS+FVXGEUDIY86Jbal5yx2LcZCdFqisNOE /huw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Xoc77mqUHaCgsobUxpBKg3U1Lodsu11mQzzoq7cMgjU=; b=V100V9+7PY3Atfx7ib+hv2ADVYsZhs/+4/uHOlUiFS80zlqrnCMkDw1sdnxKf6Pyi8 x08NKZBfsLJ9KWtCtITZDZdLqjWXPSMjJwDuLG1HyeySL99vmPGqOGgzjRMWtePcyTgK /lfs+iXflUOz8E78zX/jIguCPhb1OhbkPegVHvSk73A7LwkRMAGJxlETXac2t6e4/o4D t5CDkEdoVdNbb2uXsJ11hEXMRMcqDccObX2Rh2AmdcToZqjy0liiQL6TtzxOYFhiRLwP F7zUeH8t2rLE1432WY91Qjvdx16ojTaxY5oOQ92jeYgTolN1Y6tOdjqQWO15AvmCD6QS 0rBA== X-Gm-Message-State: APf1xPDGmWo4eKFGQKrYcy/za7tBGpEYwcc8OTQKFhjuZ3Er8EspolMe JrZwW3jweSpA3doZ+J3X0tU= X-Google-Smtp-Source: AH8x225PHuDp9aV1y/HGCYCaBD0KOwqD5jSqs7CQDPy9i7gXzfOTmHUJwCva0ciy2s0gyBZh3DTkAw== X-Received: by 10.36.203.70 with SMTP id u67mr1325226itg.48.1518658613908; Wed, 14 Feb 2018 17:36:53 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id x82sm14261009itb.36.2018.02.14.17.36.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 17:36:52 -0800 (PST) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#11636: 23.1; wrong comment indentation References: <8760709sah.fsf@users.sourceforge.net> <83d118xjrh.fsf@gnu.org> Date: Wed, 14 Feb 2018 20:36:50 -0500 In-Reply-To: <83d118xjrh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Feb 2018 06:44:34 +0200") Message-ID: <87fu63824t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org, monnier@iro.umontreal.ca, duthen.mac.01@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Sounds good, but could you please break those two longish sentences > into 2, so that the text reads more easily? Is this better? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v2-0001-Document-comment-fill-column-in-the-manual-Bug-11.patch Content-Description: patch >From cc0349f11f9e45afcad696aed35d80dd3d3e5f70 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 13 Feb 2018 22:10:03 -0500 Subject: [PATCH v2] Document comment-fill-column in the manual (Bug#11636) * doc/emacs/programs.texi (Comment Commands) (Options for Comments): Mention comment-fill-column. --- doc/emacs/programs.texi | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 4289124545..7d54a99c09 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -988,13 +988,13 @@ Comment Commands characters), the comment is indented to the same position where @key{TAB} would indent to (@pxref{Basic Indent}). If the line is non-blank, the comment is placed after the last non-whitespace -character on the line; normally, Emacs tries putting it at the column -specified by the variable @code{comment-column} (@pxref{Options for -Comments}), but if the line already extends past that column, it puts -the comment at some suitable position, usually separated from the -non-comment text by at least one space. In each case, Emacs places -point after the comment's starting delimiter, so that you can start -typing the comment text right away. +character on the line. Emacs tries to fit the comment between the +columns specified by the variables @code{comment-column} and +@code{comment-fill-column} (@pxref{Options for Comments}), if +possible. Otherwise, it will choose some other suitable position, +usually separated from the non-comment text by at least one space. In +each case, Emacs places point after the comment's starting delimiter, +so that you can start typing the comment text right away. You can also use @kbd{M-;} to align an existing comment. If a line already contains the comment-start string, @kbd{M-;} realigns it to @@ -1088,13 +1088,16 @@ Options for Comments @subsection Options Controlling Comments @vindex comment-column +@vindex comment-fill-column @kindex C-x ; @findex comment-set-column As mentioned in @ref{Comment Commands}, when the @kbd{M-j} command -adds a comment to a line, it tries to place the comment at the column -specified by the buffer-local variable @code{comment-column}. You can -set either the local value or the default value of this buffer-local -variable in the usual way (@pxref{Locals}). Alternatively, you can +adds a comment to a line, it tries to place the comment between the +columns specified by the buffer-local variables @code{comment-column} +and @code{comment-fill-column} (or if that is @code{nil}, then the +value of @code{fill-column}, @pxref{Fill Commands}). You can set +either the local value or the default value of these buffer-local +variables in the usual way (@pxref{Locals}). Alternatively, you can type @kbd{C-x ;} (@code{comment-set-column}) to set the value of @code{comment-column} in the current buffer to the column where point is currently located. @kbd{C-u C-x ;} sets the comment column to -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 11:24:58 2018 Received: (at 11636) by debbugs.gnu.org; 15 Feb 2018 16:24:58 +0000 Received: from localhost ([127.0.0.1]:45011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emMLC-0000vN-9J for submit@debbugs.gnu.org; Thu, 15 Feb 2018 11:24:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emMLA-0000vB-El for 11636@debbugs.gnu.org; Thu, 15 Feb 2018 11:24:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emML1-0002RT-38 for 11636@debbugs.gnu.org; Thu, 15 Feb 2018 11:24:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emMKq-00024T-Vr; Thu, 15 Feb 2018 11:24:37 -0500 Received: from [176.228.60.248] (port=2338 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emMKq-0008TU-BW; Thu, 15 Feb 2018 11:24:36 -0500 Date: Thu, 15 Feb 2018 18:24:34 +0200 Message-Id: <83fu62w799.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87fu63824t.fsf@gmail.com> (message from Noam Postavsky on Wed, 14 Feb 2018 20:36:50 -0500) Subject: Re: bug#11636: 23.1; wrong comment indentation References: <8760709sah.fsf@users.sourceforge.net> <83d118xjrh.fsf@gnu.org> <87fu63824t.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org, monnier@iro.umontreal.ca, duthen.mac.01@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Noam Postavsky > Cc: 11636@debbugs.gnu.org, monnier@iro.umontreal.ca, duthen.mac.01@gmail.com > Date: Wed, 14 Feb 2018 20:36:50 -0500 > > Eli Zaretskii writes: > > > Sounds good, but could you please break those two longish sentences > > into 2, so that the text reads more easily? > > Is this better? Yes, much better, thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 16 22:26:06 2018 Received: (at 11636) by debbugs.gnu.org; 17 Feb 2018 03:26:06 +0000 Received: from localhost ([127.0.0.1]:47406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emt8X-0000Ki-Qe for submit@debbugs.gnu.org; Fri, 16 Feb 2018 22:26:05 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:41202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emt8V-0000K8-KG; Fri, 16 Feb 2018 22:26:03 -0500 Received: by mail-io0-f181.google.com with SMTP id e4so6111459iob.8; Fri, 16 Feb 2018 19:26:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=TDIu6ZYbd/a0hiaaAhYX77p/JJUCX0dxD6c2Pa/6jvA=; b=qN2GE9b0lBCHgkzZudtpr+a7jDUMOT8dp4wMYeRXVoOXD3dVX9CmN29wiq9gikqdPL Ua+GOJIyenOTGbGKWmCCQFbyYSaVu1gzzZztFtnqLWl5/fkaf6z3sMGBKdK6wFy5YMcQ jK6BjU0Ox0U43r7wC2PpzSdF9wa4T+j0n69bwmmwhBcl8mq1YUMrZrgP6ZX8IlJ6z4Xc 6b7gMYwBoTvygwLCaiDVzqkOGzlTUyCs7xIol2H9gH1D/jOxEHMZdezz0A6xgDVK242Q 8RaME41WOBSlaVT91IN2zq5oAFTZSumB3Ezqn/rZ9OKun5B5QVF6kq/6rDEVcpZz1FkE PSIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=TDIu6ZYbd/a0hiaaAhYX77p/JJUCX0dxD6c2Pa/6jvA=; b=g7wBTnyMJqfTji6dNwsYuZFFhTh47OUzTkntI9+F2FqxnqzIq8s0o+FVzeLFJnAoPx UF9MfKfgKnCcGgNqcA25TRhYpJ+/UeZjxoI4XaMAlLkf4G7jLSM+3evUB6QBFGQBIaBQ cPUaAUK5gG1KGTJ/mqumRQlMhjZ0/ksUZsm/HUM75qEMyyxd4h7V+L4j4cN8MAC7/iTB pOGAh670xRTYw23IiJO1GR5ESrIgb0+xhhogMh5/vPeX+5dIDSi2GCAEJAz2oYCnKqCH rq4cyf8jAhlYcQTY6hVRaHTKhvkdU1aFjs8PdJ76hGohcS6DJxWFKx26/DfXNstYLuLO rD/w== X-Gm-Message-State: APf1xPAYwezgLCz4jf+Wg7PfF81UWF5tCiqgj7cS9D8h45oqoLRkU+zQ nUIbID23rVcC2LigEBwpx1Vx2w== X-Google-Smtp-Source: AH8x2274puzbIk8dOwZwn84+gtpkXgNEkDn7QGfqMwibzRthCKgnhqAwmVSF+WZ7PDf7A4ersrkpSQ== X-Received: by 10.107.129.8 with SMTP id c8mr11039741iod.218.1518837957693; Fri, 16 Feb 2018 19:25:57 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id c15sm3193559itd.4.2018.02.16.19.25.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Feb 2018 19:25:56 -0800 (PST) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#11636: 23.1; wrong comment indentation References: <8760709sah.fsf@users.sourceforge.net> <83d118xjrh.fsf@gnu.org> <87fu63824t.fsf@gmail.com> <83fu62w799.fsf@gnu.org> Date: Fri, 16 Feb 2018 22:25:54 -0500 In-Reply-To: <83fu62w799.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Feb 2018 18:24:34 +0200") Message-ID: <87o9ko70vx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11636 Cc: 11636@debbugs.gnu.org, monnier@iro.umontreal.ca, duthen.mac.01@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 11636 26.1 quit Eli Zaretskii writes: >> > Sounds good, but could you please break those two longish sentences >> > into 2, so that the text reads more easily? >> >> Is this better? > Yes, much better, thanks. Pushed to emacs-26. [1: 593bbdaf0b]: 2018-02-16 22:13:34 -0500 Document comment-fill-column in the manual (Bug#11636) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=593bbdaf0b890924e9d10918ba6de206bddc2eb6> From unknown Mon Aug 11 21:14:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Mar 2018 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator