From: Stefan Guath <stefan@automata.se>
To: eliz@gnu.org
Cc: 31656@debbugs.gnu.org, Noam Postavsky <npostavs@gmail.com>
Subject: bug#31656: 26.1; `fill-paragraph' malformats in emacs-lisp-mode
Date: Sun, 3 Jun 2018 14:51:42 +0200 [thread overview]
Message-ID: <CAD__r--NypNXcx+HEwk5spzTy0XDhf1Dm1+BQSOM8OM4yUc+=g@mail.gmail.com> (raw)
In-Reply-To: <83a7sde0uh.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]
I agree that overriding the value of `fill-column' _only_ inside doc
strings is the sensible way to go. The only reason
`emacs-lisp-docstring-fill-column' exists in the first place is to cover
the edge case of doc strings as recommended in
https://www.gnu.org/software/emacs/manual/html_node/elisp/Documentation-Tips.html
(e.g. for apropos) which is fine, but overriding it in any other situation
is confusing. We already have a general mechanism for controlling the fill
column width on a major-mode basis through hooks and `fill-column' being
buffer-local, and should as a rule encourage the use of these consistent
control mechanisms across all major-modes - not introduce redundant
functionalities that fight each other.
The proposed solution in this email thread by Noam Postavsky is already too
greedy in that it affects _all_ strings, not only doc strings (or maybe I
misunderstood "(nth 3 (syntax-ppss))" ?). Still, it's better than the
current behavior, and I guess that identifying doc strings only (and not
strings in general) is too difficult.
On Sat, Jun 2, 2018 at 4:09 PM Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Noam Postavsky <npostavs@gmail.com>
> > Cc: 31656@debbugs.gnu.org, stefan@automata.se
> > Date: Sat, 02 Jun 2018 09:07:10 -0400
> >
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> > > Are there no use cases where we would want M-q outside of syntactic
> > > strings?
> >
> > Okay, I can think of one possibility: if you've pasted a long single
> > line consisting of a quoted list of symbols, then M-q could be a
> > convenient way of breaking it up into multiple lines. With M-q disabled
> > in Lisp code, you would need to copy the data to a temp non-lisp-mode
> > buffer in order to do that, so a bit more inconvenient.
>
> Then maybe just override the value of fill-column when inside strings?
>
[-- Attachment #2: Type: text/html, Size: 2685 bytes --]
next prev parent reply other threads:[~2018-06-03 12:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 12:50 bug#31656: 26.1; `fill-paragraph' malformats in emacs-lisp-mode Stefan Guath
2018-06-01 9:20 ` Eli Zaretskii
2018-06-01 9:39 ` Noam Postavsky
2018-06-01 10:36 ` Stefan Guath
2018-06-01 12:52 ` Eli Zaretskii
2018-06-01 14:34 ` Stefan Guath
2018-06-01 15:10 ` Eli Zaretskii
2018-06-01 12:43 ` Eli Zaretskii
2018-06-02 1:45 ` Noam Postavsky
2018-06-02 6:41 ` Eli Zaretskii
2018-06-02 13:07 ` Noam Postavsky
2018-06-02 13:25 ` martin rudalics
2018-06-02 13:34 ` Noam Postavsky
2018-06-02 14:09 ` Eli Zaretskii
2018-06-03 12:51 ` Stefan Guath [this message]
2020-08-22 15:23 ` Lars Ingebrigtsen
2022-04-13 3:06 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAD__r--NypNXcx+HEwk5spzTy0XDhf1Dm1+BQSOM8OM4yUc+=g@mail.gmail.com' \
--to=stefan@automata.se \
--cc=31656@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=npostavs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.