HDTenEightyP/NetNews huggingface dataset:
From: warsaw@nlm.nih.gov (Barry A. Warsaw)
Subject: Re: global start up file
Reply-To: warsaw@nlm.nih.gov (Barry A. Warsaw)
Organization: Century Computing, Inc.
Date: 12 Nov 92 18:30:57 GMT


Note that defaults.el is loaded *after* ~/.emacs.  If you want to
incorporate a site init file that's loaded *before* ~/.emacs that
contain site stuff which you don't want to dump into emacs (so that
you can change without having to recompile emacs), check out my
startup.el patch:

lisp-dir-apropos sez:

	   GNU Emacs Lisp Code Directory Apropos -- "startup-patch"
"~/" refers to archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/

startup-patch		  89-09-05
	 Barry A. Warsaw, <bwarsaw@cen.com>
	 ~/misc/startup.patch.Z
	 Mods to startup.el for settable command line arguments, among others


-Barry
Newsgroups: gnu.emacs.help
From: choo@cs.yale.edu (Young-il Choo)
Subject: Re: in search for RMAIL extensions
Organization: Yale Univ Computics
	<1992Nov13.182626.12806@cs.yale.edu>
Date: Fri, 13 Nov 1992 18:30:52 GMT

In article <1992Nov13.182626.12806@cs.yale.edu> choo@cs.yale.edu (Young-il Choo) writes:

me> In article <RON.92Nov12123044@wc18.yorku.ca> ron@wc18.yorku.ca (Ron Sheese) writes:

Ron> I would like to find a way changing the primary rmail file ~/RMAIL to
Ron> ~/Rmail/RMAIL and the default output rmail file as ~/Rmail/XMAIL
Ron> instead of ~/XMAIL.

me> Put the following in your .emacs or rmail-load-hook
                                        ^^^^^^^^^^^^^^^
Oops.  Should be "rmail-mode-hook".
The rmail-load-hook comes in a non-standard version of rmail that I have.

me> (setq rmail-file-name "~/Rmail/RMAIL"
me>       rmail-last-rmail-file "~/Rmail/XMAIL")

-- Young-il
Newsgroups: gnu.emacs.help
From: keith%accura_nc@concert.net (Keith B. Kee {AISG} )
Subject: Demacs
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Tue, 10 Nov 1992 15:25:20 GMT

Could someone be kind enough to tell me where I could get the latest and
greatest copy of Demacs. Since I don't have ftp access, I would have to
approach mail-servers or somebody kind enough to mail me one. 


Thanks.
Keith
From: harris@gallium.cs.unc.edu (Trey Harris)
Newsgroups: gnu.emacs.help
Subject: Re: why emacsclient?
Date: 6 Nov 92 04:32:37 GMT
Organization: The University of North Carolina at Chapel Hill

When I try to use emacsclient after running emacs, it gives me the
error:

stat: file or directory not found.

What am I doing wrong?  My .emacs is fairly standard (it simply loads
up ispell and checks for c++ mode, and if there's no file suffix, it
puts it into text fill mode), and I don't know what I should be doing.

Trey Harris
--Stranger in a Strange Thread!
Xref: sparky gnu.emacs.help:4726 comp.os.vms:17616
From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Newsgroups: gnu.emacs.help,comp.os.vms
Subject: Re: VMS mail --> Emacs RMAIL
Date: 7 Nov 1992 02:53:38 GMT
Organization: HST Wide Field/Planetary Camera
Distribution: world
Reply-To: carl@SOL1.GPS.CALTECH.EDU
NNTP-Posting-Host: sol1.gps.caltech.edu

In article <GRODAN.92Nov2174516@cyklop.nada.kth.se>, grodan@cyklop.nada.kth.se (Mats G Lfdahl) writes:
=
=I am moving from VMS to unix and I've started reading email with
=Emacs's rmail. Now, I have a lot of old messages in various folders in
=the VSM account. Is there a way to transfer them to the unix machine,
=preserving the original Date:, Subject:, and  From: fields? 
=
=It would be even better if the procedure could also imitate the
=folders, with rmail labels.

