emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: org table toggle narrowing  and true column hiding
Date: Fri, 23 Jun 2017 09:49:58 +0000	[thread overview]
Message-ID: <87podvowxl.fsf@mat.ucm.es> (raw)
In-Reply-To: 87mv8z7v80.fsf@nicolasgoaziou.fr


    > Hello,
    > Uwe Brauer <oub@mat.ucm.es> writes:


    > What is true column hiding? What is the question you are referring to?

Most of the spreadsheet application I know allow you 

    -  to mark a column 

    -  and to hide it (it is still there and can be displayed of course)

That question was asked for example in
https://www.reddit.com/r/emacs/comments/2blff3/is_it_possible_to_hide_some_columns_from_an_org

I now that I can hide regions in emacs but I am not sure about rectangles.

    > I don't understand your question.



    -  Well part one:

Original table


| Name | Passport | other |
|      |      <2> |       |
| Joe  |   123456 |       |
| John |   456789 |       |



    -  part two: narrow the second column


| Name | =>> | other |
|      | =>> |       |
| Joe  | =>> |       |
| John | ==> |       |


    -  part three missing: how can I recover the original table (something like
       widening)?????





The only solution I came up with is rather  cumbersome

(defun org-table-turn-narrowing-off ()
  (interactive)
  (setq org-table-do-narrow nil)
  (message "Now table narrowing is off!"))

(defun org-table-turn-narrowing-on ()
  (interactive)
  (setq org-table-do-narrow t)
  (message "Now table narrowing is on!"))

(defun org-table-toggle-narrowing ()
"Toggle function between New subject is in same thread or not."
  (interactive)
  (make-repeat-command 'org-table-toggle-narrowing
                      '(org-table-turn-narrowing-on
                        org-table-turn-narrowing-off)))

Turning narrowing of and run C-c C-c again.

I hope there are more comfortable solutions.

Uwe Brauer 

  reply	other threads:[~2017-06-23  9:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21  9:24 org table toggle narrowing and true column hiding Uwe Brauer
2017-06-22 18:06 ` Nicolas Goaziou
2017-06-23  9:49   ` Uwe Brauer [this message]
2017-06-24  8:48     ` Nicolas Goaziou
2017-06-24 21:06       ` Uwe Brauer
2017-06-24 23:10         ` Nicolas Goaziou
2017-06-25 17:12           ` Uwe Brauer
2017-06-27 21:46             ` Nicolas Goaziou
2017-06-28  9:46               ` Uwe Brauer
2017-06-28 19:35                 ` Samuel Wales
2017-06-28 19:39                   ` Nicolas Goaziou
2017-06-28 20:53                     ` Samuel Wales
2017-06-28 21:51                       ` Nicolas Goaziou
2017-06-29  8:00               ` [rows?] (was: org table toggle narrowing and true column hiding) Uwe Brauer
2017-07-01  9:57                 ` [rows?] Nicolas Goaziou
2017-06-23 16:23 ` org table toggle narrowing and true column hiding Michael Brand
2017-06-23 21:21   ` Uwe Brauer

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=87podvowxl.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).