emacs-orgmode@gnu.org archives
 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

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