HDTenEightyP/NetNews huggingface dataset:
From: klug@Software.Mitel.COM (Peter Klug)
Newsgroups: gnu.emacs.help
Subject: Re: Help in Demacs
Date: 16 Nov 92 21:41:26 GMT
Organization: Mitel Corporation; Kanata, Ontario, Canada
In-reply-to: keith%accura_nc@concert.net's message of 13 Nov 92 14:23:21 GMT


In article <9211131423.AA06353@accura_nc.aisg.com> keith%accura_nc@concert.net (Keith B. Kee {AISG} ) writes:

   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,

I see that the first question has already been answered.  For some
reason I have yet to fathom, none of the C-@ sequences are accessible
in demacs.  You'll also find that the keypad keys can't be customized
as you'd normally do it in emacs; you have to send ANSI sequences to
the keyboard and reset them when you leave demacs.

Anyway, to answer 2., you'll the Insert key will set a mark for you.

Ciao,

--
*        Peter Klug         *  Peter_Klug@Software.Mitel.COM
*     Mitel Corporation     *  
*  Kanata, Ontario, Canada  *  Nostalgia ain't what it used to be.
Newsgroups: gnu.emacs.help,comp.emacs
From: ron@wc07.yorku.ca (Ron Sheese)
Subject: HELP: move ~/RMAIL, ~/XMAIL, ~/XMBOX, ... --> ~/Rmail/
Organization: /writer/wcfac/ron/.organization
Date: Thu, 19 Nov 1992 22:44:54 GMT

I want to put every rmail-formed file into ~/Rmail/, as:

	~/RMAIL, ~/XMAIL, ~/XNEWS (when I reading a forwarded netnews
		and press 'o' to save it, I got the '~/XNEWS' as
		default) .

And further, I want to output all unix-mail formatted mail (as I press
'^O') to ~/Mail/, as:

	~/xmail, ~/XMBOX (don't know why I got such a default ouput
		file when I pressed '^O' at a time).

One of the netters helped me solved the main problem (sorry I couldn't
find his name).

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

Thanks,

Newsgroups: gnu.emacs.help
From: kevin@traffic.den.mmc.com (Kevin Rodgers)
Subject: Reading a remote directory name interactively
Reply-To: kevin@traffic.den.mmc.com
Organization: Martin Marietta Western Internal Systems, Technical Operations
Date: Mon, 16 Nov 1992 17:53:28 GMT


I'm trying to write an interactive command that prompts for and reads
(with completion) an existing directory name, but I'm having some
problems:

