emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-table-align function changed, where is the old behavior?
@ 2019-01-11  0:02 Craig Luthy
  2019-01-12 10:31 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Craig Luthy @ 2019-01-11  0:02 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,
I create lots of tables in org-mode, many with lots of information and long
cells. The C-c C-c was heaven because it prettied up my table in one
action. If I understand what I have read and am seeing, whenever I TAB or
RET all the cells are expanded which creates a scrambled mess that is
impossible to navigate because all the rows wrap. Shrinking 1 column at a
time with C-c TAB is a regretful step backwards. Why did you change the
existing functionality. I would have rather seen that retained and a new
option to do narrowing one column at a time.

I have played with '#+STARTUP: align shrink' but it does not seem to work
when I open the buffer. It may work if I open the file for the first time,
but that is not what I normally do. I hit many files and just leave the
buffers around.

Now that you have changed the way org-table-align works, could you also add
a "new" feature that works like the originall C-c C-c did and format the
column widths in one motion.

This is the first time I have interacted with your team so apologize if I
have followed the right process.

Thanks for your help,
Craig Luthy
309-798-4441

[-- Attachment #2: Type: text/html, Size: 1328 bytes --]

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

* Re: org-table-align function changed, where is the old behavior?
  2019-01-11  0:02 org-table-align function changed, where is the old behavior? Craig Luthy
@ 2019-01-12 10:31 ` Nicolas Goaziou
  2019-01-12 21:47   ` Craig Luthy
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2019-01-12 10:31 UTC (permalink / raw)
  To: Craig Luthy; +Cc: emacs-orgmode

Hello,

Craig Luthy <luthycraig@gmail.com> writes:

> I create lots of tables in org-mode, many with lots of information and long
> cells. The C-c C-c was heaven because it prettied up my table in one
> action. If I understand what I have read and am seeing, whenever I TAB or
> RET all the cells are expanded which creates a scrambled mess that is
> impossible to navigate because all the rows wrap.

This looks like a bug. Could you provide an ECM?

> Shrinking 1 column at a time with C-c TAB is a regretful step
> backwards. Why did you change the existing functionality. I would have
> rather seen that retained and a new option to do narrowing one column
> at a time.
>
> I have played with '#+STARTUP: align shrink' but it does not seem to work
> when I open the buffer. It may work if I open the file for the first time,
> but that is not what I normally do. I hit many files and just leave the
> buffers around.

I think you need to use `C-c C-c' on the STARTUP keyword.

> Now that you have changed the way org-table-align works, could you also add
> a "new" feature that works like the originall C-c C-c did and format the
> column widths in one motion.

This behaviour is bound to `C-u C-c C-TAB'.

Regards,

-- 
Nicolas Goaziou

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

* Re: org-table-align function changed, where is the old behavior?
  2019-01-12 10:31 ` Nicolas Goaziou
@ 2019-01-12 21:47   ` Craig Luthy
  2019-01-19 16:34     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Craig Luthy @ 2019-01-12 21:47 UTC (permalink / raw)
  To: Craig Luthy, emacs-orgmode

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

Hi Nicolas,

emacs version: GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30
orgmode version: Org mode version 9.2 (9.2-elpa @
c:/Users/dad/Dropbox/.emacs.d/elpa/org-20181230/)

I don't know what an ECM is. Need some clarification.

However, regarding the first issue of TAB and RETURN opening the table. I
explained this wrong, and suspect the release was coded up as designed. No
error messages were displayed. But, with further analysis, the expansion
occurs in at least these scenarios:

   - if you delete a row out of the table with 'kill-whole-line
   - insert a row (org-shiftmetadown) then UNDO (undo)
   - it seems that 'undo opens the table in many cases

C-u C-c TAB works as explained.
C-c C-c on the STARTUP keyword works as explained.

This is the table I was experimenting with:

** TABLES (Section 3.1). insert a vertical bar with `\vert'
|-----------------------+------------------------------------------------------------------------------------------------|
| Key sequence          | description
                                              |
| <20>                  | <48>
                                             |
|-----------------------+------------------------------------------------------------------------------------------------|
| M-x table-insert      | tell it # of cols, rows, cell width & height
                                             |
| M-x table-capture     | turn text into a table - asks for delimiter and
other stuff. use ^Q^J for the carriage return. |
| C-u C-c TAB           | narrow all the columns (was C-c C-c)
                                             |
| C-c TAB               | dynamically narrow column
                                              |
| C-c -                 | horizontal line
                                              |
| C-u C-c -             | horizontal line above
                                              |
| C-c ^                 | sort
                                             |
| C-c +                 | sum columns
                                              |
| C-y                   | insert total
                                             |
| M-LEFT\RIGHT          | move column left\right
                                             |
| M-S-LEFT              | kill column  you're in
                                                         |
| M-S-RIGHT             | insert col to right
                                              |
| M-S-UP                | kill row
                                             |
| M-S-DOWN              | insert row above
                                             |
| M-x  org-table-import | import TAB-delimited file
                                              |
| C-c `                 | edit truncated text in a separate window.
                                              |
| C-c \vert             | create table from region
                                             |
| M-x org-table-export  | export TAB-delimited file
                                              |
| S-RET                 | copy cell above down to current cell
                                             |
| junk                  | junk
                                             |
|-----------------------+------------------------------------------------------------------------------------------------|

Thanks for your help. If I need to create a bug report on the unexpected
column expansion, I suspect that is what an ECM is, could you point to the
right page for sending one?

The release note on these changes could use additional information. I was
able to find this page (https://orgmode.org/Changes.html#orge5c3346) which
helped me initially, but  `C-c C-c' on the STARTUP keyword and  `C-u C-c
C-TAB' mappings you explained to me were missing.

   - explain the new mapping of C-u C-c TAB which does the old format
   behavior.
   - I would have never guessed to do C-c C-c on the STARTUP keyword to
   format everything in the file. Perhaps a reference to that would be
   helpful. To me it seems like an unusual thing to do, so I may have missed
   documentation on this behavior that is found elsewhere.

According to general release note (https://orgmode.org/Changes.html) it
says that editing a column (do you mean a cell?) opens it up and displays
everything. This does not seem to be working for me. "C-`" still works fine
for editing long contents.

Thanks again,
Craig Luthy

On Sat, Jan 12, 2019 at 4:31 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Craig Luthy <luthycraig@gmail.com> writes:
>
> > I create lots of tables in org-mode, many with lots of information and
> long
> > cells. The C-c C-c was heaven because it prettied up my table in one
> > action. If I understand what I have read and am seeing, whenever I TAB or
> > RET all the cells are expanded which creates a scrambled mess that is
> > impossible to navigate because all the rows wrap.
>
> This looks like a bug. Could you provide an ECM?
>
> > Shrinking 1 column at a time with C-c TAB is a regretful step
> > backwards. Why did you change the existing functionality. I would have
> > rather seen that retained and a new option to do narrowing one column
> > at a time.
> >
> > I have played with '#+STARTUP: align shrink' but it does not seem to work
> > when I open the buffer. It may work if I open the file for the first
> time,
> > but that is not what I normally do. I hit many files and just leave the
> > buffers around.
>
> I think you need to use `C-c C-c' on the STARTUP keyword.
>
> > Now that you have changed the way org-table-align works, could you also
> add
> > a "new" feature that works like the originall C-c C-c did and format the
> > column widths in one motion.
>
> This behaviour is bound to `C-u C-c C-TAB'.
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 8746 bytes --]

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

* Re: org-table-align function changed, where is the old behavior?
  2019-01-12 21:47   ` Craig Luthy
@ 2019-01-19 16:34     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2019-01-19 16:34 UTC (permalink / raw)
  To: Craig Luthy; +Cc: emacs-orgmode

Hello,

Craig Luthy <luthycraig@gmail.com> writes:

> I don't know what an ECM is. Need some clarification.

Complete minimal example, in French. It's in the FAQ.

> However, regarding the first issue of TAB and RETURN opening the table. I
> explained this wrong, and suspect the release was coded up as designed. No
> error messages were displayed. But, with further analysis, the expansion
> occurs in at least these scenarios:
>
>    - if you delete a row out of the table with 'kill-whole-line

That is to be expected.  Any change to a shrunk cell expands the whole
column.

>    - insert a row (org-shiftmetadown) then UNDO (undo)
>    - it seems that 'undo opens the table in many cases

Ditto. Whenever a change happens in a shrunk cell (or a shrunk part of
it), everything is displayed.

> The release note on these changes could use additional information. I was
> able to find this page (https://orgmode.org/Changes.html#orge5c3346) which
> helped me initially, but  `C-c C-c' on the STARTUP keyword and  `C-u C-c
> C-TAB' mappings you explained to me were missing.
>
>    - explain the new mapping of C-u C-c TAB which does the old format
>    behavior.

This is in the manual, at (info "(org) Column Width and Alignment")

>    - I would have never guessed to do C-c C-c on the STARTUP keyword to
>    format everything in the file. Perhaps a reference to that would be
>    helpful. To me it seems like an unusual thing to do, so I may have missed
>    documentation on this behavior that is found elsewhere.

This also is in the manual, at (info "(org) The Very Busy C-c C-c Key")

> According to general release note (https://orgmode.org/Changes.html) it
> says that editing a column (do you mean a cell?) opens it up and displays
> everything. This does not seem to be working for me.

It definitely does here. Would you have an ECM? ;)

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2019-01-19 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11  0:02 org-table-align function changed, where is the old behavior? Craig Luthy
2019-01-12 10:31 ` Nicolas Goaziou
2019-01-12 21:47   ` Craig Luthy
2019-01-19 16:34     ` Nicolas Goaziou

Code repositories for project(s) associated with this public 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).