emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org, Richard Riley <rileyrg@gmail.com>
Subject: Re: [BUG - low] capture with region selected in read only erc buffer
Date: Thu, 02 Sep 2010 14:52:32 -0400	[thread overview]
Message-ID: <87occggeq7.fsf@fastmail.fm> (raw)
In-Reply-To: <362D9A7C-78B3-42B1-8BF4-4DAF2BDBB185@gmail.com> (Carsten Dominik's message of "Thu, 2 Sep 2010 11:35:36 +0200")

Hi Carsten,

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Sep 2, 2010, at 1:18 AM, Richard Riley wrote:
>>
>> If I select a region in, in this case, an erc (emacs irc client)
>> buffer
>> in the read only section and then use my global keys to create a new
>> item using the following "j" template while the text is still selected
>>
>> ("j" "Journal" entry
>>  (file+datetree "journal.org")
>>  "* %T %?\n  %i\n  %a")
>>
>> then I get the following backtrace :-
>>
>> Debugger entered--Lisp error: (error "Capture abort: (text-read-
>> only)")
>>  signal(error ("Capture abort: (text-read-only)"))
>>  error("Capture abort: %s" (text-read-only))
>>  byte-code("\301\302!\203\n

> Fixed, thanks.
>

This update caused the following error when invoking org-capture on a
Gnus article:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (args-out-of-range 0 401)
  remove-text-properties(0 401 (read-only t) "[[gnus:gmane.emacs.orgmode#87aao21i92.fsf@gmx.de][Sebastian Rose: Re: Org-protocol / Chrome on Linux]]")
  (progn (remove-text-properties 0 (length initial) (quote ...) annotation))
  (if annotation (progn (remove-text-properties 0 ... ... annotation)))
  (when annotation (remove-text-properties 0 (length initial) (quote ...) annotation))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when initial (remove-text-properties 0 ... ... initial)) (when annotation (remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... ... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!  debug(error (args-out-of-range 0 401))
  remove-text-properties(0 401 (read-only t) "[[gnus:gmane.emacs.orgmode#87aao21i92.fsf@gmx.de][Sebastian Rose: Re: Org-protocol / Chrome on Linux]]")
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!  debug(error (args-out-of-range 0 401))
  remove-text-properties(0 401 (read-only t) "[[gnus:gmane.emacs.orgmode#87aao21i92.fsf@gmx.de][Sebastian Rose: Re: Org-protocol / Chrome on Linux]]")
  org-capture(nil)
  call-interactively(org-capture nil nil)
--8<---------------cut here---------------end--------------->8---

Reverting commit d8498a40e815d8604311e9844e6c75bbf074d026 fixed the
issue.

Thanks,
Matt

  reply	other threads:[~2010-09-02 18:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 23:18 [BUG - low] capture with region selected in read only erc buffer Richard Riley
2010-09-02  9:35 ` Carsten Dominik
2010-09-02 18:52   ` Matt Lundin [this message]
2010-09-03  5:11     ` Carsten Dominik

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=87occggeq7.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrg@gmail.com \
    /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).