emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Tim O'Callaghan <tim.ocallaghan@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: bug: Xemacs problem with editing headings with compressed contents
Date: Thu, 28 Feb 2008 08:13:52 +0100	[thread overview]
Message-ID: <235AE412-F24D-41DC-8D61-251BE79F2D54@science.uva.nl> (raw)
In-Reply-To: <3d6808890802260913pc3bcb74wee0b5c54ce34087f@mail.gmail.com>

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

      parent reply	other threads:[~2008-02-28  7:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-26 17:13 bug: Xemacs problem with editing headings with compressed contents Tim O'Callaghan
2008-02-27 15:07 ` Carsten Dominik
2008-02-28  7:13 ` Carsten Dominik [this message]

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=235AE412-F24D-41DC-8D61-251BE79F2D54@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=tim.ocallaghan@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).