From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] Infinite loop in org-agenda-show-new-time
Date: Fri, 23 Aug 2013 08:07:58 -0400 [thread overview]
Message-ID: <87haegy5i9.fsf@gmail.com> (raw)
In-Reply-To: 3E07FCDB-2619-4BFE-BC68-C5181717152B@gmail.com
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
Carsten Dominik <carsten.dominik@gmail.com> writes:
> I also do not expect negative consequences. Please apply the patch, will you?
>
OK - patch attached. NB: there is at least one place where the "wrap the
call to org-move-to-column" has been applied, in
org.el:`org-comment-or-uncomment-region', presumably for exactly this
reason. If this patch does not cause unexpected problem, then the
wrapped setting above can be cleaned up.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Patch for Matt Lundin's infloop --]
[-- Type: text/x-diff, Size: 1532 bytes --]
From b0aebe182a72df8e7d5428a02e0eca7a6922fefe Mon Sep 17 00:00:00 2001
From: Nick Dokos <ndokos@gmail.com>
Date: Fri, 23 Aug 2013 07:42:44 -0400
Subject: [PATCH] Fix infinite loop in org-agenda-show-new-time
* lisp/org-agenda.el (org-move-to-column): Make sure that
`buffer-invisibility-spec' is nil when calling move-to-column.
This was caused by a previous commit (fafb5f34) which eliminated the
setting of `buffer-invisibility-spec' in `org-agenda-show-new-time'.
Matt Lundin ran into this and there is a discussion on the ML:
http://thread.gmane.org/gmane.emacs.orgmode/75288
---
lisp/org-compat.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index d10aeea..c4d15d8 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -336,9 +336,12 @@ Works on both Emacs and XEmacs."
(indent-line-to column)))
(defun org-move-to-column (column &optional force buffer)
- (if (featurep 'xemacs)
- (org-xemacs-without-invisibility (move-to-column column force buffer))
- (move-to-column column force)))
+ ;; set buffer-invisibility-spec to nil so that move-to-column
+ ;; does the right thing despite the presence of invisible text.
+ (let ((buffer-invisibility-spec nil))
+ (if (featurep 'xemacs)
+ (org-xemacs-without-invisibility (move-to-column column force buffer))
+ (move-to-column column force))))
(defun org-get-x-clipboard-compat (value)
"Get the clipboard value on XEmacs or Emacs 21."
--
1.8.3.101.g727a46b
[-- Attachment #3: Type: text/plain, Size: 77 bytes --]
I hope it conforms to conventions but let me know of any problems.
--
Nick
next prev parent reply other threads:[~2013-08-23 12:08 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 15:42 [BUG] Infinite loop in org-agenda-show-new-time Matt Lundin
2013-08-05 17:13 ` Nick Dokos
2013-08-05 20:14 ` Matt Lundin
2013-08-05 22:05 ` Nick Dokos
2013-08-06 17:36 ` Matt Lundin
2013-08-06 21:35 ` Nick Dokos
2013-08-06 22:45 ` Nick Dokos
2013-08-14 15:19 ` Matt Lundin
2013-08-14 15:38 ` Nick Dokos
2013-08-10 15:06 ` Nick Dokos
2013-08-14 15:15 ` Matt Lundin
2013-08-14 15:45 ` Nick Dokos
2013-08-23 9:58 ` Carsten Dominik
2013-08-23 12:07 ` Nick Dokos [this message]
2019-12-26 19:37 ` Andrew Hyatt
2020-02-01 9:32 ` Bastien
2020-02-02 15:19 ` Andrew Hyatt
2020-02-03 19:04 ` Bastien
2020-02-04 19:25 ` Andrew Hyatt
2020-02-04 23:38 ` Bastien
2020-02-05 16:34 ` Andrew Hyatt
2020-02-05 19:50 ` Matthew Lundin
2020-02-11 7:56 ` Bastien
2020-02-14 3:27 ` Andrew Hyatt
2020-02-14 10:02 ` Bastien
2020-02-17 19:20 ` Andrew Hyatt
2020-02-17 22:53 ` 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=87haegy5i9.fsf@gmail.com \
--to=ndokos@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).