There is a global variable that specifies the directory the command
should use as the default directory, so that the user enters the
argument relative to that place in the filesystem.  (The default
directory is on a remote machine, so the command requires the ange-ftp
package; we've got version 4.20 installed.)  Now since the default
directory for reading this argument isn't necessarily the same as the
default directory of the buffer from which the command is invoked, I
can't just use the 'D' character code in a string argument descriptor to
interactive.  (If interactive did not have to appear at top level, I
could just lambda-bind default-directory before calling interactive.)

So I figure I have to write a form that can do the job, and read-file-
name looks like a good place to start since the default directory and
whether the name must match an existing file are controlled by optional
arguments to it (see the 'Reading File Names' info node of the Elisp
manual).  However, while testing this solution, I discovered this
problem: when I enter an existing (remote) directory name, it refuses to
return.  I am sure the name is valid, because I can complete it with TAB
or SPC (which appends a trailing "/" to the name) before typing RET.

I've also learned that when existing file names are entered, the
minibuffer-local-must-match keymap is in effect, and RET is bound in
that keymap to minibuffer-complete-and-exit.  Why won't that function
accept a directory name, and how can I get it to do so?  There appears
to be a lot of interaction between read-file-name and ange-ftp, which
redefines read-file-name-internal and file-name-completion.

Shouldn't there be a corresponding function read-directory-name?  (If
so, I'll suggest it to the gnu-emacs-bug list.)  Or should I just call
read-file-name without requiring a match?
Newsgroups: gnu.emacs.help,gnu.emacs,comp.emacs
From: zzang@stat.ufl.edu (zzang)
Subject: THANKS! (HELP:emacs terminal problem)
Originator: zzang@manta
Organization: University of Florida
Distribution: usa
Date: Mon, 16 Nov 92 16:39:05 GMT

Hello,
first, many thanks to all of you for
the speedy helps on the terminal problem.
second, I think other people might find
this info useful, so I post the solution here. 

the environment variable DISPLAY causes
troubles in this terminal problem.
the emacs doesn't recognize the DISPLAY
(sometimes and on some terminal).
so in this case, you should
csh>unsetenv DISPLAY
to nullify the DISPLAY variable
(Thanks, Bin and Ralf!)

Thanks again,


-- 
Zhuo Zang[~{j0WA~}]
Department of Statistics
University of Florida            Email: zzang@stat.ufl.edu
Newsgroups: gnu.emacs.help
From: moore@src.bae.co.UK (Chris Moore)
Subject: About this ispell thing.. (sigh!..)
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Thu, 19 Nov 1992 17:29:44 GMT


vlee@vis.toronto.edu (Victor Yuencheng Lee) said:

> Does any emacs genius on the net know how we could release the memory
> ispell occupied after the spell checking is done? I mean, "terminate"
> ispell by giving a comand in emacs.

I don't know whether any of the emacs genius types know, but I can tell
you.

M-x ispell-kill-ispell

should do the trick.

Chris.
Newsgroups: gnu.emacs.help
From: tree@midget.towson.edu (Denise Tree)
Subject: TeX word count?
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Fri, 20 Nov 1992 09:15:45 GMT


Is there an easy way to do word counting in a TeX buffer ... some
.el code perhaps? I'm using auc-tex.el with emacs 18.58 but I could 
not find anything in the LCD-datafile for word counting to use with
detex.el as described in the FAQ for spell checking a TeX doc....
I _could_ write some code to use with a shell command. Is that the only 
way?
______________________________________________________________________
_______________ Denise Tree
____________________________tree@midget.towson.edu
_________________________________________.... . . .   .   .    .     .
                                                                     .
                                                                     .
                                                                     *
Newsgroups: gnu.emacs.help
Subject: Mode for PICK basic wanted.
From: russell@ccu1.aukuni.ac.nz (Russell Fulton)
Date: Thu, 19 Nov 1992 08:11:03 GMT
Organization: University of Auckland, New Zealand.

We recently moved our Administration PICK system to Unidata running on a
SGI Iris. So I have been introducing the programmers to the delights and
horrors of UNIX. They have discovered Emacs and 'C mode' and are now
asking for a BASIC mode. I know it is a long shot but has any one
already written one?

I have checked in the elisp archive at Ohio State.

Thanks, Russell.

-- 
Russell Fulton, Computer Center, University of Auckland, New Zealand.
<rj_fulton@aukuni.ac.nz>
From: kgallagh@digi.lonestar.org (Kevin Gallagher)
Newsgroups: gnu.emacs.help
Subject: Re: auto loading of mode for different file extensions
Date: 21 Nov 92 19:16:44 GMT
Organization: DSC Communications Corp, Plano, TX

In article <1992Nov21.012111.29570@sarah.albany.edu> jjo619@thor.albany.edu (John O'neill) writes:
>How do you force emacs to autoload a major (or minor) mode for a given
>file extension.  My proglem is that I edit fortran files that use .F
>as the extension (then goes through a preprocessor) and I want fortran-mode.
>Thanks in advance,
>John O'Neill 

To quote from the GNU Emacs Lisp Reference Manual, Edition 1.03, Section
20.1.3 entitled "How Emacs Chooses a Major Mode Automatically", the variable
auto-mode-alist is described:

        This variable contains an association list of file name 
        patterns...and corresponding major mode functions.  Usually,
        the file name patters test for suffixes...

        Here is an example of how to prepend several pattern pairs to an
        existing auto-mode-alist.  (You might use this sort of expression in
        your '.emacs' file.)

          (setq auto-mode-alist
            (append
             '(("/\\.[^/]*$" . fundamental-mode) ; Filename starts with a dot.
               ("[^\\./]*$" . fundamental-mode)  ; Filename has no dot.
               ("\\.C$" . c++-mode ))
             auto-mode-alist))

So, this example shows that the following should do what you want:

          (setq auto-mode-alist
            (append
             '(("\\.F$" . fortran-mode)) ; Filename ends in ".F"
             auto-mode-alist))

-- 
----------------------------------------------------------------------------
Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
----------------------------------------------------------------------------
From: ssammy@cs.strath.ac.uk (Paul Sammy 4th Year iE/CES)
Newsgroups: gnu.emacs.help
Subject: Re: spell check and grammar check : emacs / LATeX
Date: 17 Nov 92 13:57:00 GMT
Organization: Information Engineering
In-reply-to: jpff@maths.bath.ac.UK's message of 16 Nov 92 15:51:12 GMT


> What you want/need is ispell which is an interactive, spelling
> checker/corrector.  It can even be modified to use areal English
> (rather than American) dictionary.

Yes, ispell is very good, but is there a grammer checker?
(which was what the poster asked for in addition to the spellchecker)

Paul

> ==John
--

|----------------------------------------------------------------------------|
| Internet: ssammy@cs.strath.ac.uk         | JANET  : ssammy@uk.ac.strath.cs  |
|----------------------------------------------------------------------------|
| This  .signature is infected. All viruses, places, events, ideas, viruses, |
| plants,  viruses,  and sexual viruses  mentioned herein  are viruses.  Any |
| resemblance  between the  virusters  and any  person or  viruses,  living, |
| dead, or  ...  8-{  ...  living  or dead is  virusly coincidental.  Virus. |
|____________________________________________________________________________|
Newsgroups: gnu.emacs.help
From: whaley@kpc.com (Kenneth Whaley)
Subject: Is there a dbx-mode for DEC's Ultrix dbx?
Keywords: dbx DECstation
Reply-To: mikew@kpc.com
Organization: Kubota Pacific Computers Inc.
Date: Mon, 16 Nov 1992 03:20:27 GMT

Unfortunately, DEC's Ultrix dbx outputs different strings  for breakpoints,
etc. than the dbx that all the "dbx.el"s I've found on the net are
written to work with.  If it were simply a matter of changing the 
regexp of breakpoints, then I could get this to work, but
unfortunately the DEC dbx does not print out the file name at every
breakpoint, only the line number (and the breakpoint number, the function
name, and the PC).

The only way I see to get this to work would be to have the dbx-mode
do a "where", find the current stack frame (the one marked with a ">"),
and then go to that file and line number.

	(dbx) where
	>  0 main() ["tt.c":5, 0x120000d30]
	(dbx)

Since I'm not an EMACS lisp guru and I'm under tight schedules, I'm hoping
that someone else out there has written a dbx.el for DEC's Ultrix dbx that 
can handle the "up", "down", "return", etc. commands, but mostly I'm just
interested in having a pointer into the source while I do "step" and
"next" commands.

Any help would be greatly appreciated!

	Ken Whaley

whaley@kpc.com


--
Kenneth Whaley
Kubota Pacific Computer, Inc.
2630 Walsh Avenue
Santa Clara, CA.  95051
Newsgroups: gnu.emacs.help
From: jpff@maths.bath.ac.UK
Subject: Re: spell check and grammar check : emacs / LATeX
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Mon, 16 Nov 1992 15:51:12 GMT

What you want/need is ispell which is an interactive, spelling
checker/corrector.  It can even be modified to use areal English
(rather than American) dictionary.
==John
Newsgroups: gnu.emacs.help
From: wmesard@cs.stanford.edu (Wayne Mesard)
Subject: Re: Locate long lines
Organization: Distributed Systems Group, Stanford University
Date: 16 Nov 92 12:53:19

k202047@galilei.DKRZ-Hamburg.DE (H.Thiemann) writes:
> How do I locate a line longer than n Characters?

Hmmm, I thought Emacs' regular expressions had a {m,n} directive like
SunOS' grep(1).  Guess not.  That would have made the following solution
a bit less ugly.  But it does what you want.

The basic idea is to build a regular expression that says "a line N
characters or more" and then use it to search.  All the other junk I
threw in there is just to make it look intimidating :-)

-=-=-=-=-=-=-=-=-=-=-=-=-

  (defun length-search-forward (len)
    "Search forward for a line of LEN characters.  LEN is prompted for unless
  a prefix argument was specified, in which case that is used.  If it is
  negative, then the line must be exactly -LEN characters long.  Otherwise,
  any line LEN or more characters matches."
    (interactive "NFind line of length: ")
    (let ((abslen (if (< len 0) (- len) len)))
      (condition-case nil
	  (progn
	    (re-search-forward 
	     (concat "^"
		     (make-string abslen ?.)
		     (if (< len 0) "$")
		     ))
	    (beginning-of-line))
	(error (error "Line of %d%s characters not found" abslen 
		      (if (< len 0) "" " or more"))
	       ))
      ))

--
Wayne();
WMesard@cs.Stanford.edu
From: klug@Software.Mitel.COM (Peter Klug)
Newsgroups: gnu.emacs.help
Subject: Re: Demacs question
Date: 19 Nov 92 14:59:20 GMT
Organization: Mitel Corporation; Kanata, Ontario, Canada
In-reply-to: bill@macro.viewlogic.com's message of 19 Nov 92 03:03:33 GMT


In article <1992Nov19.030333.16244@viewlogic.com> bill@macro.viewlogic.com (Bill Crooke) writes:

     I have just installed demacs 1.20 and when I run it  I get the following
     error message:

     CPU must be in real mode (not V*^ mode) to run this program.

     Can anyone tell me what I am doing wrong?

      Thanks, Bill C.


Hi Bill,

Were you by any chance running DEMACS from a Windows DOS shell?  I've
run into that problem myself.  It seems that you can't run DEMACS when
Windows is up and running.  In other words, I can only run DEMACS from
DOS.

Another problem I found was that there is some sort of conflict with
the expanded memory manager.  It would take DEMACS well over a minute
to come up and even then it didn't operate properly.  I poked around
in CONFIG.SYS until I found that EMM386.EXE was the culprit.  I now
have the following line in my CONFIG.SYS:

device=emm386.exe off

This seems to eliminate the problem.  DEMACS now loads in about 5
seconds (on a 386, 33MHz) and operates mostly as expected (except for
setting the mark and binding the keypad keys).  When you require
expanded memory, you can execute the following from the DOS prompt:

emm386.exe on 

There's a lot I don't understand about expanded memory, so this may
not be the optimal or even a good solution.  Could someone in the know
comment about this?  Thanks.

--
*        Peter Klug         *  Peter_Klug@Software.Mitel.COM
*     Mitel Corporation     *  
*  Kanata, Ontario, Canada  *  Nostalgia ain't what it used to be.
Newsgroups: gnu.emacs.help
From: konkar@bimini.stanford.edu (Ranjit Konkar)
Subject: cl-indent
Reply-To: Ranjit Konkar <konkar@sunrise.stanford.edu>
Organization: DSG, Stanford University
Distribution: gnu
Date: 22 Nov 92 11:25:05


I need to do the following: set the 'common-lisp-indent-hook property
of functions I define to that of predefined functions. E.g., set the
indentation of a function I wrote, defmethod, to that of defun, which
is (4 (&whole 4 &rest 1) &body). The problem I have is that emacs does
not know the indentation properties of anything until I hit the first
tab, which causes cl-indent.el to be loaded from the site emacs lisp
directory. So my (put 'defmethod 'common-lisp-indent-hook (get 'defun
'common-lisp-indent-hook)) directive in the .emacs file does nothing
but insert nil into the common-lisp-indent-hook property of defmethod,
because at load time, that's what is found in the
common-lisp-indent-hook property of defun. I have to reload .emacs
after the first tab to set the common-lisp-indent-hook property of
functions the way I want. Alternatively, I have to explicitly load the
cl-indent.elc file ahead of time myself. This brings path-specific
directives into my .emacs file, which makes it non-portable. Is there
any way of detecting when a file has been loaded and having that
trigger the invocation of some functions? 

Ranjit
Newsgroups: gnu.emacs.help
From: haydens@atc.ll.mit.edu (Hayden Schultz x3685 g42)
Subject: vm kill files?
Reply-To: haydens@juliet.ll.mit.edu
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Mon, 23 Nov 1992 14:33:44 GMT

Is there any way to create a gnus-like kill file for vm? I'd like, for
example, to automatically delete all messages with the keyword
"demacs". I know I can vm-kill-subject, but I'd like to have vm
automatically destroy messages which match a regexp each time I start
it up and each time I get new mail. Has anyone done something like
this?

I'm running vm-version "5.31 (beta)."

	Hayden Schultz (haydens@juliet.ll.mit.edu)
	MIT Lincoln Lab

Newsgroups: gnu.emacs.help
From: wmesard@cs.stanford.edu (Wayne Mesard)
Subject: Re: function to print time, hostname, name, string, etc.?
Organization: Distributed Systems Group, Stanford University
Distribution: gnu
Date: 23 Nov 92 09:52:57

shen@athena.cs.uga.edu (Mingzuo Shen) writes:

>     Many times a day I need to stamp a file I create
> using my name (a string), the current date and time
[...]
> If I had such a command
> I would bind it to a function key. Then whenever I
> needed to have my mark on a file, I would press the key once.

My DMacro package does this.  Well, actually it does a whole lot more,
but when I started writing it it was to do this.  It's available from
archive.cis.ohio-state.edu.  But I'll send you a copy.

>     Another question:
>     I tried to read the ELisp manual. How do I get Emacs to
> give me some results? For example, after I type:
> 
> (car '(1 2))
> 
> I'd like to see 1 (according to the manual) somewhere.
> Step-by-step instruction please.

Method A:
 1) Type "Esc Esc".
 2) If Emacs asks you something, type "Space".
 3) Type "(car '(1 2))<Return>"

Method B:
 1) Go to the *scratch* buffer.
 2) Type "(car '(1 2))<LineFeed>"

