From: Craig Luthy <luthycraig@gmail.com>
To: Craig Luthy <luthycraig@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: org-table-align function changed, where is the old behavior?
Date: Sat, 12 Jan 2019 15:47:27 -0600 [thread overview]
Message-ID: <CAHTZ3bH2dzWUUaa-7mii9jvxobTjV-=thR1vF=r8+=4fs1m9rg@mail.gmail.com> (raw)
In-Reply-To: <87lg3qyxnw.fsf@nicolasgoaziou.fr>
[-- 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 --]
next prev parent reply other threads:[~2019-01-12 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2019-01-19 16:34 ` Nicolas Goaziou
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHTZ3bH2dzWUUaa-7mii9jvxobTjV-=thR1vF=r8+=4fs1m9rg@mail.gmail.com' \
--to=luthycraig@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 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).