* Breaking change with auto-filling in Org mode with recent commit
@ 2017-08-09 14:43 Kaushal Modi
2017-08-09 16:07 ` Eric Abrahamsen
2017-08-09 16:12 ` Tom Tromey
0 siblings, 2 replies; 6+ messages in thread
From: Kaushal Modi @ 2017-08-09 14:43 UTC (permalink / raw)
To: Tom Tromey, Emacs developers
[-- Attachment #1: Type: text/plain, Size: 2076 bytes --]
Hello,
I have noticed auto-filling to stop doing the right thing after commit
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9b463fa8648b7baed95a44f4317cb7402fd8bf1c
I have verified that reverting just that commit brings things back to
stable state.
Examples in Org mode *with auto-fill-mode enabled*:
=====
#+BEGIN_SRC nim
# echo @["a", "b", "c"].join(' ') # Error: type mismatch: got (seq[string],
char)
#+END_SRC
=====
Before commit 9b463fa8:
- With point at the end of that comment line starting with "echo", if I hit
Enter, filling will *not* happen on that line.
After commit 9b463fa8:
- With point at the end of that comment line starting with "echo", if I hit
Enter, filling will happen, resulting in invalid code:
=====
#+BEGIN_SRC nim
# echo @["a", "b", "c"].join(' ') # Error: type
mismatch: got (seq[string], char)
#+END_SRC
=====
Another example:
=====
* Heading
1. =["a", "b", "c"].join(" ")= does not work, but =join(["a", "b", "c"], "
")= works.
=====
Before commit 9b463fa8:
- With point at the end of that Org list item, if I hit Enter, I will get:
=====
* Heading
1. =["a", "b", "c"].join(" ")= does not work, but =join(["a", "b",
"c"], " ")= works.
=====
- Then if I hit M-RET, I get:
=====
* Heading
1. =["a", "b", "c"].join(" ")= does not work, but =join(["a", "b",
"c"], " ")= works.
2.
=====
Notice that space inserted at the beginning of " "c"], " ")= works." line
is important!
After commit 9b463fa8:
- With point at the end of that Org list item, if I hit Enter, I will get:
=====
* Heading
1. =["a", "b", "c"].join(" ")= does not work, but =join(["a", "b",
"c"], " ")= works.
=====
- Then if I hit M-RET, I get:
=====
* Heading
1. =["a", "b", "c"].join(" ")= does not work, but =join(["a", "b",
"c"], " ")= works.
*
=====
As that extra space now not inserted, Org does not detect that I am trying
to continue in the same list and starts a new Org heading.
I have just given an example using Org. The change in Emacs core though
seems to have broken the fundamental operation of auto-filling in comments.
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 3703 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Breaking change with auto-filling in Org mode with recent commit
2017-08-09 14:43 Breaking change with auto-filling in Org mode with recent commit Kaushal Modi
@ 2017-08-09 16:07 ` Eric Abrahamsen
2017-08-09 16:12 ` Tom Tromey
1 sibling, 0 replies; 6+ messages in thread
From: Eric Abrahamsen @ 2017-08-09 16:07 UTC (permalink / raw)
To: emacs-devel
Kaushal Modi <kaushal.modi@gmail.com> writes:
> Hello,
>
> I have noticed auto-filling to stop doing the right thing after commit http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9b463fa8648b7baed95a44f4317cb7402fd8bf1c
[...]
> I have just given an example using Org. The change in Emacs core though seems to have broken the fundamental operation of auto-filling in comments.
I've been seeing the same thing in message-mode.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Breaking change with auto-filling in Org mode with recent commit
2017-08-09 14:43 Breaking change with auto-filling in Org mode with recent commit Kaushal Modi
2017-08-09 16:07 ` Eric Abrahamsen
@ 2017-08-09 16:12 ` Tom Tromey
2017-08-10 17:54 ` Kaushal Modi
1 sibling, 1 reply; 6+ messages in thread
From: Tom Tromey @ 2017-08-09 16:12 UTC (permalink / raw)
To: Kaushal Modi; +Cc: Tom Tromey, Emacs developers
>>>>> "Kaushal" == Kaushal Modi <kaushal.modi@gmail.com> writes:
Kaushal> I have noticed auto-filling to stop doing the right thing after commit
Kaushal> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9b463fa8648b7baed95a44f4317cb7402fd8bf1c
Yes, sorry about this.
It's being fixed in bug#28003.
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Breaking change with auto-filling in Org mode with recent commit
2017-08-09 16:12 ` Tom Tromey
@ 2017-08-10 17:54 ` Kaushal Modi
2017-08-10 21:34 ` Kaushal Modi
0 siblings, 1 reply; 6+ messages in thread
From: Kaushal Modi @ 2017-08-10 17:54 UTC (permalink / raw)
To: Tom Tromey; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
On Wed, Aug 9, 2017 at 12:12 PM Tom Tromey <tom@tromey.com> wrote:
>
> Yes, sorry about this.
> It's being fixed in bug#28003.
>
From my testing, this commit has fixed the issues I mentioned earlier:
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=81656add8117e8d1b7faab18b330d0706462b433
Thanks!
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Breaking change with auto-filling in Org mode with recent commit
2017-08-10 17:54 ` Kaushal Modi
@ 2017-08-10 21:34 ` Kaushal Modi
2017-08-10 22:00 ` Noam Postavsky
0 siblings, 1 reply; 6+ messages in thread
From: Kaushal Modi @ 2017-08-10 21:34 UTC (permalink / raw)
To: Tom Tromey; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
On Thu, Aug 10, 2017 at 1:54 PM Kaushal Modi <kaushal.modi@gmail.com> wrote:
> From my testing, this commit has fixed the issues I mentioned earlier:
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=81656add8117e8d1b7faab18b330d0706462b433
>
> Thanks!
>
Hi Tom,
I replied too soon.
I found this use case which is still broken, in emacs-lisp-mode:
====
(defcustom foo-boolean nil
"Some foo variable.
Some long description that needs to be auto-filled and will span multiple
lines."
:group 'foo
:type 'boolean)
=====
With the point anywhere in the doc-string, hit M-q. You will get:
=====
(defcustom foo-boolean nil
"Some foo variable.
Some long description that needs to be auto-filled and will span
multiple lines." :group 'foo :type 'boolean)
=====
But actually this should have happened:
=====
(defcustom foo-boolean nil
"Some foo variable.
Some long description that needs to be auto-filled and will span
multiple lines."
:group 'foo
:type 'boolean)
=====
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 2101 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Breaking change with auto-filling in Org mode with recent commit
2017-08-10 21:34 ` Kaushal Modi
@ 2017-08-10 22:00 ` Noam Postavsky
0 siblings, 0 replies; 6+ messages in thread
From: Noam Postavsky @ 2017-08-10 22:00 UTC (permalink / raw)
To: Kaushal Modi; +Cc: Tom Tromey, Emacs developers
On Thu, Aug 10, 2017 at 5:34 PM, Kaushal Modi <kaushal.modi@gmail.com> wrote:
>
> I found this use case which is still broken, in emacs-lisp-mode:
>
> ====
> (defcustom foo-boolean nil
> "Some foo variable.
> Some long description that needs to be auto-filled and will span multiple
> lines."
> :group 'foo
> :type 'boolean)
> =====
>
> With the point anywhere in the doc-string, hit M-q. You will get:
>
> =====
> (defcustom foo-boolean nil
> "Some foo variable.
> Some long description that needs to be auto-filled and will span
> multiple lines." :group 'foo :type 'boolean)
> =====
>
> But actually this should have happened:
>
> =====
> (defcustom foo-boolean nil
> "Some foo variable.
> Some long description that needs to be auto-filled and will span
> multiple lines."
> :group 'foo
> :type 'boolean)
> =====
This is Bug#24622 I think.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-08-10 22:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 14:43 Breaking change with auto-filling in Org mode with recent commit Kaushal Modi
2017-08-09 16:07 ` Eric Abrahamsen
2017-08-09 16:12 ` Tom Tromey
2017-08-10 17:54 ` Kaushal Modi
2017-08-10 21:34 ` Kaushal Modi
2017-08-10 22:00 ` Noam Postavsky
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).