Both methods could have been gleaned from the User's Manual.
--
Wayne();
WMesard@cs.Stanford.edu
From: jrs@world.std.com (Rick Sladkey)
Newsgroups: gnu.emacs.help
Subject: Re: hexlify-buffer
Date: 18 Nov 92 02:22:05 GMT
Organization: The Internet

>>>>> On 13 Nov 92 12:22:00 GMT, pot@fly.cnuce.cnr.it (Francesco
>>>>> Potorti`) said:

Francesco> Again, anyone able to make it faster?

I was also experimenting with hexlify-buffer and ended up doing it
this way.  On my system it is about six times faster than the original
and about twice as fast as Francesco's version.
-----
(defvar char-to-hex-vector (make-vector 256 nil)
  "Vector of hex string equivalents of characters.")

(let ((i 0))
  (while (< i 256)
    (aset char-to-hex-vector i (format "%02x" i))
    (setq i (1+ i))))

(defvar char-to-prt-vector (make-vector 256 nil)
  "Vector of printable string equivalents of characters.")

(let ((i 0))
  (while (< i 256)
    (aset char-to-prt-vector i
	  (format "%c" (if (or (< i 32) (>= i 127)) 46 i)))
    (setq i (1+ i))))

(defun hexlify-buffer ()
  "Convert a binary buffer to hexl format"
  (interactive)
  (goto-char (point-min))
  (let ((address 0))
    (while (not (eobp))
      (let* ((i (min (- (point-max) (point)) 16))
	     (line (append (buffer-substring (point) (+ (point) i)) nil))
	     (hex nil)
	     (prt nil))
	(while line
	  (setq hex (cons (aref char-to-hex-vector (car line)) hex))
	  (setq prt (cons (aref char-to-prt-vector (car line)) prt))
	  (setq line (cdr line))
	  (if line
	      (progn
		(setq hex (cons (aref char-to-hex-vector (car line)) hex))
		(setq hex (cons " " hex))
		(setq prt (cons (aref char-to-prt-vector (car line)) prt))
		(setq line (cdr line)))))
	(delete-region (point) (+ (point) i))
	(insert (format "%08x: " address))
	(apply (function insert) (nreverse hex))
	(insert-char 32 (if (= i 16) 1
			  (+ (* (- 8 (/ i 2)) 5) 1 (* -2 (% i 2)))))
	(apply (function insert) (nreverse prt))
	(insert "\n")
	(setq address (+ address 16))))))
--
Rick Sladkey
jrs@world.std.com
Newsgroups: gnu.emacs.help
From: abraham@research.att.com (Per Abrahamsen)
Subject: Re: Outline mode with latex
Organization: AT&T Bell Laboratories, Murray Hill
Date: 23 Nov 92 22:30:17


>>>>> On 23 Nov 92 20:29:37 GMT, rkc@xn.ll.mit.edu said:

rkc> I am trying to get outline-mode to work with latex.  

May I suggest that you try the AUC TeX package, which comes with
outline support (and much more!) as distributed?  It already knows
about the LaTeX sectioning commands, and does not rely on the length
of the matched expression.

AUC TeX is available by anonymous ftp, get the file

	/pub/emacs-lisp/auctex.tar.Z

from the host

	iesd.auc.dk
Newsgroups: gnu.emacs.announce,comp.emacs
From: RICHARD@ttt.kth.se
Subject: GNU Emacs patches for VMS, version 2.1.5
Organization: Department of TeleTransmission Theory
Date: Sun, 15 Nov 1992 01:17:06 GMT

			GNU EMACS PATCHES FOR VMS
			      version 2.1.5

			   Created 15-NOV-1992

	These are a set of patches which makes VMS work a lot
	better. Among the additions and changes are:

		- DECWindows interfacing
		- Pseudo-ttys
		- Subprocesses a la UNIX
		- Networking a la UNIX
		- Better handling of VMS files and directories,
		  with completion of both file names and directories.
		- Display of 8-bit characters (I've use the works of
		  Howard Gayle.)

	To get these patches, just send a message to fileserv@ttt.kth.se
	with this line:

		SEND EMACS-1858-PATCHES

	This set of patches is around 1Mb worth.

	To be able to apply the patches in this kit, you need the UNIX
	patch for VMS. You may get it by adding the following line to
	your message:

		SEND DIFF-PATCH

	That kit is also available on most VMS archive sites.

	Also, these patches are a continuously evolving project. Bug
	fixes and further enhancement are provided as soon as possible.
	Send this line to fileserv@ttt.kth.se for more info:

		LIST EMACS-1858-UPDATES

	Some packages have also been fixed/built to work on VMS. 
	For example GNUS 3.14.1 (Which I'm using from my VMS account
	at this very moment).

	For further info, send this linen to fileserv@ttt.kth.se:

		LIST EMACS-C-*

--
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!
! Richard Levitte, System manager         ! tel: int+46-8-790 64 23           !
! Royal Institute of Technology           ! fax: int+46-8-791 76 54           !
! Department of Telecommunication Theory  ! Internet: richard@ttt.kth.se      !
! S-100 44 Stockholm, Sweden              !                                   !
!-----------------------------------------------------------------------------!


Newsgroups: gnu.emacs.sources
From: zfs60@cas.org (Zhiyong John Shen)
Subject: efficient regex search in elisp?
Organization: Chemical Abstracts Service, Columbus, Ohio
Date: Mon, 23 Nov 1992 12:40:51 GMT

it seems that re-search-forward are not very efficient when i try to
search a large database (sorted), probably it uses linear search.  are
their any elisp codes floating around that does more efficient regex
searching?  maybe using binary search or something like that?  thanks
for any info.

--john
Newsgroups: gnu.emacs.sources