From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: function? (was: rotate tables) Date: Mon, 21 Oct 2013 09:41:33 +0200 Message-ID: <878uxnax5e.fsf_-_@mat.ucm.es> References: <87li1nbt1o.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=sha1; protocol="application/pkcs7-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYAAo-0000hS-MA for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 03:45:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYAAi-00042t-SW for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 03:45:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:50395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYAAi-0003vO-JC for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 03:45:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VYAAh-0000RP-6T for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 09:45:03 +0200 Received: from 171.pool85-55-19.dynamic.orange.es ([85.55.19.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Oct 2013 09:45:03 +0200 Received: from oub by 171.pool85-55-19.dynamic.orange.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Oct 2013 09:45:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >> "Michael" =3D=3D Michael Brand writes: > Hi Uwe > On Sun, Oct 20, 2013 at 10:12 PM, Uwe Brauer wrote: >> | 1 | 2 | 3 | >> | 4 | 3 | 4 | >>=20 >> becomes >>=20 >> | 4 | 1 | >> | 3 | 2 | >> | 4 | 3 | > 1) mark table > 2) M-x reverse-region > 3) with point in the table: M-x org-table-transpose-table-at-point what's about a small function doing this, like=20 (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)=20=20 "Small hack to rotate a table." (interactive "r") (save-excursion (goto-char beg) (reverse-region beg end) (org-table-transpose-table-at-point))) Uwe=20 --=-=-= Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITGzCC BDYwggMeoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0UxFDASBgNVBAoT C0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEi MCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0wMDA1MzAxMDQ4MzhaFw0y MDA1MzAxMDQ4MzhaMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQG A1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0 IEV4dGVybmFsIENBIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC39xoz 5vIABC054E5b7R+8bA/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