GNU bug report logs - #26569
Parindent doesn't work according to description

Previous Next

Package: emacs;

Reported by: Saideep Bhosle <saideep <at> outlook.com>

Date: Wed, 19 Apr 2017 21:18:02 UTC

Severity: minor

Merged with 32061

To reply to this bug, email your comments to 26569 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26569; Package emacs. (Wed, 19 Apr 2017 21:18:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Saideep Bhosle <saideep <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 19 Apr 2017 21:18:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Saideep Bhosle <saideep <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Parindent doesn't work according to description
Date: Wed, 19 Apr 2017 07:25:39 +0000
[Message part 1 (text/plain, inline)]
Parindent (paragraph-indent-text-mode) doesn't work as described in help.
After starting a paragraph with spaces and adding a newline (return) after
the first line removes the spaces added at the beginning.
Also, cannot start a new paragraph with tab in Parindent.
M-q mushes all paragraphs not separated by blank lines together.
This happens in Emacs 24.5 and 25.1.1 (On Debian 9 and Windows).
I tried Emacs 22.3 on Windows and it doesn't have this problem.


Thanks,
Saideep
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26569; Package emacs. (Wed, 19 Apr 2017 23:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 26569 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Saideep Bhosle <saideep <at> outlook.com>
Cc: 26569 <at> debbugs.gnu.org
Subject: Re: bug#26569: Parindent doesn't work according to description
Date: Wed, 19 Apr 2017 19:44:26 -0400
Saideep Bhosle <saideep <at> outlook.com> writes:

> Parindent (paragraph-indent-text-mode) doesn't work as described in help.
> After starting a paragraph with spaces and adding a newline (return) after
> the first line removes the spaces added at the beginning.

Yeah, this can be avoided by turning off electric-indent-mode.

> Also, cannot start a new paragraph with tab in Parindent.

It's because the indent-line-function is set to indent-to-left-margin.
Doing C-q TAB works.

Setting indent-line-function to a smarter function would fix this and
the newline problem.

> M-q mushes all paragraphs not separated by blank lines together.

I'm not able to reproduce this problem though.  As long the paragraphs
start with whitespace M-q doesn't combine them, as documented.  For
example, with the following buffer contents, pressing M-q doesn't change
the buffer:

   xxx xxxxxxxx xxxxx xxxxxx xxxxx xxx xxxxx xxx xxxxxxx xxx xxx xxx
xx xxxx x
   xxxx xxx xxxx xx xx xx xxxxxxx xxxx xxxxxxx xxx xxx xxx xx xxxx
xxxxx xx




Forcibly Merged 26569 32061. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 05 Jul 2018 21:45:02 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 347 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.