From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [BUG - low] capture with region selected in read only erc buffer Date: Thu, 02 Sep 2010 14:52:32 -0400 Message-ID: <87occggeq7.fsf@fastmail.fm> References: <362D9A7C-78B3-42B1-8BF4-4DAF2BDBB185@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=33952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrEtp-0006My-GJ for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 14:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrEtn-0005ah-WB for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 14:52:37 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:52380) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrEtn-0005aR-Sm for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 14:52:35 -0400 In-Reply-To: <362D9A7C-78B3-42B1-8BF4-4DAF2BDBB185@gmail.com> (Carsten Dominik's message of "Thu, 2 Sep 2010 11:35:36 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, Richard Riley Hi Carsten, Carsten Dominik 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 ...) annotatio= n)) (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 (re= move-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t = ... ... ... ... ... ... ...))) (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (o= rg-capture-goto-last-stored)) (t (let* ... ... ... ...))) org-capture(nil) call-interactively(org-capture nil nil) recursive-edit() byte-code("\306=10 @\307=3D\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=10 @\307=3D\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