Well, your first step should probably be to EXTRACT/ALL/MAIL each of your
folders to a different sequential file.  I don't know anything about the format
in which rmail stores mail files, so I can't help you beyond that.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
From: jv@mh.nl (Johan Vromans)
Newsgroups: gnu.emacs.help
Subject: Flickering cursor in X11 emacs 18.59
Date: 9 Nov 92 08:53:29 GMT
Organization: Multihouse Automation, the Netherlands
X-Md4-Signature: 59317cf97b7a21995d18be49d049653c

Hi,

I have noticed that in emacs 18.59, when running under X, the cursor
flickers (i.e. is turned off and on again) while typing at the end of
the line. It does not happen while inserting text.
The system is DECsystem5000/200, running Ultrix 4.3.

18.58 does not have this behaviour.

Is this a bug or intentional?

	Johan
-- 
Johan Vromans				       jv@mh.nl via internet backbones
Multihouse Automatisering bv		       uucp:..!{uunet,sun4nl}!mh.nl!jv
Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62911/62500
------------------------ "Arms are made for hugging" -------------------------
Newsgroups: gnu.emacs.help
From: Peter.Bruells@arbi.informatik.uni-oldenburg.de (Peter Bruells)
Subject: How to properly "lookup-key" ? 
Organization: University of Oldenburg, Germany
Date: Sun, 8 Nov 1992 17:34:55 GMT


Hello...


I have the following problem:

I defined the following two functions and bound them to ' and , to
allow easier input of german quotes while in TeX-mode, while I
disabled " as a special command..

