emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)]
@ 2018-10-15 11:27 Frederic Gilbert
  2018-10-15 19:20 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Frederic Gilbert @ 2018-10-15 11:27 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: fredericgilbert



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

      https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Hi,

Following an upgrade from 8.2.10 to 9.1.14 from GIT repository,
it looks like tables column width specifications (e.g. <10> on a row)
don't work anymore.
Sorry if there was a syntax change but I could not find any information.

Best regards,
Frederic Gilbert.

Emacs  : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
  of 2017-09-22, modified by Debian
Package: Org mode version 9.1.14 (release_9.1.14-987-g823d90 @ 
/usr/share/emacs/site-lisp/org/)

current state:
==============
(setq
  org-tab-first-hook '(org-babel-hide-result-toggle-maybe
		      org-babel-header-arg-expand)
  org-speed-command-hook '(org-speed-command-activate
			  org-babel-speed-command-activate)
  org-occur-hook '(org-first-headline-recenter)
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-confirm-shell-link-function 'yes-or-no-p
  org-todo-keyword-faces '(("IN_PROGRESS" . "orange") ("STANDBY" . 
"darkkhaki")
			  ("CANCELLED" . "darkcyan"))
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-from-is-user-regexp "\\<Frederic Gilbert\\>"
  org-src-mode-hook '(org-src-babel-configure-edit-buffer
		     org-src-mode-configure-edit-buffer)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-babel-pre-tangle-hook '(save-buffer)
  org-mode-hook '(#[0 "\300\301\302\303\304$\207"
		   [add-hook change-major-mode-hook org-show-all append local]
		   5]
		 #[0 "\300\301\302\303\304$\207"
		   [add-hook change-major-mode-hook org-babel-show-result-all
		    append local]
		   5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes)
  org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)
		      (org-mobile-files :maxlevel . 9))
  org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 
"\n\n(fn ENTRY)"]
  org-archive-hook '(org-attach-archive-delete-maybe)
  org-directory "~/Dropbox/palm/org"
  org-cycle-hook '(org-cycle-hide-archived-subtrees 
org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
  org-todo-keywords '((sequence "TODO" "IN_PROGRESS" "STANDBY" "|" "DONE"
		      "CANCELLED")
		     )
  org-babel-tangle-lang-exts '(("sed" . "sed") ("awk" . "awk")
			      ("python" . "py") ("emacs-lisp" . "el")
			      ("elisp" . "el"))
  org-confirm-elisp-link-function 'yes-or-no-p
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-startup-truncated nil
  org-link-parameters '(("id" :follow org-id-open)
		       ("eww" :follow eww :store org-eww-store-link)
		       ("rmail" :follow org-rmail-open :store
			org-rmail-store-link)
		       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
		       ("irc" :follow org-irc-visit :store org-irc-store-link
			:export org-irc-export)
		       ("info" :follow org-info-open :export org-info-export
			:store org-info-store-link)
		       ("gnus" :follow org-gnus-open :store
			org-gnus-store-link)
		       ("docview" :follow org-docview-open :export
			org-docview-export :store org-docview-store-link)
		       ("bibtex" :follow org-bibtex-open :store
			org-bibtex-store-link)
		       ("bbdb" :follow org-bbdb-open :export org-bbdb-export
			:complete org-bbdb-complete-link :store
			org-bbdb-store-link)
		       ("w3m" :store org-w3m-store-link) ("file+sys")
		       ("file+emacs") ("doi" :follow org--open-doi-link)
		       ("elisp" :follow org--open-elisp-link)
		       ("file" :complete org-file-complete-link)
		       ("ftp" :follow
			(lambda (path) (browse-url (concat "ftp:" path))))
		       ("help" :follow org--open-help-link)
		       ("http" :follow
			(lambda (path) (browse-url (concat "http:" path))))
		       ("https" :follow
			(lambda (path) (browse-url (concat "https:" path))))
		       ("mailto" :follow
			(lambda (path) (browse-url (concat "mailto:" path))))
		       ("news" :follow
			(lambda (path) (browse-url (concat "news:" path))))
		       ("shell" :follow org--open-shell-link))
  org-babel-load-languages '((emacs-lisp . t) (calc . t) (shell . t)
			    (python . t) (awk . t) (sed . t))
  org-agenda-files '("~/Dropbox/palm/org")
  org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
  org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate
  org-link-frame-setup '((vm . vm-visit-folder-other-frame)
			(vm-imap . vm-visit-imap-folder-other-frame)
			(gnus . org-gnus-no-new-news) (file . find-file)
			(wl . wl-other-frame))
  )

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

* Re: Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)]
  2018-10-15 11:27 Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)] Frederic Gilbert
@ 2018-10-15 19:20 ` Nicolas Goaziou
  2018-10-16  7:52   ` Frederic Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-10-15 19:20 UTC (permalink / raw)
  To: Frederic Gilbert; +Cc: emacs-orgmode

Hello,

Frederic Gilbert <fredericgilbert@laposte.net> writes:

> Following an upgrade from 8.2.10 to 9.1.14 from GIT repository,
> it looks like tables column width specifications (e.g. <10> on a row)
> don't work anymore.

