HDTenEightyP/NetNews huggingface dataset:
From: eneafsey@lucpul.it.luc.edu (E. J. Neafsey)
Subject: demacs and file locking
Summary: demacs and file locking and the SET TZ=CST command
Keywords: demacs, file locking, TZ
Organization: Loyola University Chicago
Date: Tue, 22 Dec 1992 13:54:42 GMT

I recently posted a question about file locking and received a reply
from Walter Hunt.  I tried to reply by email but have been unsuccessful.
The message is of general interest, so I am posting it.

Neafsey's question:
> |> 
> |> One other thing: any solutions to demacs's problems with file locking
> |> when you SET TZ=CST-9???
> |> 
> 

Hunt's inquiry:
> 	Could you fill me in on what this file-locking problem is? I am having
> some truly annoying problems with file locking.
> 
> 	Thanks.
> 

Neafsey's reply:

According to the original (Japanese authors) installation instructions
for demacs, you are supposed to SET TZ=XST-9, where XST is your time
zone (CST for me).  This statement can be put in an emacs.bat file
that runs everytime you start demacs or in your config.sys file.

   When you do this, demacs keeps the right time, as you can
demonstrate if you type (current-time-string) in a buffer, put point
immediately after it, and then type C-x C-e.  Unfortunately, although
the time is right, when you try to save files, demacs starts telling
you it can't because of "userlock" or something like that.  You can
work around this by deleting the actual file using dired and then save
the buffer again.  However, this gets annoying.

   You can "solve" the problem by changing SET TZ=XST-9 to SET TZ=XST,
as mentioned in the demacs FAQ file and in the American installation
instructions.  Now demacs has no trouble saving files because of
userlock.  However, the time is now wrong, as you will see by doing
the (current-time-string) thing again.  It actually turns out to be
Japanese time (if it's really 6:00 AM your time, demacs says it's 8:00
PM).  When demacs reaches midnight, the day changes to tomorrow.  For
most people this is OK, a small but annoying quirk.  However, it sure
would be nice to have it keep correct time and date, so that files are
labeled with the right timestamp and calendar programs would work
right.

   That's it, as far as I understand it.  I'd like to fix it, but I
can live with it.

   Hope this helps you.  Let me know if you figure it out.

E.J. Neafsey




Newsgroups: comp.emacs,comp.sys.mac.programmer
From: brucet@extro.ucc.su.OZ.AU (Bruce Tulloch)
Subject: Anyone have MicroEmacs 3.Xx source for Macintosh ?
Keywords: source emacs macintosh
Organization: Sydney University Computing Service, Sydney, NSW, Australia
Date: Thu, 24 Dec 1992 04:56:32 GMT


Does anyone have MicroEmacs 3.1Xx sources for the Macintosh, or know 
where I might obtain them ? How about C sources for ANSI terminal 
emulation under Think C which are a little more flexible than Think's 
console library ?

