emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode, vc, and read-only files:
@ 2006-10-07 19:16 T. V. Raman
  2006-10-10 19:57 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: T. V. Raman @ 2006-10-07 19:16 UTC (permalink / raw)
  To: emacs-orgmode

Would it be possible to make org-cycle work on read-only files
--- suspect we just neeed to wrap its body in a 
(let ((inhibit-read-only t))...)

At present, if you put your org files under vc control, with RCS then
opening a checked-in  file i.e. one that is read-only, causes an
error since org-cycle is unable to change properties on read-only
content.

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mode, vc, and read-only files:
  2006-10-07 19:16 org-mode, vc, and read-only files: T. V. Raman
@ 2006-10-10 19:57 ` Carsten Dominik
  2006-10-11  1:05   ` T. V. Raman
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2006-10-10 19:57 UTC (permalink / raw)
  To: raman; +Cc: emacs-orgmode

Hi Raman,

I sure could wrap the relevant parts in org-cycle with 
inhibit-read-only, but so far I cannot reproduce the error.  When I am 
loading a write-protected file,  I am getting a "Note: file is write 
protected."  This note is delivered as a message only, and after that 
everything proceeds normally.  In the buffer I seem to be able to use 
org-cycle freely even though it is write protected.  I think this is 
because outline-mode uses overlays, not text properties.  So I am 
guessing that it is not org-cycle which causes the error.

Can you give me more hints as to what the problem really is?  Maybe an 
example file that hits the error and produces a backtrace?

Thanks.

- Carsten


On Oct 7, 2006, at 21:16, T. V. Raman wrote:

> Would it be possible to make org-cycle work on read-only files
> --- suspect we just neeed to wrap its body in a
> (let ((inhibit-read-only t))...)
>
> At present, if you put your org files under vc control, with RCS then
> opening a checked-in  file i.e. one that is read-only, causes an
> error since org-cycle is unable to change properties on read-only
> content.
>
> -- 
> Best Regards,
> --raman
>
>
> Email:  raman@users.sf.net
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> Google: tv+raman
> IRC:    irc://irc.freenode.net/#emacs
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mode, vc, and read-only files:
  2006-10-10 19:57 ` Carsten Dominik
@ 2006-10-11  1:05   ` T. V. Raman
  0 siblings, 0 replies; 3+ messages in thread
From: T. V. Raman @ 2006-10-11  1:05 UTC (permalink / raw)
  To: dominik; +Cc: raman, emacs-orgmode


Actually your message told me enough to debug the problem, the
culrpit was I (or rather emacspeak) which  implements voice lock
purely via properties, and in that process maps overlays to
properties for its own purposes. So the fix should go into
emacspeak -- I'll check it in at this end.

>>>>> "Carsten" == Carsten Dominik <dominik@science.uva.nl> writes:
    Carsten> Hi Raman, I sure could wrap the relevant parts in
    Carsten> org-cycle with inhibit-read-only, but so far I
    Carsten> cannot reproduce the error.  When I am loading a
    Carsten> write-protected file, I am getting a "Note: file is
    Carsten> write protected."  This note is delivered as a
    Carsten> message only, and after that everything proceeds
    Carsten> normally.  In the buffer I seem to be able to use
    Carsten> org-cycle freely even though it is write protected.
    Carsten> I think this is because outline-mode uses overlays,
    Carsten> not text properties.  So I am guessing that it is
    Carsten> not org-cycle which causes the error.
    Carsten> 
    Carsten> Can you give me more hints as to what the problem
    Carsten> really is?  Maybe an example file that hits the
    Carsten> error and produces a backtrace?
    Carsten> 
    Carsten> Thanks.
    Carsten> 
    Carsten> - Carsten
    Carsten> 
    Carsten> 
    Carsten> On Oct 7, 2006, at 21:16, T. V. Raman wrote:
    Carsten> 
    >> Would it be possible to make org-cycle work on read-only
    >> files --- suspect we just neeed to wrap its body in a (let
    >> ((inhibit-read-only t))...)
    >> 
    >> At present, if you put your org files under vc control,
    >> with RCS then opening a checked-in file i.e. one that is
    >> read-only, causes an error since org-cycle is unable to
    >> change properties on read-only content.
    >> 
    >> -- 
    >> Best Regards, --raman
    >> 
    >> 
    >> Email: raman@users.sf.net WWW:
    >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
    >> tv.raman.tv@gmail.com PGP:
    >> http://emacspeak.sf.net/raman/raman-almaden.asc Google:
    >> tv+raman IRC: irc://irc.freenode.net/#emacs
    >> 
    >> 
    >> _______________________________________________
    >> Emacs-orgmode mailing list Emacs-orgmode@gnu.org
    >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
    >> 
    >> 
    Carsten> 
--
Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek"
    Carsten> Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
    Carsten> Amsterdam phone: +31 20 525 7477

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-11  1:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-07 19:16 org-mode, vc, and read-only files: T. V. Raman
2006-10-10 19:57 ` Carsten Dominik
2006-10-11  1:05   ` T. V. Raman

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).