all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11]
@ 2013-01-06  7:27 E Sabof
  2013-01-06  7:58 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: E Sabof @ 2013-01-06  7:27 UTC (permalink / raw)
  To: emacs-orgmode

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

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

The culprit has proved to be the last line of this function, which I
commented out in my config:

(defun org-eval-in-calendar (form &optional keepdate)
    "Eval FORM in the calendar window and return to current window.
Also, store the cursor date in variable org-ans2."
    (let ((sf (selected-frame))
          (sw (selected-window)))
      (select-window (get-buffer-window "*Calendar*" t))
      (eval form)
      (when (and (not keepdate) (calendar-cursor-to-date))
        (let* ((date (calendar-cursor-to-date))
               (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2
date))))
          (setq org-ans2 (format-time-string "%Y-%m-%d" time))))
      (move-overlay org-date-ovl (1- (point)) (1+ (point)) (current-buffer))
      (select-window sw)
      ;; (org-select-frame-set-input-focus sf)
      ))

At least superficially, it would seem that with-current-buffer could be
used instead

Emacs  : GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.24.10)
 of 2012-10-20 on ubuntu
Package: Org-mode version 7.8.11

[-- Attachment #2: Type: text/html, Size: 1887 bytes --]

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

* Re: Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11]
  2013-01-06  7:27 Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11] E Sabof
@ 2013-01-06  7:58 ` Bastien
  2013-01-06  8:46   ` E Sabof
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2013-01-06  7:58 UTC (permalink / raw)
  To: E Sabof; +Cc: emacs-orgmode

Hi,

E Sabof <esabof@gmail.com> writes:

> The culprit has proved to be the last line of this function, which I
> commented out in my config:

Please provide a way to reproduce the bug.

Thanks,

-- 
 Bastien

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

* Re: Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11]
  2013-01-06  7:58 ` Bastien
@ 2013-01-06  8:46   ` E Sabof
  2013-01-06 10:20     ` E Sabof
  2013-01-06 11:37     ` Bastien
  0 siblings, 2 replies; 5+ messages in thread
From: E Sabof @ 2013-01-06  8:46 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

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

In emacs -Q
(setq mouse-autoselect-window t)
M-x org-mode
C-c .
The cursor will move.

Sometimes it will move the cursor on top of another frame, which will
become active on my computer, since my window manager is also
cursor-sensitive.



On Sun, Jan 6, 2013 at 7:58 AM, Bastien <bzg@altern.org> wrote:

> Hi,
>
> E Sabof <esabof@gmail.com> writes:
>
> > The culprit has proved to be the last line of this function, which I
> > commented out in my config:
>
> Please provide a way to reproduce the bug.
>
> Thanks,
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1121 bytes --]

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

* Re: Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11]
  2013-01-06  8:46   ` E Sabof
@ 2013-01-06 10:20     ` E Sabof
  2013-01-06 11:37     ` Bastien
  1 sibling, 0 replies; 5+ messages in thread
From: E Sabof @ 2013-01-06 10:20 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

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

Apparently what doesn't work is (select-frame-set-input-focus), which might
have something to do with calendar appearing in a separate frame depending
on the value of calendar-setup.
Meaning it's probably either an emacs bug, an xmonad bug or a xinerama bug.


On Sun, Jan 6, 2013 at 8:46 AM, E Sabof <esabof@gmail.com> wrote:

> In emacs -Q
> (setq mouse-autoselect-window t)
> M-x org-mode
> C-c .
> The cursor will move.
>
> Sometimes it will move the cursor on top of another frame, which will
> become active on my computer, since my window manager is also
> cursor-sensitive.
>
>
>
> On Sun, Jan 6, 2013 at 7:58 AM, Bastien <bzg@altern.org> wrote:
>
>> Hi,
>>
>> E Sabof <esabof@gmail.com> writes:
>>
>> > The culprit has proved to be the last line of this function, which I
>> > commented out in my config:
>>
>> Please provide a way to reproduce the bug.
>>
>> Thanks,
>>
>> --
>>  Bastien
>>
>
>

[-- Attachment #2: Type: text/html, Size: 1772 bytes --]

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

* Re: Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11]
  2013-01-06  8:46   ` E Sabof
  2013-01-06 10:20     ` E Sabof
@ 2013-01-06 11:37     ` Bastien
  1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2013-01-06 11:37 UTC (permalink / raw)
  To: E Sabof; +Cc: emacs-orgmode

Hi,

E Sabof <esabof@gmail.com> writes:

> In emacs -Q
> (setq mouse-autoselect-window t)
> M-x org-mode
> C-c .
> The cursor will move.

Fixed, thanks for the detailed explanations.

-- 
 Bastien

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

end of thread, other threads:[~2013-01-06 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06  7:27 Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11] E Sabof
2013-01-06  7:58 ` Bastien
2013-01-06  8:46   ` E Sabof
2013-01-06 10:20     ` E Sabof
2013-01-06 11:37     ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.