From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 14 17:29:08 2011 Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 21:29:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REpJT-0004yI-P3 for submit@debbugs.gnu.org; Fri, 14 Oct 2011 17:29:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1REpJS-0004xp-LD for submit@debbugs.gnu.org; Fri, 14 Oct 2011 17:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REpIm-0007FY-DJ for submit@debbugs.gnu.org; Fri, 14 Oct 2011 17:28:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:51488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REpIm-0007FU-Bt for submit@debbugs.gnu.org; Fri, 14 Oct 2011 17:28:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REpIl-0002F6-9v for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 17:28:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REpIj-0007F6-Tv for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 17:28:23 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:50526) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1REpIj-0007Ex-H0 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2011 17:28:21 -0400 Received: (qmail invoked by alias); 14 Oct 2011 21:28:18 -0000 Received: from i59F56C84.versanet.de (EHLO escher.home) [89.245.108.132] by mail.gmx.net (mp053) with SMTP; 14 Oct 2011 23:28:18 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18NMtIsea0NEg5VQoOojkfdx2kjRSbcriouukMNvm d5t5otb1IHg0Pu Received: by escher.home (Postfix, from userid 1000) id 7109A25F05; Fri, 14 Oct 2011 23:28:17 +0200 (CEST) From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 24.0.90; Elisp doc strings and fill-paragraph on region Date: Fri, 14 Oct 2011 23:28:17 +0200 Message-ID: <87zkh3uutq.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -4.6 (----) The doc string of fill-paragraph-function notes that it affects fill-paragraph but not fill-region. But fill-paragraph itself calls fill-region, and one case where this asymmetry is problematic is Elisp doc strings. Typing `M-q' with point within a doc string in Emacs Lisp mode calls lisp-fill-paragraph (via fill-paragraph-function) with fill-column set to emacs-lisp-docstring-fill-column. But selecting (and highlighting) a region within a doc string calls fill-region, which uses either the local, global or customized value of fill-column, which is most likely different from emacs-lisp-docstring-fill-column. In this case, using `M-q' on a highlighted region of a doc string (say, several paragraphs of a long doc string) produces an ill-formatted result. (The doc string of fill-paragraph-function says "it is often better to use some other hook, such as `fill-forward-paragraph-function'," but I don't see how that would help in this case.) In GNU Emacs 24.0.90.6 (i686-suse-linux-gnu, GTK+ Version 2.22.1) of 2011-10-13 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10903000 configured using `configure '--without-toolkit-scroll-bars' 'CFLAGS=-g'' From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 09:32:24 2020 Received: (at 9758) by debbugs.gnu.org; 8 Dec 2020 14:32:24 +0000 Received: from localhost ([127.0.0.1]:57050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kme2S-0002US-00 for submit@debbugs.gnu.org; Tue, 08 Dec 2020 09:32:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kme2P-0002Nu-HV for 9758@debbugs.gnu.org; Tue, 08 Dec 2020 09:32:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8QhLW2KEBffU0tyxmZg9GEtFwUatjawOniA4ZR48A38=; b=GuytsLj1s0Fiw6FZsnW6Qq1OVm Z+OEJpC2kVEwK47UGCT0oWYraifGjuQiKFdj2MK17Z8YQceUqBRh01YIxgTRLRHGyX03Lrod7stj3 RY1Omq0DCnswqhxYgms38txvXEIU8OJY6CcIxeKpvlkynBfTRI8FhGav8UbR0CvSgzpE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kme2G-0002yu-JS; Tue, 08 Dec 2020 15:32:15 +0100 From: Lars Ingebrigtsen To: Stephen Berman Subject: Re: bug#9758: 24.0.90; Elisp doc strings and fill-paragraph on region References: <87zkh3uutq.fsf@escher.home> X-Now-Playing: Rian Treanor's _File Under UK Metaplasm_: "Metrogazer" Date: Tue, 08 Dec 2020 15:32:11 +0100 In-Reply-To: <87zkh3uutq.fsf@escher.home> (Stephen Berman's message of "Fri, 14 Oct 2011 23:28:17 +0200") Message-ID: <87tuswid1w.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stephen Berman writes: > But selecting (and highlighting) a region within a doc string calls > fill-region, which uses either the local, global or customized value > of fill-column, which is most likely different from > ema [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 9758 Cc: 9758@debbugs.gnu.org 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: -1.0 (-) Stephen Berman writes: > But selecting (and highlighting) a region within a doc string calls > fill-region, which uses either the local, global or customized value > of fill-column, which is most likely different from > emacs-lisp-docstring-fill-column. (This bug report unfortunately got no response at the time.) The bug report is, in essence, that `fill-paragraph' uses `fill-paragraph-function', while `fill-region' doesn't. In practice that means that you get different filling in Emacs Lisp doc strings are filled differently if you select a region and uses the `M-q' command, or if you just use `M-q' without selecting a region. I'm not quite sure whether this is a bug or not -- it's slightly odd behaviour, but it is consistent, if you squint at it a bit. That is, `fill-region' is a non-DWIM, very predictable function, while `fill-paragraph' is more intuitive. I'm leaning towards this being intended behaviour, so I'm closing this bug report. If anybody feels strongly that this is something that should somehow be changed, feel free to reopen it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 09:32:28 2020 Received: (at control) by debbugs.gnu.org; 8 Dec 2020 14:32:28 +0000 Received: from localhost ([127.0.0.1]:57053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kme2W-0002Xc-GH for submit@debbugs.gnu.org; Tue, 08 Dec 2020 09:32:28 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kme2V-0002Rn-4y for control@debbugs.gnu.org; Tue, 08 Dec 2020 09:32:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uO3OTBDyA3KjOTgPDcYz25+KJ2MzcypikDi3/HaXYcA=; b=KLmaKjjd/1fjHUhIzFFnc0qLF6 cu6OkjhEKhb0zLcr5BmQDCwFauziLb9OE8dN72I4ouaON9d/X4f1t943p3cbv6MPCS5WStdc2Fn35 8wlJQK4aIiHwEC6dfN/Ju8DxGCYhh+666yM3Gpz02/8aDPI8gNEcei0P+0oCl33teqTE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kme2M-0002z3-HO for control@debbugs.gnu.org; Tue, 08 Dec 2020 15:32:20 +0100 Date: Tue, 08 Dec 2020 15:32:17 +0100 Message-Id: <87sg8gid1q.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9758 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 9758 wontfix close 9758 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 9758 wontfix close 9758 quit From unknown Sun Jun 22 11:40:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Jan 2021 12:24:09 +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