From: E Sabof <esabof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11]
Date: Sun, 6 Jan 2013 07:27:03 +0000 [thread overview]
Message-ID: <CAEp6DyZrQvpXsCWxyEYuzDqX+++ryr6AQys2JjsaOeOQhGndWg@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2013-01-06 7:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-06 7:27 E Sabof [this message]
2013-01-06 7:58 ` Bug: org-time-stamp sometimes moves my cursor to another monitor ( [7.8.11] Bastien
2013-01-06 8:46 ` E Sabof
2013-01-06 10:20 ` E Sabof
2013-01-06 11:37 ` Bastien
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=CAEp6DyZrQvpXsCWxyEYuzDqX+++ryr6AQys2JjsaOeOQhGndWg@mail.gmail.com \
--to=esabof@gmail.com \
--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).