My intention is to embed emacs into some other application specific sofware 
I am writing and I happen to have a Mac to do it on - ie, I want to avoid 
spending too much time becoming intimately familar with Macintosh 
programming if possible (it's not my native tongue) since what I am writing 
is to be portable to other systems (including those without GUIs) which I 
will be using later. 

I have a copy of Earle R. Horton's port of MicroEmacs 3.10a for the 
Macintosh done at the end of 1989 (which did not include source) so I know 
it's been done at least once before. I also have the official MicroEmacs 
3.11 sources obtained from the C User's Group but code supporting the Mac 
is not included in the release. I live a long way from the US but will 
(snail) mail Dan Lawrence this question. However, I was kinda hoping 
someone else on the rather more expedient USENET might have an answer. 

Many thanks if you do,

Bruce Tulloch
-- 
          bruce tulloch sydney australia - brucet@extro.ucc.su.oz.au
***complex problems have straight forward, easy to understand wrong answers***
From: M16302@mwvm.mitre.org
Newsgroups: comp.emacs
Subject: Problems with EMACS on a SUN using a MAC from Telnet
Date: 24 Dec 92 15:15:31 GMT
Organization: The MITRE Corporation, McLean VA 22102

When I key CtrlS to save the file, I lock up the editor.  Does anybody know
any fixes for this?
ROBERT B. SHAIN                              EMAIL: RSHAIN @MITRE.ORG
THE MITRE CORPORATION                        VOICE: (703)883-5592
CENTER FOR INTELLIGENCE & SPECIAL PROGRAMS   FAX: (703)883-6991
MAILSTOP W955
7525 COLSHIRE DRIVE                    "MY OTHER COMPUTER IS A CRAY"
MCLEAN, VA. 22102                      "MY OTHER CAR IS A BIKE"
From: goodhear@husc8.harvard.edu (Eric Goodheart)
Newsgroups: comp.emacs
Subject: Demacs
Keywords: Reliability
Date: 22 Dec 92 14:54:16 GMT

In response to a previous posting, I can safely say that
demacs does work.  Occasionally it hangs when one returns
from a dos shell (when it cannot find command.com).  Despite
all the fixes that have been posted and which I have applied,
I haven't found any way around that appart from returning
immediately to dos and doing something like listing the
contents of a directory and then returning to demacs...  This
kind of a problem I can live with for now.

As I have indicated in other postings, some of the lisp files
preloaded in demacs have bugs which can be fixed by loading clean
lisp files.

There is no question that demacs is not yet as reliable as other
versions of emacs.  But within its unreliablity it is powerful 
enough and predictable enough to be quite a useful tool, its
shortcomings notwithstanding.  If anybody knows about something
better or more versatile, I would be glad to hear it.

Eric Goodheart
Newsgroups: comp.emacs,gnu.emacs.help
From: kgallagh@digi.lonestar.org (Kevin Gallagher)
Newsgroups: comp.emacs
Subject: Re: Environment variable expansion bug in file name completion
Date: 22 Dec 92 22:21:34 GMT
Organization: DSC Communications Corp, Plano, TX

In article <cdCB02Hq2fmj01@JUTS.ccc.amdahl.com> tlp00@ras.amdahl.com writes:
>if i do a C-x C-f (M-x find-file) and type: 
>
>  Find file: $SRC<space>
>
>i would expect to see (assuming "setenv SRC /usr/project/src"):
>
>  Find file: /usr/project/src/
>
>but instead i get:
>
>  Find file: /
>
>BUT if i do:
>  
>   Find file: $SRC/foo.c
>
>All works fine, i edit file /usr/project/src/foo.c
>
>So, substitute-in-file-name works ok but somewhere something is getting clipped.
>Any ideas....   i'm seeing this with 18.55.

Try the following:

        Find File: $SRC<tab><space>

In the minibuffer, TAB is bound to minibuffer-complete and SPACE is bound to
minibuffer-complete-word.  These are both native functions defined in the C
source code to GNU Emacs.  It appears that minibuffer-complete-word is broken
while minibuffer-complete is not.  I don't think substitute-in-file-name is
involved here.

-- 
----------------------------------------------------------------------------
Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
----------------------------------------------------------------------------
From: dbarker@spang.Camosun.BC.CA (Deryk Barker)
Newsgroups: comp.emacs
Subject: Re: Problems with EMACS on a SUN using a MAC from Telnet
Date: 30 Dec 92 22:26:33 GMT
Organization: Camosun College, Victoria B.C, Canada
X-Newsreader: Tin 1.1 PL4

M16302@mwvm.mitre.org writes:
: When I key CtrlS to save the file, I lock up the editor.  Does anybody know
: any fixes for this?

I presume you're referring to ^X^S? ANyway, as has been pointed out,
it is almost certainly because ^S is the XOFF character which will
hold up all terminal (workstaition) i/o when you have software flow
control enabled. You may be able to get around this using stty
parameters (can't remember which one, -xon?), but if you are coming
through a net connection you may not. In which case you should use the
evade-flow-control function which remaps all ^S to ^\ and ^Q (XON,
i.e. the reverse of ^S) to ^^. It's given in the GNU Emacs LISP manual
I think, but as I can never remember exactly where, I append the
source below. Run this from your .emacs file.

(defun evade-flow-control ()
  "Replace C-s with C-\ and C-q with C-^."
  (interactive)
  (let ((the-table (make-string 128 0)))
    (let ((i 0))
      (while (< i 128)
	(aset the-table i i)
	(setq i (1+ i))))
    
    ;; Swap `C-s' and `C-\'.
    (aset the-table ?\034 ?\^s)
    (aset the-table ?\^s ?\034)
    ;; Swap `C-q' and `C-^'.
    (aset the-table ?\036 ?\^q)
    (aset the-table ?\^q ?\036)
    
    (setq keyboard-translate-table the-table)))


--
Real:  Deryk Barker, Computer Science Dept., Camosun College, Victoria B.C.
Email: (dbarker@spang.camosun.bc.ca)
Phone: +1 604 370 4452
Newsgroups: comp.emacs
From: steibel@venus.cs.umbc.edu (David M. Steibel)
Subject: The demacs FAQ
Organization: University of Maryland Baltimore Campus
Date: Thu, 24 Dec 1992 09:19:48 GMT

Hello,

This is just a short progress report on the Demacs FAQ, since alot of
people haven't seen it ever, and the rest of you haven't seen it for
awhile.

About 2 months or so ago (or longer), I made extensive changes to the
Demacs FAQ.  I had this broad scheme as to what it was going to
finally look like in its overhauled state, and was no more than
a day or two from completing and posting it.

A few things happened in that time.  One, I was corresponding with a
number of people and accidently erased a directory full of
correspondance.  This was somewhat of a major setback, as you can
imagine.

Next, my coursework increased, and I no longer had the time to finish
the FAQ, which I then had estimated to be only 2-3 days.  After a
couple weeks of heavy coursework, it became apparent that I wasn't
going to have time to finish the new FAQ for another couple of weeks,
so I posted a slightly modified version of the previous release.

In fact, I'd repost that again now, but I accidently erased my
outgoing mail directory (where the modified FAQ was) when I rewrote my
mail system to keep me from accidently erasing important mail anymore.
Plus, thinking I would never erase my outgoing mail system, I hadn't
made any backups.

Anyway, my last class of the semester ended yesterday.  I also managed
to print out most of my collected Demacs material before the computer
building shut down today.  I will be looking over it this week, and
probably trying to resume old correspondances, and start new ones by
the end of the week when I get back from a short computer-less
christmas holiday at my parents house.

If you've sent me mail, and I haven't replyed to it by January 4th,
send me mail again because I probably lost it.

Also, I will not be reposting the FAQ until I've finished revising it,
although I am looking for people willing to beta-test changes to the
installation program, and possibly proofread or make suggestions about
the FAQ itself.  This will speed up the process dramatically.

Lastly, the people in Japan who did the Demacs port will be releasing
a new version in the upcoming months.  It will, however, be written in
Japanese, and I don't know how long it will take to translate it into
an English version.

Thanks, and have a happy holiday season,
--
David M. Steibel;  Author of the Demacs FAQ;  Internet: steibel@cs.umbc.edu

The greatness of a nation and its moral progress can be measured by the way 
in which its animals are treated. - Mahatma Gandhi.


Newsgroups: comp.emacs
From: stevef@bony1.bony.com (Steve Faiwiszewski)
Subject: Re: Does DEMACS work reliably for anyone?
Keywords: demacs, brief, unix, msdos, editors
Organization: Lost in NYC
Date: Thu, 24 Dec 92 16:28:35 GMT

In article <1992Dec20.173946.20445@super.org> pcolsen@super.org (Peter C Olsen) writes:
>
>...  Emacs is my favorite editor (by far) in the unix
>environment, and I had hoped to use it extensively in DOS, but, so
>far, I am still relying on BRIEF simply because I can't depend on
>DEMACS.
>
>Peter

If you're an Emacs junky and need something for DOS, then you should
use Epsilon instead of Brief.  While not exactly GnuEmacs, Epsilon is
real close; close enough that you won't really notice during normal
use.  It has the usual slew of features, plus some nice additions:

Session checkpointing
bookmarks
dos shell in a buffer
compile support
grep facility
handles files larger than available memory
xms/ems support
C-like extension language (no lisp :-( )
etc.
reasonable price
good tech support

Note: I have no connection with Lugaru Software, other than being a
satisfied customer.


	- Steve -
-- 
Internet: stevef@bony1.bony.com   | / If you could turn on the lights \
bang : {uupsi,uunet}!bony1!stevef ||| quickly enough, you could see   ||
                                  ||| what the dark looks like...     ||
  Opinions? What opinions?        | \_________________________________/
From: choy@skorpio.usask.ca (I am a terminator.)
Newsgroups: comp.emacs
Subject: Running shell commands in a file
Date: 31 Dec 1992 22:45:11 GMT
Organization: University of Saskatchewan, Saskatoon, Canada
Distribution: world
NNTP-Posting-Host: skorpio.usask.ca

When a shell is run in emacs, commands in a file can be executed by
inserting (insert-file) the file at the cursor.

-- 

Henry Choy
choy@cs.usask.ca

  What rolls down stairs alone or in pairs
  Rolls over your neighbor's dog?
  What's great for a snack and fits on your back?
  It's Log, Log, Log!      -- "The Log Song", from Ren & Stimpy

  Math is tough!           -- Barbie
Xref: sparky comp.emacs:3881 gnu.emacs.help:5196
From: hendrik@zeusa.UUCP (Hendrik Vermooten)
Newsgroups: comp.emacs,gnu.emacs.help
Subject: Re: Numbered Backups (version control)
Keywords: version-control backup help
Date: 29 Dec 92 05:34:19 GMT
Followup-To: comp.emacs
Organization: ZEUS software

In article <1992Dec25.103518.16118@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani) writes:
> I changed just one character, and saved,
> did that 13 (lucky number) times.  What i got was just the
> original saved file, and the newest file.  (file.c and
> file.c.~1~).

This is actually a feature ... emacs only makes a backup file once every
time you visit the file. So if you want to make multiple backups, you
have to either go out and back in before it'll create another backup file,
or you have to delete the buffer and load it again. Next time you save, it
will create another backup file.

The reason for this is that you don't get too many backup files, which
I've found very useful.

If you specifically want to create a backup file each time, there is always
'write-file-hooks' where I suppose you could modify save-buffer in files.el.

-------------- Hendrik Vermooten - hendrik@zeusa.co.za -------------------
 ___________  _________  ___     ___     ______       ZEUS software
 \______   /  \   _____\ \  \    \  \   (   ___)      PO Box 52051
       /  /    \  \____   \  \    \  \   \  \____     WIERDA PARK 0149
      /  /      \   ___\   \  \    \  \   \____  \    South Africa
     /  /_____   \  \______ \  \____\  \    ___)  )   Tel +2712 660-2408
    /_________\   \________\ \_________/   (_____/    FAX +2712 660-2409
From: ricky@FibHaifa.com (Ricardo <Ricky> Marek)
Newsgroups: comp.emacs
Subject: lemacs question..
Date: 22 Dec 92 13:27:21 GMT
Reply-To: ricky@FibHaifa.com
Organization: Fibronics ltd., Haifa - ISRAEL
Originator: ricky@matisse


We heard about a version of emacs called emacs-19.2 or lemacs.

1) What is different in relation emacs 18.57 (from 18 to 19)?
2) As far I know, this is a `beta' version; is it a stable version?
   which bugs were reported?

Thanks..

--- Ricky
______             _                 __    __
| __  \           | |   _           /  \  /  \   
| |_| |     ____  | | / /          /    \/    \  
|  ___/ _  | ___| | |/ / _   _    /  /\    /\  \ 
| |\ \ | | | |__  | |\ \ \ \/ /  / Ricky Marek (System Manager)
|_| \_\|_| |____| |_| \_\ \  /  / e-mail: ricky@FibHaifa.com
__________________________/ /  / phones: +972-4-313690
|__________________________/  / fax: +972-4-550668 \
Fibronics Ltd., Matam Industrial Park, Haifa 31905, ISRAEL
                            /__/                  \__\

-- 
Newsgroups: comp.emacs
From: pschwrtz@lynx.cs.washington.edu (Paul Schwartz)
Subject: Re: Does DEMACS work reliably for anyone?
Organization: Computer Science & Engineering Dept., Univ. of Washington, Seattle
X-Newsreader: TIN [version 1.1 PL8]
Date: Mon, 28 Dec 92 10:02:16 GMT

Peter C Olsen (pcolsen@super.org) wrote:

: Does DEMACS work --- reliably?  I would appreciate email from anyone
: who has experience, either way. I have been trying to use DEMACS, but
: I have been unable to get it to work reliably.  It seems to be very
: sensitive to other software, either refusing to run or running
: "poorly" --- e.g. ignoring characters or doubling them.  Then, when it
: appears to be running well, it often hangs at odd times, losing my
: recent work.  Emacs is my favorite editor (by far) in the unix
: environment, and I had hoped to use it extensively in DOS, but, so
: far, I am still relying on BRIEF simply because I can't depend on
: DEMACS.

: Peter
  	Almost cosmic.  I came to this group to get help with DEMACS.  I tried running it this morning and it write-protected my hard drive.  I didn't even
know that was possible.  Anyway if anybody has any encouraging words.  I 
installed it per instructions with the modifications to the _emacs file and 
the *SET* terms in the autoexec file and included it in the *PATH*.  At first
all it returned was *use demacs [program[options]]* which to me says that
it should load and start with the *scratch* buffer.  I tried other ANCII
files and it said it didn't recognize the file type.  In a final attempt to
stop the pain I shoot myself in the foot and ran it giving the demacs. file
in the bin subdirectory as an argument.  It claimed to have loaded it and that
was the last I saw of my hard drive for the rest of the day.  Any sugestions
other than looking for a job in a field where I'm not as apt to do as much 
damage.  If it matters I am running it on a stacked disk.
	By the way I've also tried Fremacs which seems better behaved but is
missing so much of the power of emacs that it's hardly worth it.  I may just 
go back to Bingo-Ed but I dislike switching editors between machines.

-
>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<
Paul Schwartz       pschwrtz@lynx.cs.washington.edu


Xref: sparky comp.emacs:3876 gnu.emacs.help:5190 gnu.epoch.misc:1223
From: ratinox@meceng.coe.northeastern.edu (Rent-a-Lemming)
Newsgroups: comp.emacs,gnu.emacs.help,gnu.epoch.misc
Subject: Re: strange replace-regexp behavior
Date: 28 Dec 92 17:32:07 GMT
	<RATINOX.92Dec28122732@splinter.coe.northeastern.edu>
Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]
X-Signature-Virus-Protection: Version 1.51
X-Get-A-Clue: Have two, they're small.

>>>>> On Mon, 28 Dec 1992 17:28:34 GMT, Lemming Productions Present...
>>>>> <ratinox@meceng.coe.northeastern.edu> said:

Ratinox> You may want to use querey-replace-regexp instead. Or do two
Ratinox> replace-regexp commands, the first change "^>" into something
Ratinox> else, like "><", then do a second replace-regexp on the new
Ratinox> string.

I just realized a simpler way to do this. Define a keyboard macro that does
a "(re-search-forward "^>") C-d C-n". Then use a big prefix count before
C-x C-e to execute it.

--Rat                               PGP Public Key Block available upon request
||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
Northeastern's Stainless Steel Rat          ratinox@meceng.coe.northeastern.edu
Carpe Joltem! (Seize the Caffeine)                                         --Me
Xref: sparky comp.emacs:3889 gnu.emacs.help:5213 comp.editors:3135
Newsgroups: comp.emacs,gnu.emacs.help,comp.editors
Subject: Re: Does DEMACS work reliably for anyone?
From: ab2r@quads.uchicago.edu (Marshall Abrams)
Date: Thu, 31 Dec 1992 17:40:01 GMT
Reply-To: ab2r@midway.uchicago.edu
Organization: University of Chicago

In article <kfBUGNy00WB3MB7GYk@andrew.cmu.edu> strong+@CMU.EDU (Thomas W. Strong, Jr.) writes:
>I've been using it [Demacs] for a couple weeks now, and I haven't had too many
>problems with it.  I have learned not to try o shell to DOS then print a
>file...  it will hang when I try to exit the shell.

I've never used Demacs, but I suspect that this is a problem that
I've dealt with in other contexts.  The first time you use the
DOS PRINT command, it loads a TSR program or a driver or
something into memory.  Generally, when you shell out of a
program like an editor, you set up a secondary environment on top
of the program you're shelling out of.  When you run PRINT in
this environment, you load the PRINT TSR on top of the program
you shelled out of.  Then when you try to go back to your
original program, it can't reclaim the memory above it, because
the PRINT TSR is stuck there.  (In DOS 5.0, the MEM/C command
will show you where things are loaded in memory.)

What I do is load PRINT in my AUTOEXEC.BAT before I go into
my editor.  That way it's already loaded when I shell out of the
editor.  Since it's already loaded, running PRINT again doesn't
load another copy of PRINT up above the editor.  Then I can print
my document and exit back to the editor.

If you want to load PRINT into memory without actually printing a
document, use the /d:<device> switch--e.g.'s:

	PRINT /D:PRN:

or

	PRINT /D:LPT2:

(The first example is perfect for most systems.)

(If you don't like PRINT taking up memory, note that there are
switches that will make it smaller, or you can load it into upper
memory or something like that if your system supports it.)



Marshall Abrams
Xref: sparky comp.emacs:3885 gnu.emacs.help:5204 gnu.epoch.misc:1226
From: map@BBN.Com (Mike Patton)
Newsgroups: comp.emacs,gnu.emacs.help,gnu.epoch.misc
Subject: Re: strange replace-regexp behavior
Date: 30 Dec 92 14:45:38
Organization: Bolt Beranek and Newman, Cambridge, MA 02138 USA
Reply-To: Incoming Replies <MAP=Reply@BBN.Com>
NNTP-Posting-Host: songlines.bbn.com
In-reply-to: pat@gsfc.nasa.gov's message of Mon, 28 Dec 1992 13:39:23 GMT

I've seen a couple of good descriptions of what went wrong and some
interesting descriptions of how to fix this, but nobody has yet
suggested the one that immediately came to me.  Don't use
replace-regexp at all...  Here's what I'd use to delete the first and
only the first ">" from a set of lines

	(replace-string "\n>" "\n")

I just tried it on your sample text:

In article 999, joe@blow said:
>blah blah blah
> blah blah blah