From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tim O'Callaghan" Subject: bug: Xemacs problem with editing headings with compressed contents Date: Tue, 26 Feb 2008 18:13:32 +0100 Message-ID: <3d6808890802260913pc3bcb74wee0b5c54ce34087f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU3N3-0006SL-56 for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 12:13:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU3N1-0006RN-NM for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 12:13:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU3N1-0006R8-DW for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 12:13:35 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU3N0-0003JV-MR for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 12:13:35 -0500 Received: by fg-out-1718.google.com with SMTP id d23so10949291fga.30 for ; Tue, 26 Feb 2008 09:13:32 -0800 (PST) Content-Disposition: inline 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: org-mode mailing list 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.