From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG - low] capture with region selected in read only erc buffer Date: Fri, 3 Sep 2010 07:11:38 +0200 Message-ID: <343B7F27-D0FE-4C4F-BDDA-DD5F917F0C40@gmail.com> References: <362D9A7C-78B3-42B1-8BF4-4DAF2BDBB185@gmail.com> <87occggeq7.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=48334 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrOZ0-00085R-KC for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 01:11:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrOYz-0000X8-Go for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 01:11:46 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:42558) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrOYz-0000Wv-5l for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 01:11:45 -0400 In-Reply-To: <87occggeq7.fsf@fastmail.fm> 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: Matt Lundin Cc: emacs-orgmode@gnu.org, Richard Riley On Sep 2, 2010, at 8:52 PM, Matt Lundin wrote: > 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 =20 >>> 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: Fixed, thanks. - Carsten > > --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=20 > ][Sebastian Rose: Re: Org-protocol / Chrome on Linux]]") > (progn (remove-text-properties 0 (length initial) (quote ...) =20 > annotation)) > (if annotation (progn (remove-text-properties 0 ... ... annotation))) > (when annotation (remove-text-properties 0 (length initial) =20 > (quote ...) annotation)) > (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) =20 > (when initial (remove-text-properties 0 ... ... initial)) (when =20 > annotation (remove-text-properties 0 ... ... annotation)) (cond =20 > (... ...) (... ...) (t ... ... ... ... ... ... ...))) > (cond ((equal goto ...) (org-capture-goto-target)) ((equal =20 > goto ...) (org-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=20 > ][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=20 > ][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 > - Carsten