From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "H. Dieter Wilhelm" Newsgroups: gmane.emacs.bugs Subject: bug#45318: 28.0.50; mark-paragraph Date: Sun, 03 Jan 2021 23:29:00 +0100 Message-ID: <86pn2lk637.fsf@duenenhof-wilhelm.de> References: <87wnxdhh54.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9162"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: 45318@debbugs.gnu.org, Richard Stallman To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 03 23:30:16 2021 Return-path: Envelope-to: geb-bug-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 1kwBt7-0002GG-D1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Jan 2021 23:30:13 +0100 Original-Received: from localhost ([::1]:39774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwBt6-0005Yx-FF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Jan 2021 17:30:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwBsw-0005Yk-KZ for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2021 17:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwBsw-0005on-Dt for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2021 17:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kwBsw-0008LQ-9v for bug-gnu-emacs@gnu.org; Sun, 03 Jan 2021 17:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "H. Dieter Wilhelm" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jan 2021 22:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45318 X-GNU-PR-Package: emacs Original-Received: via spool by 45318-submit@debbugs.gnu.org id=B45318.160971294931991 (code B ref 45318); Sun, 03 Jan 2021 22:30:02 +0000 Original-Received: (at 45318) by debbugs.gnu.org; 3 Jan 2021 22:29:09 +0000 Original-Received: from localhost ([127.0.0.1]:38819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwBs5-0008Jv-IN for submit@debbugs.gnu.org; Sun, 03 Jan 2021 17:29:09 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]:55465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwBs4-0008Jj-50 for 45318@debbugs.gnu.org; Sun, 03 Jan 2021 17:29:08 -0500 Original-Received: from ping ([92.116.149.152]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MrhLw-1kB4wL1HlM-00nisK; Sun, 03 Jan 2021 23:29:01 +0100 In-Reply-To: <87wnxdhh54.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 19 Dec 2020 17:53:11 +0100") X-Provags-ID: V03:K1:TMC2egbxF29pxoqh2cobScvicBzjjtETtxGXavolOvEoZleVu4R Z+QYPMgjE2ta24M0Znrolj5Aq5IB7uJwc7GYPFFPCe1GssrMzhV7uZSyT3hY9G2xcMoDtS4 oeZcdyPkQ2rZSt4Je+FWBJL8MUqgQrO0fiHlrPxtXGmFBpewsm5rfM8M97aBCrmY2KhJpOD 8Z/FwtgDjiGG0u5Qzw3LA== X-UI-Out-Filterresults: notjunk:1;V03:K0:zO4+3xnnJkc=:aFDpiUrgEnkoGRcNSC6UW8 epxZ8Ycujxow8oqTYn521kd+n7gqBfcY9jfQGbTIQcTeTj512Nj98w9eiuo3X3DjcVGB5FTy+ LOWy4n6esbZM70kFEr0oRVqSJ+3/PY5lFPvFg2pI1ddfiWUbl+dOvzqW8k68iRSKNp2e2p7cr gLzA1HU/Kz5WhlbqNoWSBzNRhN+JYMjBSzP+Yro6LRW/RLhwvpZ2w4JUjzarYlXUaoszXCsPs w7XufkGQkMoLss16iT81B+WUA00hva/aBuC8tEMxMA6q4qKi29lv5zrsOiXTK69EGJPs6brRr YEdAhtH7101ai3NI5Aw1LCeyBiF5GABlqru10u+z5ZFYwmYYQ5VcJJCTH8Z22PT8ImlwFh6oz aThBC6Xv+g42d7SkH7edlM5wpOECE30R+hm8S58nF3Z0ofgUKmTjsR4L8jImm90fCNE6bJmRM MiB83selmA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197279 Archived-At: Lars Ingebrigtsen writes: > Richard Stallman writes: > >> Create a buffer in Fundamental mode, insert the text >> >> this is >> a test >> >> with no newline at the end, put point at the end, and type M-h. >> >> It does not set the mark. > > It's this bit: > > ;; don't activate the mark when at eob > ((and (eobp) (> numeric-arg 0))) I'm sorry for the mistake. Here's the correction of M-h for above bug report: modified lisp/textmodes/paragraphs.el @@ -401,8 +401,9 @@ mark-paragraph (goto-char (mark)) (forward-paragraph arg) (point)))) - ;; don't activate the mark when at eob - ((and (eobp) (> numeric-arg 0))) + ;; don't activate the mark when at eob in an empty paragraph + ;; with a positive ARG + ((and (eobp) (bolp) (> numeric-arg 0))) (t (unless (save-excursion (forward-line 0) But I would like to extend this solution for the following case: (and (eobp) (bolp)). The current implementation of M-h is doing nothing (for positive arguments) because - formally - the cursor sits in an "empty" paragraph and there are no further paragraphs below. But in this situation applying M-h clearly shows the user's intention to mark the paragraph above the cursor (and possibly further ones above when typing M-hhhh). What is your opinion? Thank you > commit eb090f65ceb0ae8a90829e911694348583135ba5 > Now added to the Cc's. Thank you Lars Dieter -- Best wishes H. Dieter Wilhelm Zwingenberg, Germany