emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: function?
Date: Wed, 06 Nov 2013 15:46:14 +0100	[thread overview]
Message-ID: <87bo1xegg9.fsf@gilgamesch.quim.ucm.es> (raw)
In-Reply-To: 8761s6u7qk.fsf@bzg.ath.cx

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

>> "Bastien" == Bastien  <bzg@gnu.org> writes:
Hi Bastien,
   > Hi Uwe,
   > Uwe Brauer <oub@mat.ucm.es> writes:

   > Don't forget to add such useful functions to 
   > http://orgmode.org/worg/org-hacks.html


I came to the conclusion, that the function is not useful, so I don't
think I will post it. However I think that the following function might:
(defun my-org-table-reverse-cells-in-row ()
  "Simple function to reverse cells in one row. This might be useful in tables with R2L and L2R text."
  (interactive)
  (save-excursion
	(newline 1)
	(end-of-line 1)
	(newline 1)
	(goto-char (org-table-begin))
	(org-table-transpose-table-at-point)
	(let*	  ((beg (org-table-begin))
			   (end (org-table-end)))
	  (goto-char beg)
	  (reverse-region beg end))
	(org-table-transpose-table-at-point)
	(kill-line nil)
	(goto-char (org-table-begin))
	(previous-line 1)
	(kill-line nil)))

I never used this site you mentioned, how can I copy the code? Do I have
to sign copyright?

Uwe 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

  reply	other threads:[~2013-11-06 14:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-20 20:12 rotate tables Uwe Brauer
2013-10-20 20:24 ` Michael Brand
2013-10-20 20:43   ` Uwe Brauer
2013-10-21  7:41   ` function? (was: rotate tables) Uwe Brauer
2013-11-05 16:35     ` function? Bastien
2013-11-06 14:46       ` Uwe Brauer [this message]
2013-11-06 14:54         ` function? Bastien
2013-11-06 15:28           ` function? Uwe Brauer
2013-11-06 15:32             ` function? Bastien
2013-11-07 10:16           ` function? Uwe Brauer
2013-11-07 13:49             ` function? Bastien

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=87bo1xegg9.fsf@gilgamesch.quim.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=bzg@gnu.org \
    --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).