emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: dragging a line in agenda moves following hidden lines
@ 2014-02-03 21:32 Thomas Morgan
  2014-02-04 10:39 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Morgan @ 2014-02-03 21:32 UTC (permalink / raw)
  To: emacs-orgmode

Hi, Org mode hackers,

There seems to be a bug whereby dragging a line pulls along adjacent
hidden lines.

I'm using Org-mode version 8.2.5g (`release_8.2.5g-663-g24a213' @
`/src/org-mode/lisp/') and GNU Emacs 24.3.1 (`x86_64-unknown-linux-gnu',
X toolkit, Xaw3d scroll bars) of 2013-09-24.

I started Emacs with `emacs -Q -l setup.el' (file attached).
This opened a day agenda view.

,----
| Day-agenda (W05):
| Sunday      2 February 2014
|   test-case:  Scheduled:  TODO Pick up package from post office        :errands:
|   test-case:  Scheduled:  TODO Clean stovetop
|   test-case:  Scheduled:  TODO Buy water at store                      :errands:
`----

I typed `/ TAB errands RET' to restrict it to items with the tag
`errands'.  The restricted view looked like this:

,----
| Day-agenda (W05):
| Sunday      2 February 2014
|   test-case:  Scheduled:  TODO Pick up package from post office        :errands:
|   test-case:  Scheduled:  TODO Buy water at store                      :errands:
`----

I moved point to the line containing "Pick up package" and typed
`M-<down>' to drag the line forward.

,----
| Day-agenda (W05):
| Sunday      2 February 2014
|   test-case:  Scheduled:  TODO Buy water at store                      :errands:
|   test-case:  Scheduled:  TODO Pick up package from post office        :errands:
`----

Then I typed `/ /' to remove the tag filter.

I expected that the hidden line, "Clean stovetop", would remain
in its position above "Buy water at store", like this:

,----
| Day-agenda (W05):
| Sunday      2 February 2014
|   test-case:  Scheduled:  TODO Clean stovetop
|   test-case:  Scheduled:  TODO Buy water at store                      :errands:
|   test-case:  Scheduled:  TODO Pick up package from post office        :errands:
`----

But in fact "Clean stovetop" had been dragged under "Buy water at store"
along with "Pick up package".

,----
| Day-agenda (W05):
| Sunday      2 February 2014
|   test-case:  Scheduled:  TODO Buy water at store                      :errands:
|   test-case:  Scheduled:  TODO Pick up package from post office        :errands:
|   test-case:  Scheduled:  TODO Clean stovetop
`----

I think it would be more useful and intuitive for hidden lines not to be
affected by dragging.

Thanks,
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: dragging a line in agenda moves following hidden lines
  2014-02-03 21:32 Bug: dragging a line in agenda moves following hidden lines Thomas Morgan
@ 2014-02-04 10:39 ` Bastien
  2014-02-06  1:57   ` Thomas Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-02-04 10:39 UTC (permalink / raw)
  To: Thomas Morgan; +Cc: emacs-orgmode

Hi Thomas,

Thomas Morgan <tlm@ziiuu.com> writes:

> I think it would be more useful and intuitive for hidden lines not to be
> affected by dragging.

I agree to some extent, but this is difficult to achieve.

The agenda is read-only.  Dragging lines in agenda, although
permitted, is convenient for temporary views only.

Any re-display is likely to remove the re-ordering: `g' will
do; maybe re-displaying hidden lines (through `/ /') should
do so, too, if the current behavior is too confusing.  What
do you think?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: dragging a line in agenda moves following hidden lines
  2014-02-04 10:39 ` Bastien
@ 2014-02-06  1:57   ` Thomas Morgan
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Morgan @ 2014-02-06  1:57 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi, Bastien,

If it's difficult to keep dragging from moving hidden lines,
I agree, `/ /' removing the re-ordering would be less confusing
than seeing the hidden lines moved.

By the way, another useful feature could be dragging all lines
in the region if it's active.

Thanks,
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-07 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-03 21:32 Bug: dragging a line in agenda moves following hidden lines Thomas Morgan
2014-02-04 10:39 ` Bastien
2014-02-06  1:57   ` Thomas Morgan

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).