emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Lewis <jason@dickson.st>
To: org mode <emacs-orgmode@gnu.org>
Subject: Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)]
Date: Thu, 06 Feb 2014 13:30:31 +1100	[thread overview]
Message-ID: <52F2F3C7.6060609@dickson.st> (raw)

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

Hi,

when using the Shift-<enter> feature in a table to copy values down, it
fails to place the cursor where you expect it to if the previous column
has a fixed width and the contents of the cell is truncated.

Steps to reproduce:

enter the following org table:

|   | <7>     |   |
|---+---------+---|
| 4 | podsdfsfsadastatoes | 1 |
| 5 | podsdfsfsadastatoes | 2 |
| 6 |         |   |

press C-c C-c to ensure the second column is showing abbreviated.

place cursor on the number 1,
Shift-<enter> copies values to the next line but leaves the cursor in
the wrong position, at the end of the string in the row that starts with 5

if you remove the <7> and repeat the experiment, the cursor moves down
the third column as you expect it to.

I expect it should work the same whether or not the previous column has
truncated contents.

Emacs  : GNU Emacs 24.3.50.2 (i686-pc-cygwin)
 of 2014-01-15 on jade
Package: Org-mode version 8.2.5h (8.2.5h-6-g8e1386-elpa @
/cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)

current state:
==============
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-html-format-inlinetask-function 'ignore
 outline-minor-mode-hook '(mediawiki-outline-magic-keys)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-html-format-headline-function 'ignore
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-default-notes-file "~/Dropbox/org/todo.org"
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-blank-before-new-entry nil
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook
org-show-block-all append local]
                   5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook
org-babel-show-result-all append
                    local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 (lambda nil (flyspell-mode -1)))
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-directory "~/Dropbox/org"
 org-from-is-user-regexp "\\<jason\\>"
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-agenda-files '("~/Dropbox/org/todo.org" "~/Dropbox/org"
"~/Dropbox/org/todo.org")
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-inlinetask-function 'ignore
 org-M-RET-may-split-line '((default))
 org-confirm-shell-link-function 'yes-or-no-p
 )



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

             reply	other threads:[~2014-02-06  2:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  2:30 Jason Lewis [this message]
2014-02-06  8:59 ` Bug: shift-enter in org tables leaves cursor in wrong position [8.2.5h (8.2.5h-6-g8e1386-elpa @ /cygdrive/c/Users/jason/.emacs.d/elpa/org-20140203/)] Bastien
2014-02-25 10:46   ` Michael Brand
2014-03-01  9:02     ` Bastien
2014-03-01 10:39       ` Michael Brand
2014-03-01 11:13         ` Bastien
2014-03-01 13:58           ` Michael Brand
2014-03-12 18:42             ` Bastien
2014-03-20 14:15     ` Bastien
2014-03-20 16:00       ` Michael Brand
2014-09-30 22:24   ` Solution for very long hyperlinks when exporting to latex? Martin Weigele
2014-09-30 23:02     ` Rasmus
2014-09-30 23:51       ` Martin Weigele
2014-10-01  0:04         ` Rasmus
2014-10-01  0:17           ` Martin Weigele
     [not found]             ` <87bnpw8wte.fsf@gmx.us>
2014-10-01  0:29               ` Martin Weigele
2014-10-03 10:02                 ` Martin Weigele

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=52F2F3C7.6060609@dickson.st \
    --to=jason@dickson.st \
    --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).