emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-table-wrap-region incorrectly places the wrapped region [9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)]
@ 2020-09-23 16:39 Marko Schuetz-Schmuck
  2020-09-24  7:44 ` Jeremie Juste
  2021-05-02  3:47 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Marko Schuetz-Schmuck @ 2020-09-23 16:39 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

Emacs  : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3)
 of 2020-08-28
Package: Org mode version 9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)

I'm using multi-line fields in org tables. When I wrap such a field
there are unexpected results:

Marking the region from the 'I' of "Includes" to the space just left of
the right bottom column border and calling org-table-wrap-region

| Includes all aspects of    |
| information about          |
| proposed project.          |

wraps correctly to

| Includes all aspects |
| of information about |
| proposed project.    |

But when I mark the same region in this table

|----------------------------|
| Includes all aspects of    |
| information about          |
| proposed project.          |

it results in an error message "Not in table data field".

Initially I observed such unexpected behaviors with more complex
situations where the field was in a column further to the right. But it
seems it's the same problem.

Best regards,

Marko

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 224 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: org-table-wrap-region incorrectly places the wrapped region [9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)]
  2020-09-23 16:39 Bug: org-table-wrap-region incorrectly places the wrapped region [9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)] Marko Schuetz-Schmuck
@ 2020-09-24  7:44 ` Jeremie Juste
  2021-05-02  3:47 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Jeremie Juste @ 2020-09-24  7:44 UTC (permalink / raw)
  To: Marko Schuetz-Schmuck; +Cc: emacs-orgmode

Hello Marko,

Thanks for reporting. Unexpected behavior of (org-table-wrap-region)
confirmed.

works fine with 
> | Includes all aspects of    |
> | information about          |
> | proposed project.          |


Error: user-error: Not in table data field
with header line
> |----------------------------|
> | Includes all aspects of    |
> | information about          |
> | proposed project.          |

Best regards
Jeremie

Org mode version 9.4
GNU Emacs 28.0.50 



Marko Schuetz-Schmuck <marko.schutz@upr.edu> writes:

> Emacs  : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3)
>  of 2020-08-28
> Package: Org mode version 9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)
>
> I'm using multi-line fields in org tables. When I wrap such a field
> there are unexpected results:
>
> Marking the region from the 'I' of "Includes" to the space just left of
> the right bottom column border and calling org-table-wrap-region
>
> | Includes all aspects of    |
> | information about          |
> | proposed project.          |
>
> wraps correctly to
>
> | Includes all aspects |
> | of information about |
> | proposed project.    |
>
> But when I mark the same region in this table
>
> |----------------------------|
> | Includes all aspects of    |
> | information about          |
> | proposed project.          |
>
> it results in an error message "Not in table data field".
>
> Initially I observed such unexpected behaviors with more complex
> situations where the field was in a column further to the right. But it
> seems it's the same problem.
>
> Best regards,
>
> Marko


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: org-table-wrap-region incorrectly places the wrapped region [9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)]
  2020-09-23 16:39 Bug: org-table-wrap-region incorrectly places the wrapped region [9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)] Marko Schuetz-Schmuck
  2020-09-24  7:44 ` Jeremie Juste
@ 2021-05-02  3:47 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2021-05-02  3:47 UTC (permalink / raw)
  To: Marko Schuetz-Schmuck; +Cc: emacs-orgmode

Hi Marko,

Marko Schuetz-Schmuck <marko.schutz@upr.edu> writes:

> Marking the region from the 'I' of "Includes" to the space just left of
> the right bottom column border and calling org-table-wrap-region
>
> | Includes all aspects of    |
> | information about          |
> | proposed project.          |
>
> wraps correctly to
>
> | Includes all aspects |
> | of information about |
> | proposed project.    |
>
> But when I mark the same region in this table
>
> |----------------------------|
> | Includes all aspects of    |
> | information about          |
> | proposed project.          |
>
> it results in an error message "Not in table data field".

Fixed in maint with commit eedbe286e, thanks again for reporting this.

-- 
 Bastien


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-02  3:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23 16:39 Bug: org-table-wrap-region incorrectly places the wrapped region [9.4 (9.4-elpaplus @ /home/marko/.emacs.d/elpa/org-plus-contrib-20200914/)] Marko Schuetz-Schmuck
2020-09-24  7:44 ` Jeremie Juste
2021-05-02  3:47 ` Bastien

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).