unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xavier Maillard <xma@gnu.org>
To: Nikolaj Fogh <nikolajfogh@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Lock buffer to window
Date: Thu, 24 May 2007 23:45:28 +0200	[thread overview]
Message-ID: <200705242145.l4OLjSA3015430@localhost.localdomain> (raw)
In-Reply-To: <4654ab90$0$90266$14726298@news.sunsite.dk> (message from Nikolaj Fogh on Wed, 23 May 2007 21:14:58 +0200)


   Hi,

   I was wondering if there was any way of locking a specific buffer to a 
   window it emacs, so that that window never changes buffer. I have some 
   trouble when I edit a LaTeX document and compile it, the compilation 
   buffer overrides my reftex-toc buffer.

If you want to do this interactively, you would use
`toggle-read-only' bound to C-x C-q.

If you want to do this programmatically, you could
`buffer-read-only' variable this way:

     (let ((buffer-read-only nil)
           ....
          )
     (message "Buffer is read/write"))


	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org

  parent reply	other threads:[~2007-05-24 21:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23 19:14 Lock buffer to window Nikolaj Fogh
     [not found] ` <mailman.1165.1180017190.32220.help-gnu-emacs@gnu.org>
2007-05-24 14:05   ` Nikolaj Fogh
2007-05-24 14:32 ` Nikolaj Schumacher
2007-05-24 21:45   ` Xavier Maillard
2007-05-24 21:45 ` Xavier Maillard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-09-11 12:28 martin rudalics
     [not found] <mailman.6613.1157699819.9609.help-gnu-emacs@gnu.org>
2006-09-08  7:56 ` Mathias Dahl
2006-09-08  8:00   ` Mathias Dahl
2006-09-11  7:23   ` henning
2006-09-08  7:16 henning

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200705242145.l4OLjSA3015430@localhost.localdomain \
    --to=xma@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=nikolajfogh@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.
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).