(Had to, since " is a meta-char when using german.sty)


Typing ,, produces "` and typing '' produces "', typing a printable
char after a , or ' inserts the , or ' and the char.

BUT: Typing CTRL<char> inserts ^char, as if I had quoted the character.

I understand WHY this happens, but have no idea how to get rid of it. 

With (lookup-key .. .. ) I can check wether a given key ius bound to a
command, self-insert-command or not bound at all, but I have NO idea
how to use it.

command-execute ? execute-command ? I'm totally lost... 

Can anybode help ? 

Thanks in advance... 

(defun glatex-close ()
  ""
  (interactive)
  (insert "'")
  (setq x (read-char))
  (if (eq x 39)
      (progn
	(delete-backward-char 1)
	(insert "\"'"))
    (insert x)))


(defun glatex-open ()
  ""
  (interactive)
  (insert ",")
  (setq x (read-char))
  (if (eq x 44)
      (progn
	(delete-backward-char 1)
	(insert "\"`"))
    (insert x)))




(setq TeX-mode-hook
	'(lambda ()
	   (define-key TeX-mode-map "\""    '(lambda () (interactive) (TeX-insert-quote "1")))
	   (define-key TeX-mode-map "\C-c>" '(lambda () (interactive) (insert "\"`")))
	   (define-key TeX-mode-map "\C-c<" '(lambda () (interactive) (insert "\"'")))
	   (define-key TeX-mode-map ","     'glatex-open)
	   (define-key TeX-mode-map "'"     'glatex-close)))
From: johndew@watson.ibm.com (John Dewysocki)
Newsgroups: gnu.emacs.help
Subject: Cut Buffer patch for emacs 18.57??
Date: 11 Nov 92 22:38:24 GMT
Organization: IBM T.J. Watson Research Center
Disclaimer: This posting represents the poster's views, not necessarily those of IBM

Does anyone have the patch mentioned in the FAQ sheets:

  Andy Norman has been accused of producing a patch for Emacs 18.57 that     +
  allows it to use selections directly.                                      +


If you have it, could you send it to me please, or tell me where
I could get it??  Thanks,

I tried to use the following in my X resources, but it did not
work:

    XTerm*VT100.Translations: #override \                                    +
        ~Meta <Btn2Up>: insert-selection(CUT_BUFFER0,PRIMARY)                +

Or I'm not doing it correctly, or something.
-- 

     ~    John    ~ 
|///////////\\\\\\\\\\\|
Newsgroups: gnu.emacs.help
Date: Fri, 6 Nov 92 8:57:01 EST
From: Chao Yuan <yuan@cs.columbia.edu>
Subject: "Emacs problem" 's solution

I posted an "emacs problem" article in this board yesterday, and got some 
pals' replies. The problem is that I didn't uncomment this line 
/*  #define HAVE_A_WINDOWS */
in $EMACS/src/config.h. Actually it's not an emacs problem(I am sorry). 

By the way, I got two different comments to this problem, one came 
From: Edward J. Hartnett <ejh@khonshu.Colorado.EDU>:
EJH>>>Your trying to send emacs x windows commands and it's interpreting
EJH>>>them as filenames. I had the same problem myself. There is a man page
EJH>>>with the emacs distribution, and if you look at that it give clear
EJH>>>instructions on how to do it. Here's what I did:
EJH>>>
EJH>>>emacs -font 8x13 -w =100x50+0+65 -fg blue -bg cyan &

Another came
From: Kevin Rodgers <kevin@traffic.den.mmc.com>
Kevin>>>You may have 'emacs' aliased in your shell (see ~/.cshrc), like I do:
Kevin>>>
Kevin>>>	alias emacs	'emacs \!* -w =81x40'
Kevin>>>
Kevin>>>This can cause problems like the one your report because Emacs is very
Kevin>>>sensitive to the order in which options are passed to it.
Kevin>>>

Hope these comments can help some other pals.

Thanks a lot to all those who gave me replies, directly or indirectly.

Charles
From: dsc3son@nmdsc10.med.navy.mil (Sean O'Neill)
Newsgroups: gnu.emacs.help
Subject: Question:  EMACS Tab Settings
Date: 6 Nov 92 15:21:07 GMT
Organization: Rapid Systems Solutions, Inc.

I have a question about EMACS tabs.  I have a pre-existing document
that I wish to edit (its a Perl program).  The default tab setting in
EMACS is 8 columns per tab.  I would like 4 columns per tab.  I used
the edit-tab-stops function and changed the tabs to what I want.  The
strange thing is only tabs from that point on are effected.  I would
like for all tabs in the current buffer to be shifted over to column
4.  'Vi' does this using the ':set tabstop=4' command.  All tabs are
immediately shifted over to column 4.  Is there a function that does
this?

HELP!
--
----====----====----====----====----====----====----====----====----====----===
Sean O'Neill                               Where Imagination Is Building
Rapid Systems Solutions, Inc.               the Future ...
Columbia, MD
====----====----====----====----====----====----====----====----====----====---
From: sterne@dublin.llnl.gov (Philip Sterne)
Newsgroups: gnu.emacs.help
Subject: Re: How can I view 3 files at once
Date: 11 Nov 92 20:17:49 GMT
Reply-To: sterne@dublin.llnl.gov (Philip Sterne)
Organization: Lawrence Livermore National Laboratory

|> 
|> 
|> I want to be able to have 3 files visible in 3 buffers at the
|> same time. Its easy enough to have 2 files visible, through
|> find-file-other-window, but I cannot see how to get a third
|> buffer going. The FAQ shed no light on the subject.
|>  
|> Any ideas?
|>  

Once you have buffers for each of the three files, you can go into 
Buffer Menu Mode (C-x C-b), type 'm' on the lines of the first and 
second files and 'q' on the line of the third and you will have 
three (roughly) equally sized windows showing the three files.  

Works for an arbitrary number of buffers too. Type C-h m in Buffer
Mode for more info. 

Hope this helps,
			Phil 
--
Philip Sterne 				|    sterne@dublin.llnl.gov
Lawrence Livermore National Laboratory	|    Phone   (510) 422-2510
Livermore,  CA 94550			|    Fax     (510) 422-7300
Newsgroups: gnu.emacs.help
From: ratinox@splinter.coe.northeastern.edu (Richard Pieri/Stainless Steel Rat)
Subject: Re: emacs over modem line
X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]
Reply-To: ratinox@meceng.coe.northeastern.edu
X-Signature-Virus-Protection: Version 1.51
X-Get-A-Clue: Have two, they're small.
Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
	<NS14.92Oct26200430@crux3.crux2.cit.cornell.edu>
	<6538@ucsbcsl.ucsb.edu>
Distribution: gnu
Date: Fri, 6 Nov 1992 02:49:27 GMT

][sn't this in the FAQ somewhere? (][ haven't had to read it in a
looong time :-).

Anyway, modems use something called "flow control" to (you guessed it)
control the flow of data. There are two kinds: "hardware" which uses a
special hardware line; and "software", also known as XON/XOFF for
"transmit on/transmit off". The C-s character is the XOFF code, the
C-q character is the XON code. You need to either bind new keys to do
C-s and C-q functions, or something else equally funky.

Ask your local sysadmin or emacs guru for help.

--Rat
||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
Northeastern's Stainless Steel Rat          ratinox@meceng.coe.northeastern.edu
I'm the best there is at what I do.  Trouble is, what I do isn't very nice.
From: jf41+@andrew.cmu.edu (Jonathan R. Ferro)
Newsgroups: gnu.emacs.help
Subject: Re: Looking for EMACS manual
Date: 5 Nov 92 01:33:17 GMT
Article-I.D.: andrew.8eyENxS00VpZQS92xA
Organization: Carnegie Mellon, Pittsburgh, PA

kilman2y@loony (Yevgeny Kilman) writes:
> I would be most thankful to anyone who can tell me where from can I ftp
> the EMACS manual. I'm interested in all posible formats.

Compressed Postscript versions of all GNU manuals are archived on
cs.ubc.ca in the anonymous FTP directory /pub/archive/gnu/manuals_ps.

-- Jon Ferro               Einsprachigkeit ist heilbar
Newsgroups: gnu.emacs.help
Newsgroups: gnu.emacs.help
Date: Thu, 5 Nov 92 11:31:40 EST
From: Chao Yuan <yuan@cs.columbia.edu>
Subject: emacs problem

Hi, everyone,

	I meet such an emacs.18.59 problem in Sun IPX, which is using SunOS
4.1.2. When I start emacs, say "emacs -fn 9x15bold", the system will
treat the "-fn" and "9x15bold" as two file names, though the font can
be actually set to 9x15bold. 

	When I installed this emacs, I selected s-sunos4-1.h and
m-sparc.h in $EMACS/src/config.h. 

	Any comments? Thanks,


Charles
From: bwolen+@cs.cmu.edu (Po-Jen Yang)
Newsgroups: gnu.emacs.help
Subject: Re: in search for RMAIL extensions
Keywords: RMAIL
Date: 5 Nov 92 13:31:01 GMT
Article-I.D.: cs.Bx8w7q.4EM.1
Organization: School of Computer Science, Carnegie Mellon

I would like to know how to get RMAIL to sort the folder by date

bwolen@cs.cmu.edu
-- 
Newsgroups: gnu.emacs.help,bnr.unix
From: keithh@bnr.ca (Keith Hanlan)
Subject: Looking for cross-reference tools (more than etags)
Organization: Bell-Northern Research Ltd., Ottawa
Date: Wed, 11 Nov 1992 20:53:52 GMT

I've just started using GnuEmacs for work and am looking for a set
of functions that will let me trace C identifiers through various
files.  Etags and the associated emacs functions seems to be a
start but I want to be able to do five distinct operations:

	1. Jump to the declaration of an identifier.
	2. Jump to the declaration of an identifier's type.
        3. Jump to the next instance of the identifier within the
           current buffer.
        4. Jump to the next instance of the identifier in another
           buffer (and open the file if necessary).
        5. List, (perhaps in an electric buffer), the files (or
           buffers) in which the identifier exists.

Any subset of this would be appreciated.  Does anybody know of
such a tool?  It seems to me that this is an obvious sort of tool
and must have already been written.

For BNR people, I'm looking for something like IDTRACK or FULLXREF.

Thanks for your help,
From: snk@fork.bae.bellcore.com (Samuel Kamens)
Newsgroups: gnu.emacs.help
Subject: Re: Read-Only Mode in Emacs
Date: 9 Nov 92 16:40:43 GMT
Reply-To: snk@bae.bellcore.com
Organization: Bell Communications Research

In article <1992Nov9.104519.12975@fzi.de>, xiong@fzi.de (Xiong Xun) writes:
> could someone tell me if there is any option for Read-Only mode in Emacs
> like the view editor. I couldn't find them in the manuel.


Try doing "M-x apropos read-only"

One of the things it returns:

toggle-read-only	      C-x C-q
  Function: Change whether this buffer is visiting its file read-only.


This indicates that the function toggle-read-only is bound to the key
sequence C-x C-q.

Sam


-- 
Sam Kamens					Bell Communications Research
snk@bae.bellcore.com				Phone: (908) 699-7509
444 Hoes Lane  Room RRC 1D-210
Piscataway, NJ 08854
From: picasso@bass.bu.edu (David Ondzes)
Newsgroups: gnu.emacs.help
Subject: how do you do this ...
Date: 6 Nov 92 21:21:45 GMT
Distribution: gnu.emacs.help
Organization: Wizard on Oz


Is there a way to automatically indent something with ">". When I
follow-up a post from gnus, the orignal post gets indented
(might be a tab). Is there a way I can change that to the ">" or
any other character. I would also like the same thing to happen
when I do C-c C-y after replying to a message in Rmail.

Thanks
David
Newsgroups: gnu.emacs.help
From: keith%accura_nc@concert.net (Keith B. Kee {AISG} )
Subject: Help in Demacs
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Fri, 13 Nov 1992 14:23:21 GMT

Hi:
 I have obtained a copy of demacs 1.20. After hours of installing it, I 
finally got it running. However, there are two things that I could not
get it to work right. 

	1) Putting (load-library "bobcat") in my _emacs did not swap the 
	   backspace and Del.

	2) I could not get the "mark-command" from my keyboard. I tried
	   using ^h-k to help me determine the bindings, and typing
	   c-@ on the keyboard gave me this sequence instead: c-@ c-c.

Could someone please end my agony? Thanks in advance.


-Keith
Newsgroups: gnu.emacs.help
From: conover@netcom.com (John Conover)
Subject: ispell dictionaries
Keywords: ispell dictionaries
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 11 Nov 1992 02:15:19 GMT

Is any other english dictionaries available for Ispell? I have
Dict.2, and some of my users say they need a larger library.

	Thanks,
	john@netcom.com
From: kim@merlin.anu.edu.au (Kim Sebo)
Newsgroups: gnu.emacs.help
Subject: How can I view 3 files at once
Date: 11 Nov 1992 01:45:01 GMT
Organization: Mt. Stromlo and Siding Spring Observatories
Distribution: world
NNTP-Posting-Host: 150.203.89.27


I want to be able to have 3 files visible in 3 buffers at the
same time. Its easy enough to have 2 files visible, through
find-file-other-window, but I cannot see how to get a third
buffer going. The FAQ shed no light on the subject.
 
Any ideas?
 
--
Kim Sebo, kim@merlin.anu.edu.au
          kms100@huxley.anu.edu.au
From: casey@lexmark.com (Patrick Casey)
Newsgroups: gnu.emacs.help
Subject: Re: Mapping Sun cursor keys
Date: 6 Nov 92 15:18:21 GMT
Reply-To: pacasey@lexmark.com
Distribution: usa
Organization: Lexmark International, Lexington KY
X-Disclaimer: These views are the poster's and not necessarily those of Lexmark

In article <1992Nov3.224930.2644@ncube.com> thummel@ncube.com (Tom Hummel) writes:

>  I'm trying to map the Sun keypad cursor keys to the cursor control
>  functions in emacs. The Sun keypad appears to be a three character output.
>  For example the Right arrow key produces ESC,[,C . global-set-key will
>  only let me place 2 characters in the character string, if I place
>  3 in there I get an init error. The syntax I tried was:
>  (global-set-key "\033\133\103" 'forward-char)

I put a new term file in wherever_emacs_is/lisp/term called sun-cmd.el
(since $TERM="sun-cmd" when I start emacs), that does stuff like this:

(define-key esc-map "[" (make-sparse-keymap))
(global-unset-key "[")

(global-set-key "[A"    'previous-line)       	;  up arrow
(global-set-key "[C"    'forward-char)		;  right arrow

and so on.

Are you calling global-unset-key?  If you aren't, that may be the
problem.  Hope this helps.

Patrick



--
Patrick A. Casey      pacasey@lexmark.com         Hi, I.S. big brothers!
Newsgroups: gnu.emacs.help
From: sysjmm@idun.albany.edu (jayen malde)
Subject: Re: Font display
Organization: State University of New York at Albany
Date: Thu, 5 Nov 92 18:55:14 GMT

In article <1992Nov5.185240.29213@sarah.albany.edu> sysjmm@idun.albany.edu (jayen malde) writes:
>
>Hi,
>
>We have gnu-emacs (18.55) running on our cluster. A few of the emacs users
>asked me the following question:
>
>If a user puts a "printing" high ASCII code (hex range A0-FF) and if the 
>current font is an 8 bit font, then how can we tell the emacs screen-display
>to display the code in the font rather than display an octal version of it.
>
>Being a novice emacs user myself, I am not sure how to do it myself.
>Any help/suggestion from anyone will be greatly appreciated. 
>
>=============================================================================
>                              Jayen Malde
>                              SUNY at Albany
>                              (518) 442-3711
>                              jmm080@csc.albany.edu
>=============================================================================
>

I forgot to add another question that I had. Is there a FAQ list on this
newsgroup. If so, how and where can I obtain it.
From: majidi@rwja.umdnj.edu (Masoud Majidi)
Newsgroups: gnu.emacs.help
Subject: global start up file
Date: 10 Nov 92 19:10:18 GMT
Organization: Robert Wood Johnson Medical School, Piscataway NJ

Dear netters,

Is there any way to have a global startup file for gnuemacs? There are
certain key bindings that we would like everyone on our system be able
to use and it seems natural to put them in a global startup file instead
of having each user put them in his/her own .emacs file?

Thanks in advance,

Masoud Majidi (majidi@umdnj.edu)
Newsgroups: gnu.emacs.help
From: ethanb@ptolemy.astro.washington.edu (Ethan Bradford)
Subject: Trying to use rnews (was Re: Three questions (please help a beginner))
To: nmiller@starbase.trincoll.edu (norman miller)
Organization: U. of Washington
Date: Thu, 12 Nov 1992 17:39:43 GMT

Your problem is probably that you need to read news remotely, which
rnews doesn't handle.  Instead, you need one of the optional news
reader packages: either gnus or gnews.  gnus is available from 
archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/packages/gnus-3.13.tar.Z

This question is in the FAQ list.
Newsgroups: gnu.emacs.help
From: ctrbdo@iapa.uucp%mailhost.ecn.uoknor.edu (bryan d oakley)
Subject: rnews summary (?)
Organization: FAA / Mike Monroney Aeronautical Center
Date: Thu, 12 Nov 1992 18:41:07 GMT

Is there an update to rnews.el which provides a summary feature?  I'm
running emacs 18.55 right now.  The rnews.el that I have says "lets
keep the summary stuff out until we get it working"
(sundar@hermes.ai.mit.edu Wed Apr 10, 1985).  The latest comment in my
file is Apr 22, 1987.  Surely they've got it working by now.  Also,
where's a good depository of emacs lisp files?

While I'm asking questions: anybody know when make 4.0 and emacs 19.0
are going to be available?
-- 
----------------------------------------------------------------------
Instrument Approach Procedures Automation              DOT/FAA/AMI-230
----------------------------------------------------------------------
Bryan D. Oakley                    ctrbdo%iapa@mailhost.ecn.uoknor.edu
From: dbh@doc.ic.ac.uk (Denis Howe)
Newsgroups: gnu.emacs.help
Subject: Re: Read-Only Mode in Emacs
Date: 9 Nov 92 18:16:34
Organization: Computing Department, Imperial College, London, UK
NNTP-Posting-Host: wombat.doc.ic.ac.uk
In-reply-to: rudis+@cs.cmu.edu's message of 9 Nov 92 15:48:30 GMT

In article <BxGH8y.LMA.1@cs.cmu.edu> rudis+@cs.cmu.edu (Rujith S
DeSilva) wrote:

>In article <1992Nov9.104519.12975@fzi.de> fzi.de writes: could
>>someone tell me if there is any option for Read-Only mode in Emacs
>>like the view editor. I couldn't find them in the manuel.
>
>Two things that you may find useful:
>
>(1) The view-mode, conveniently accessed by using view-file or view-buffer.
>(2) The variable buffer-read-only.  I use this via find-file-read-only.
>
>I prefer (2), because the commands work as usual, but anything that would
>modify the buffer simply generates an error and a warning beep.

I wrote the following because I was always hitting space to view the
next screenful of read-only files (I'm easily confused like that :-).

(defun insert-or-scroll (arg) "Insert a space or scroll-forward"
  (interactive "p")
  (if buffer-read-only (scroll-up ()) (self-insert-command arg)))

(define-key global-map " " 'insert-or-scroll)
--
Denis Howe <dbh@doc.ic.ac.uk>
So Biggs, you're the idiot who bought all these IBM PCs.  You're fired!
Newsgroups: gnu.emacs.help