[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] function?
From: |
Bastien |
Subject: |
Re: [O] function? |
Date: |
Tue, 05 Nov 2013 17:35:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Uwe,
Uwe Brauer <address@hidden> writes:
> what's about a small function doing this, like
>
>
> (defun org-table-rotate-table ()
> "Small hack to rotate a table."
> (interactive)
> (if (or (and (boundp 'zmacs-region-active-p) zmacs-region-active-p)
> (and (boundp 'transient-mark-mode) transient-mark-mode
> mark-active))
> (save-restriction
> (save-excursion
> (narrow-to-region (point) (mark))
> (goto-char (point-min))
> (reverse-region (point) (mark))
> (org-table-transpose-table-at-point)))))
>
> Or?
>
> (defun org-table-rotating-table (beg end)
> "Small hack to rotate a table."
> (interactive "r")
> (save-excursion
> (goto-char beg)
> (reverse-region beg end)
> (org-table-transpose-table-at-point)))
Don't forget to add such useful functions to
http://orgmode.org/worg/org-hacks.html
Thanks!
--
Bastien
- Re: [O] function?,
Bastien <=