Could you explain what doesn't work?

Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)]
  2018-10-15 19:20 ` Nicolas Goaziou
@ 2018-10-16  7:52   ` Frederic Gilbert
  2018-10-16 11:43     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Frederic Gilbert @ 2018-10-16  7:52 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: fredericgilbert

On 15/10/18 21:20, Nicolas Goaziou wrote:
> Hello,
> 
> Frederic Gilbert <fredericgilbert@laposte.net> writes:
> 
>> Following an upgrade from 8.2.10 to 9.1.14 from GIT repository,
>> it looks like tables column width specifications (e.g. <10> on a row)
>> don't work anymore.
> 
> Could you explain what doesn't work?
> 
> Regards,
> 

Sorry for not being specific enough.

I have several tables looking more or less like this:

   | Title                                   |    + |   - |
   |-----------------------------------------+------+-----|
   | Money in                                |  400 |     |
   | Money out 1 bla bla bla bla bla bla bla |      | 200 |
   | Money out 2                             |      |  50 |
   |-----------------------------------------+------+-----|
   | *Total*                                 |      | 150 |
   #+TBLFM: @>$3=vsum(@5$2..@-1$2)-vsum(@5$3..@-1$3)

To limit the width of the first column (which can be much longer than 
the example, and push the 2 other columns beyond the frame's width), I 
am used to use the width specification, as in:

   | Title                                   |    + |   - |
   |-----------------------------------------+------+-----|
   | <20>                                    |      |     |
   | Money in                                | 4000 |     |
   | Money out 1 bla bla bla bla bla bla bla |      | 200 |
   | Money out 2                             |      |  50 |
   |-----------------------------------------+------+-----|
   | *Total*                                 |      | 150 |
   #+TBLFM: @>$3=vsum(@5$2..@-1$2)-vsum(@5$3..@-1$3)

I ask for a 20 characters width in this example, but the problem I 
encounter is not related to the specified number of characters.

In Org 8.2.10, this worked, and, in the example above, the long line 
would be truncated to 20 characters with the "=>" sign indicating that 
there is some text beyond the column right border.

In 8.2.10, drawers did not fold, and there was a problem with babel 
interpreting sh source blocks.
So I upgraded from the git repository, and I am now in 9.1.14.
This corrected the drawers and sh problems, but I realized that now, 
specifying column width in tables does not work anymore. This means that:
- if I insert <20> and do C-c C-c, the columns width remain computed 
from the longest cell, and the text displayed in full length
- if I open an org file where the table was previously formatted in 
truncated form with the "=>" sign, it is displayed with columns expanded 
to longest cell length.
I tried to changed the position of the line where I put the <20> etc., 
to no avail.

I am using emacs 25.2.2 (current package from Ubuntu 18.04), with Viper 
3.14.12.

Regards,
Frederic.

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

* Re: Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)]
  2018-10-16  7:52   ` Frederic Gilbert
@ 2018-10-16 11:43     ` Nicolas Goaziou
  2018-10-16 12:34       ` Frederic Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-10-16 11:43 UTC (permalink / raw)
  To: Frederic Gilbert; +Cc: emacs-orgmode

Hello,

Frederic Gilbert <fredericgilbert@laposte.net> writes:

> To limit the width of the first column (which can be much longer than 
> the example, and push the 2 other columns beyond the frame's width), I 
> am used to use the width specification, as in:
>
>    | Title                                   |    + |   - |
>    |-----------------------------------------+------+-----|
>    | <20>                                    |      |     |
>    | Money in                                | 4000 |     |
>    | Money out 1 bla bla bla bla bla bla bla |      | 200 |
>    | Money out 2                             |      |  50 |
>    |-----------------------------------------+------+-----|
>    | *Total*                                 |      | 150 |
>
>    #+TBLFM: @>$3=vsum(@5$2..@-1$2)-vsum(@5$3..@-1$3)
>
> I ask for a 20 characters width in this example, but the problem I 
> encounter is not related to the specified number of characters.
>
> In Org 8.2.10, this worked, and, in the example above, the long line 
> would be truncated to 20 characters with the "=>" sign indicating that 
> there is some text beyond the column right border.

Use <C-c TAB> in the first column. It is a change introduced in Org 9.2.

Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)]
  2018-10-16 11:43     ` Nicolas Goaziou
@ 2018-10-16 12:34       ` Frederic Gilbert
  0 siblings, 0 replies; 5+ messages in thread
From: Frederic Gilbert @ 2018-10-16 12:34 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: fredericgilbert

On 16/10/18 13:43, Nicolas Goaziou wrote:
> Hello,
> 
> Use <C-c TAB> in the first column. It is a change introduced in Org 9.2.

Thank you, I expected this kind of change but could not find about it in 
the docs.
Regards.

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

end of thread, other threads:[~2018-10-16 12:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-15 11:27 Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)] Frederic Gilbert
2018-10-15 19:20 ` Nicolas Goaziou
2018-10-16  7:52   ` Frederic Gilbert
2018-10-16 11:43     ` Nicolas Goaziou
2018-10-16 12:34       ` Frederic Gilbert

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).