From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug: Xemacs problem with editing headings with compressed contents Date: Thu, 28 Feb 2008 08:13:52 +0100 Message-ID: <235AE412-F24D-41DC-8D61-251BE79F2D54@science.uva.nl> References: <3d6808890802260913pc3bcb74wee0b5c54ce34087f@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUdTK-0003jk-8E for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 02:46:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUdTJ-0003j2-Kl for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 02:46:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUdTI-0003ic-UP for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 02:46:28 -0500 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUdTI-000792-AC for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 02:46:28 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUdTH-0006mS-Gx for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 02:46:27 -0500 Received: by ug-out-1314.google.com with SMTP id a2so181608ugf.48 for ; Wed, 27 Feb 2008 23:46:27 -0800 (PST) In-Reply-To: <3d6808890802260913pc3bcb74wee0b5c54ce34087f@mail.gmail.com> 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: Tim O'Callaghan Cc: org-mode mailing list I have looked into it further, it is a bug in the move-to-column function in XEmacs that does not behave well in combination with hidden text, when the FORCE argument is given. Maybe you can try to write a replacement that will work? - Carsten On Feb 26, 2008, at 6:13 PM, Tim O'Callaghan wrote: > Hi. > > There is some problem with tags and headings. I've had instances where > the tag has disappeared or merged into my heading. > > Repeatable with Xemacs 21.4.19 i586-pc-win32, org 5.22a using this > fragment: > ----- > > * REAEARCH memory problems on oxo50 :proj: > *** WAIT korstian to organise a meeting. > ----- > > If i try to add the S into the heading when it is folded, then it > generates the error "Visible portion of buffer not modifiable". > Debugger gives: > > Debugger entered--Lisp error: (error "Visible portion of buffer not > modifiable") > move-to-column(70 t) > (progn (setq tags (match-string 2)) (goto-char (match-beginning 1)) > (insert " ") (delete-region (point) (1+ ...)) (backward-char 1) > (move-to-column (max ... ... ...) t) (insert tags) (move-to-column > (min ... col) t)) > (if (and (looking-at ...) (< pos ...)) (progn (setq tags ...) > (goto-char ...) (insert " ") (delete-region ... ...) (backward-char 1) > (move-to-column ... t) (insert tags) (move-to-column ... t)) > (goto-char pos)) > (let ((pos ...) (col ...) tags) (beginning-of-line 1) (if (and ... > ...) (progn ... ... ... ... ... ... ... ...) (goto-char pos))) > org-align-tags-here(70) > (if (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here > org-tags-column)) > (when (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here > org-tags-column)) > org-fix-tags-on-the-fly() > (if (and (org-table-p) (progn ... t) (eq N 1) (looking-at "[^|\n]* > |")) (let (org-table-may-need-update) (goto-char ...) > (delete-backward-char 1) (goto-char ...) (self-insert-command N)) > (setq org-table-may-need-update t) (self-insert-command N) > (org-fix-tags-on-the-fly)) > org-self-insert-command(1) > call-interactively(org-self-insert-command) > recursive-edit() > debug(error (error "Visible portion of buffer not modifiable")) > move-to-column(70 t) > (progn (setq tags (match-string 2)) (goto-char (match-beginning 1)) > (insert " ") (delete-region (point) (1+ ...)) (backward-char 1) > (move-to-column (max ... ... ...) t) (insert tags) (move-to-column > (min ... col) t)) > (if (and (looking-at ...) (< pos ...)) (progn (setq tags ...) > (goto-char ...) (insert " ") (delete-region ... ...) (backward-char 1) > (move-to-column ... t) (insert tags) (move-to-column ... t)) > (goto-char pos)) > (let ((pos ...) (col ...) tags) (beginning-of-line 1) (if (and ... > ...) (progn ... ... ... ... ... ... ... ...) (goto-char pos))) > org-align-tags-here(70) > (if (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here > org-tags-column)) > (when (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here > org-tags-column)) > org-fix-tags-on-the-fly() > (if (and (org-table-p) (progn ... t) (eq N 1) (looking-at "[^|\n]* > |")) (let (org-table-may-need-update) (goto-char ...) > (delete-backward-char 1) (goto-char ...) (self-insert-command N)) > (setq org-table-may-need-update t) (self-insert-command N) > (org-fix-tags-on-the-fly)) > org-self-insert-command(1) > call-interactively(org-self-insert-command) > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode