HDTenEightyP/NetNews huggingface dataset:
From: kgallagh@digi.lonestar.org (Kevin Gallagher)
Newsgroups: comp.emacs
Subject: Re: Relationship between Meta and ESC
Date: 4 Oct 92 18:30:22 GMT
Organization: DSC Communications Corp, Plano, TX

In article <BvI6J1.J0p@dcs.ed.ac.uk> welsh@epcc.ed.ac.uk (E Welsh) writes:
>I have always understood holding down Meta and hitting ESC momentarily to
>be one and the same. However, this is not proving to be the case with a
>particular package (specifically x-sb-mouse). Using ESC where Meta is
>specified doesn't seem to work. 

First, I will explain how Emacs behaves when the result is the same when
pressing ESC-<something> and Meta-<something>.

Emacs handles keybindings via keymaps.  When a character is entered from the
keyboard, emacs looks up in the current active keymap to see what it is
supposed to do.  Characters in keymaps can be bound to functions or to other
keymaps (to handle multi-character key sequences).  The initial keymap is
called global-map.  In global-map, the ESC character is bound to ESC-prefix,
which points to esc-map.  So, pressing ESC causes emacs to look up ESC in
global-map.  The entry for ESC tells emacs to wait for the next character and
look it up in esc-map.  And so on...

A real META key, on the other hand, simply modifies the next ascii character
entered by setting its high bit.  When emacs sees a character with its high
bit set, it knows that its a meta character (an 8-bit character).  This means
that it cannot be found in the current active map.  So, it looks at the
variable meta-prefix-char to see where it should look.  By default, this is
set to decimal 27, the ASCII code for ESC.  So this tells emacs to find the
name of the map bound to ESC in the current active map and look up the 7-bit
character corresponding to the entered meta character (i.e., strip off the
high bit). 

Now, what happens when META-<something> and ESC-<something> behave
differently?  Mouse support is usually implemented differently.  The emacs
code has to recognize the particular hardware platform's interrupt signals
generated by the mouse (often very different from standard keyboard handling)
and must translate into something emacs lisp code can understand.  You are
using an X-Windows implementation of mouse support and it is clearly written
to treat mouse events translated into 8-bit characters as something other than
simple Meta characters.
-- 
----------------------------------------------------------------------------
Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
----------------------------------------------------------------------------
Newsgroups: comp.emacs
From: pap@tempel.az05.bull.com (Pierre Perret)
Subject: Re: MicroEmacs for Windows
Reply-To: pap@myths.az05.bull.com
Organization: Bull HN Information Systems Inc., Phoenix Product Division
Date: Mon, 05 Oct 92 17:59:35 GMT

In article <1992Oct5.073733.20096@westminster.ac.uk>, priestm@westminster.ac.uk (Mark Priestley) writes:
|> A while back there was a post about a version of MicroEmacs to run under
|> Windows, but I seem to have binned it, and could find no reference to it in the
|> "available versions of emacs" post recently.

MEWIN 1.0e should still be available via anonymous ftp from
ftp.cica.indiana.edu, in the pub/pc/win3/util directory, as file
MEW10E.ZIP.

Note that version 1.1, which will include the sources and the long
awaited help file is just around the corner (target release date is
October 12).

-- 
- Pierre Perret -    Phone: (602) 862-5448   FAX: (602) 862-6105
                  Internet: P.Perret@az05.bull.com
                Compu$erve: 73757,2337     BIX: pierre_perret
Newsgroups: comp.emacs
From: meissner@osf.org (Michael Meissner)
Subject: Re: ^M in *shell*
Organization: Open Software Foundation
Date: 2 Oct 92 12:08:25

In article <1992Sep18.233423.4936@TorreyPinesCA.ncr.com>
garye@TorreyPinesCA.ncr.com (Gary Engebretson 3793) writes:

| A FAQ in one of EMACS news groups, talks about ^M within *shell*. Basically,
| it says to use csh (or other procedures if you use tcsh). This advice has
| not been effective in eliminating ^M. Is there some other method for dealing
| with this problem??
| 
| Gary Engebretson
| NCR/Teradata
| San Diego, CA

If you have a recent version of cmushell and comint, you could do the
following.  What it does is put a process filter on the shell.  The
filter strips any ^M's, and ^G (it also beeps if it finds a ^G).

(setq comint-exec-hook 'mrm-comint-exec-hook)

(defun mrm-comint-process-filter (proc str)
  "Process filter for comint processes to strip out random carriage returns,
bells.  The beep function is called if a bell is found on output."

  (if (processp proc)
      (save-window-excursion
	(set-buffer (process-buffer proc))
	(let ((old-point (point))
	      (old-point-max (point-max))
	      (old-match-info (match-data))
	      (pos-before-insert nil))
	  (goto-char (point-max))
	  (setq pos-before-insert (point))
	  (insert str)
	  (goto-char pos-before-insert)
	  (while (search-forward "\C-m" (point-max) t)
	    (delete-char -1))
	  (goto-char pos-before-insert)
	  (while (search-forward "\C-g" (point-max) t)
	    (delete-char -1)
	    (beep t))
	  (goto-char (point-max))
	  (store-match-data old-match-info)
	  (set-marker (process-mark proc) (point-max))
	  (if (/= old-point old-point-max)
	      (goto-char old-point))))))

(defun mrm-comint-exec-hook ()
  "Meissner's hook to set the process filter for cmu shell/gdb mode"
  (set-process-filter (get-buffer-process (current-buffer)) 'mrm-comint-process-filter))

If you use shellmode and/or the older cmushell/comint that doesn't
have comint-exec-hook, you would have to do:

	esc-esc (set-process-filter (get-buffer-process (current-buffer)) 'mrm-comint-process-filter)

to enable the filter.
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Newsgroups: comp.emacs
From: bakker@cs.rulimburg.nl (Harm Bakker)
Subject: Extending Emacs
Reply-To: bakker@cs.rulimburg.nl (Harm Bakker)
Organization: University of Limburg, Maastricht
Date: Wed, 30 Sep 92 16:36:07 GMT


For a project we are building a knowledge-based editor for object-oriented
modelling, allowing a modeller to modify and extend the language used.
I'm looking at the possibility to use Gnu Emacs for this purpose.
However, I'm not an Emacs expert, nor a Lisp expert, but from what I've seen
sofar from the documentation it looks like all of emacs can be redefined
and extended.

Questions:
1. what is the best place to start in order to get acquainted
with emacs lisp, extending emacs.
2. Does anyone know of similar projects, or has documentation / papers
concerning this stuff.
3. KBEmacs: I've at least read about KBEmacs, an extension of
Emacs for knowledge based programming editing. Does anyone have KBEmacs, or
is it just an .el file.

Thanks in advance for any pointers you can give me,

Harm Bakker                                            bakker@cs.rulimburg.nl
Dept. of Computer Science, Fac. of General Sciences
State University of Limburg
P.O. Box 616
6200 MD  Maastricht
Netherlands
-- 

Harm Bakker                                            bakker@cs.rulimburg.nl
Dept. of Computer Science, Fac. of General Sciences
State University of Limburg
Newsgroups: comp.emacs,gnu.emacs.sources
From: hollen@megatek.UUCP (Dion Hollenbeck)
Subject: Re: problems compiling gnu v. 18.58
Organization: Megatek Corporation, San Diego, California
Date: Sun, 27 Sep 1992 00:06:32 GMT

>>>>> On 24 Sep 92 20:59:17 GMT, moed@sol.ral.rpi.edu (Michael Moed) said:
Mike> Nntp-Posting-Host: ral.rpi.edu

Mike> I'm having problems compiling gnu emacs v. 18.58 under X11R4 and 
Mike> Openwindows 3.0 on a SPARC.  Specifically,
Mike> when it tries to link to the x libraries, it looks for liboldX.a.  My
Mike> system doesn't have this library (which I believe is a leftover of  X10).

Mike> Is this the latest version of emacs?  How does one compile under x11?

liboldX.a is not a leftover of X10.  It is a part of X11 so that
functions in X10 which went away in X11 can be used by programs which
have not been updated.

We are developers of X windows on proprietary hardware and therefore
always have the latest version of X.  It is X11R5.  X11R5 contains
liboldX.a.  It is possible that since your version of X Windows has
been distributed as Openwindows, it was distributed without this
library.  See your X vendor, it should have been included.

18.58 is indeed the latest version of Emacs which has been releases.
We keep hearing about v19, but RMS refuses to say when it will be out.

-- 
Dion Hollenbeck       UUCP: {uunet, ucsd, sun}!megatek!hollen
                      INTERNET:            hollen@megatek.com
Megatek Corporation  9645 Scranton Rd.  San Diego, Ca.  92121
Newsgroups: comp.emacs
From: tab@piis05.joanneum.ac.at (Behnam Tabatabai (IIS))
Subject: Indentation in C-mode
Organization: Joanneum Research, Graz, Austria
X-Newsreader: Tin 1.1 PL5
Date: Thu, 1 Oct 92 12:53:06 GMT

Could someone please tell me how to achieve an identation style as in 

void foo(
  int a,
  int b,
  int c)
{
  int d, e, f;
  if ( a == b )
  {
    status = foo2(
      a, 
      b,
      c, d,
      e, 
      f );
  }
}

instead of

void foo(
	 int a,
	 int b,
	 int c)
{
  int d, e, f;
  if ( a == b )
  {
    status = foo2(
		  a, 
		  b,
		  c, d,
		  e, 
		  f );
  }
}

I use the following settings for C-mode:

(setq c-continued-statement-offset 2)
(setq c-continued-brace-offset -2)
(setq c-brace-imaginary-offset 0)
(setq c-brace-offset 0)
(setq c-indent-level 2)
(setq c-label-offset 0)

Thanks in advance!
Behnam


--
Behnam Tabatabai                  | email: tab@piis05.joanneum.ac.at (internet)
                                  |        tab@piis10.joanneum.ac.at (internet)
Institute for Information Systems |        tabatabai@joanneum.ada.at (X.400)
Joanneum Research                 | tel:   (++43/316) 8020 - 241
Graz, Austria                     | fax:   (++43/316) 8020 - 181
From: ange@hplb.hpl.hp.com (Andy Norman)
Date: Sat, 26 Sep 1992 19:10:41 GMT
Subject: Re: Editing DOS files on Unix with emacs
Organization: Hewlett-Packard Laboratories, Bristol, UK.
From: girod@tele.nokia.fi (Marc Girod)
Subject: Re: Backward-delete in overwrite mode
Reply-To: marc.girod@ntc.nokia.com
Organization: kpd
Distribution: comp
Date: Wed, 30 Sep 1992 06:46:31 GMT

>>>>> On 29 Sep 92 14:21:15 GMT, robert@cogsci.ed.ac.uk (Robert Inder) said:
>    1) It seems rather long-winded to me: can anyone suggest a more elegant
>       way I could have achieved the same effect? 

I tried what I thought was the natural way, something like:

(define-key overwrite-mode-map "\C-?" 'backward-char)

but I was surprised to get as result:

Symbol's value as variable is void: overwrite-mode-map

>    2) Would others like to see something like this feature built in 
>       to Emacs itself? Should the real "delete character" routines
>       perhaps replace each character it deletes with one specified
>       in a variable.  This would normally be "nil" for real deletion,
>       but in special modes (e.g. overwrite-mode) could be set to an
>       appropriate "background" character.

> Comments?

Well, to me, what you actually want is probably not a space, but just
a char to overwrite it... So why wouldn't the one in place suit your
need?

Thus, why not to use C-b to just backspace? It leaves you with the
ability to really delete with C-?, if you would need it (your
replacement text will not always be the same length as the replaced
one...).
--
+-----------------------------------------------------------------------------+
| Marc Girod - Nokia Telecommunications       Phone: +358-0-511 7703          |
| TL4E - P.O. Box 12                            Fax: +358-0-511 7432          |
| SF-02611 Espoo 61 - Finland              Internet: marc.girod@ntc.nokia.com |
|    X.400: C=FI, A=Elisa, P=Nokia Telecom, UNIT=TRS, SUR=Girod, GIV=Marc     |
+-----------------------------------------------------------------------------+
Newsgroups: comp.emacs,gnu.emacs.help
From: robert@cogsci.ed.ac.uk (Robert Inder)
Newsgroups: comp.emacs
Subject: Backward-delete in overwrite mode
Date: 29 Sep 92 14:21:15 GMT
Distribution: comp
Organization: Centre for Cognitive Science, University of Edinburgh


[  First, I had a bit of finger trouble part-way through writing this, so
   apologies if a partial version escaped cancellation....   ]

I have been using "overwrite-mode", so that I can "write" onto a
"pre-printed" page.  All is well, until I make a typing error.  By reflex,
I hit "delete"---which really deletes the character, shortens the line and
mucks up the rest of the page layout.

What I wanted to do was to make the delete/backspace key sensitive to
whether the buffer is in overwrite mode or not (i.e. to "overwrite-mode").
I thought this would be easy, but in fact handling the arguments for the
two commands was trickier than I though.  What I ended up with was this

    (defun delete-or-backspace (ARG)
      "Erase a character appropriately for overwrite-mode"
      (interactive "*P")
      (let ((number (if (listp ARG) (if (null ARG) 1 (car ARG)) ARG)))
	(backward-delete-char-untabify number (not (null ARG)))
	(if overwrite-mode
	    (progn
	      (insert-char 32 number)
	      (backward-char number)))))

    (define-key global-map "\C-?" 'delete-or-backspace)

I've started using this, and it seems to work: "share and enjoy", or
whatever.  But I have two questions:

   1) It seems rather long-winded to me: can anyone suggest a more elegant
      way I could have achieved the same effect? 

   2) Would others like to see something like this feature built in 
      to Emacs itself? Should the real "delete character" routines
      perhaps replace each character it deletes with one specified
      in a variable.  This would normally be "nil" for real deletion,
      but in special modes (e.g. overwrite-mode) could be set to an
      appropriate "background" character.

Comments?

Robert.
--
--------------------------------------------------------------------------
Robert Inder        HCRC, 2, Buccleuch Place, Edinburgh  EH8 9LW Scotland
From: 873clifton@gw.wmich.edu
Newsgroups: comp.emacs
Subject: 2 more questions for Emacs under a SPARC
Date: 2 Oct 92 13:31:09 EST
Organization: Western Michigan University

Many thanks to all who sent me Email samples for mapping L, R & F function
keys for GNU Emacs running on a Sun SPARCstation under X-windows.

Now just two more questions ;-):

	* I would like to map Backspace to backward-delete-character
	  (rather than backward-delete-character-untabify) and Delete
	  to delete-character. Is this possible? I know about the xmodmap
	  technique, but was wondering about a strictly elisp solution
	  (that preserves my \C-h as *Help*).

	* Is it possible to replace Esc with Alt as the Meta key?

I am running GNU Emacs version 18.57.1, X-windows aware (not Epoch) under TWM.

Thanks again,

/Doug
--
Douglas Clifton [99clifto@lab.cc.wmich.edu]
Newsgroups: comp.emacs
From: davie@netcom.com (David M. Ungaro)
Subject: Keyboard Bindings
Organization: Netcom - Online Communication Services (408 241-9760 guest)
Distribution: comp.emacs
Date: Thu, 1 Oct 1992 16:48:18 GMT

I sometimes use an emulator for the Macintosh that will not send the ^C
binding, and was wondering if there is a way to change JUST the bindings
under EMACS that use ^C???


-- 
-------------------------------------------------------------------------------
| David M. Ungaro                                   | 1. Bones Heal           |
| Syntex Labs. - Temporary                          | 2. Chicks Dig Scars     |
| Palo Alto, CA 95030                               | 3. Pain is Temporary    |
|                                                   | 4. Glory is Forever     |
| Rensselaer Polytechnic Institute - More permanent |-------------------------|
| Computer Science Major						      |
| Philosophy Minor							      |
| Troy, NY 12180							      |
|									      |
| Alpha Sigma Phi Fraternity						      |
-------------------------------------------------------------------------------
Newsgroups: comp.emacs
From: alex@igor.tamri.com (Alex Olender)
Subject: Where can I get a good emacs for the PC
Organization: TOSHIBA America MRI, South San Francisco, CA
Date: Wed, 30 Sep 92 19:44:21 GMT

I need a emacs to run on a late model PC.  It is not for me, I don't know much
about emacs, but my friend is using Micro Emacs 3.9 and she has a problem
with running out of memory (I think it is limited to 64K or 640K or something).
Out computer has lots' o memory, 2MB I think.  I would preferably like
something free off the net.  Any suggestions?

Thanks in advance!

-- 
--------------------------------------------------------------------------------
Alex Olender			"Life is what happens while you're making other
Software Engineer		 plans" - J. Lennon
Toshiba America MRI, Inc.	 
Newsgroups: comp.emacs,gnu.emacs.sources
From: steve@jack.sns.com (J. Steven Harrison)
Subject: Re: problems compiling gnu v. 18.58
Organization: Systems'n'Software
Date: Sat, 26 Sep 92 17:29:56 GMT

In article <afdz_8=@rpi.edu> moed@sol.ral.rpi.edu (Michael Moed) writes:
>I'm having problems compiling gnu emacs v. 18.58 under X11R4 and 
>Openwindows 3.0 on a SPARC.  Specifically,
>when it tries to link to the x libraries, it looks for liboldX.a.  My
>system doesn't have this library (which I believe is a leftover of  X10).
>
>Is this the latest version of emacs?  How does one compile under x11?
>
>Thanks in advance for the info.
>
>- Mike
>
>-- 
>Michael C. Moed					  moed@ral.rpi.edu
>United Parcel Service, Research and Development  
>51-53 Kenosia Avenue                              (203) 731-6303
>Danbury, CT  06810

I believe you will have to generate the oldX lib to get this to work if you
do not have it. It should be there and useable in OW3 but the library versions
may not be compatibe with your X11R4 (thus the reason for generating it from the
X11R4 sources)

After we did this we had no problem generating 18.58. Problem is I can't see that it
really does much. Maybe I missed something!


-- 
J. Steven Harrison, PhD.	steve@jack.sns.com
45034 Imnaha Court		Voice:	(510)623-8651
Fremont, CA   94539-6669	Data:	(510)623-8652
Systems'n'Software            	FAX:	(510)623-8656 
Xref: sparky comp.emacs:3211 gnu.emacs.sources:699
From: hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy))
Subject: Re: problems compiling gnu v. 18.58
In-reply-to: hollen@megatek.UUCP's message of Sun, 27 Sep 1992 00:06:32 GMT
Newsgroups: comp.emacs,gnu.emacs.sources
Organization: Department of Physics, UC Irvine, CA 92717-4575, USA
Date: 27 Sep 92 04:16:15 GMT

In article <HOLLEN.92Sep26160632@peg.megatek.UUCP> hollen@megatek.UUCP (Dion Hollenbeck) writes:


   18.58 is indeed the latest version of Emacs which has been releases.
   We keep hearing about v19, but RMS refuses to say when it will be out.

I saw emacs 19 at MIT 10 days ago. Stallman said it is almost there;
the new version of the emacs-manual has an Appendix on 19 features
(ange-ftp, tree-dired, calendar, and calc are all part of it, as well
as separate frames for buffers, if you want them).  And there is Lucid
emacs = lemacs 19 around. 
--
Hardy 
-----
Meinhard E. Mayer,  Department of Physics, UC Irvine 
e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET

Newsgroups: comp.emacs,comp.editors,comp.lang.prolog
From: pollard@cucbs.chem.columbia.edu (Tom Pollard)
Subject: Re: Customizing Emacs to look like VI (yes!)
Keywords: Emacs, Quintus Prolog, Vi, MockLisp, key bindings
Organization: Center for Biomolecular Simulation
Date: Fri, 2 Oct 1992 14:54:09 GMT

In article <1992Oct2.014707.26683@ucsu.Colorado.EDU> frechett@spot.Colorado.EDU (-=Runaway Daemon=-) writes:
>>From: ederveen@athena.research.ptt.nl (Ederveen D.)
>> Subject: Customizing Emacs to look like VI (yes!)
>>
>> Yes, really, I'm looking for a key bindings or MockLisp-functions
>> that make Emacs look or feel like vi. I'm using Quintus Prolog on
>> VAX/VMS...
>
>Sorry I didn't catch the original post, but why don't you just 
>compile elvis and be done with it?  It's a good vi clone (IMO) and
>it's got an advantage of many of the other clones in that it's 
>brain dead simple to compile on a VMS machine.  I've got a whole
>horde of people using it now, because they either don't like
>emacs at all or they like gnuemacs and all we have is unipress.
>
>Elvis can be found everywhere.. ;)
>
>	ian

Gnu Emacs actually has a VI-emulation mode called "vip-mode".  As far as
I've used it, it's pretty good.  I had been resisting giving up VI to 
learn emacs for a long time until I discovered this package.  It has made
it painless (relatively) to finally start learning emacs without feeling
hog-tied everytime I can't figure out how to do something that was easy in
VI (no flames please - so far it seems it's usually also easy to do those 
things in emacs, but it takes some learning to see it...)

I believe the VIP package is part of the regular Gnu Emacs release.

Just my 2p worth...

Tom

-- 
-------------------------------------------------------------------------------
Tom Pollard				Department of Chemistry
pollard@cucbs.chem.columbia.edu		Columbia University
-------------------------------------------------------------------------------
From: 873clifton@gw.wmich.edu
Newsgroups: comp.emacs
Subject: Sample Sun keymapping?
Date: 1 Oct 92 20:47:30 EST
Organization: Western Michigan University

Could some kind soul Email me or post some sample elisp code to map Sun
Sparc keypad (Home, PgUp, etc.) keys to some function. Running GNU Emacs
on the SparcStation already recognizes the arrow keys but I can't figure
out how to use the others.

Thanks,

/Doug
--
Douglas Clifton [99clifto@lab.cc.wmich.edu]
Newsgroups: comp.emacs
From: dbarker@spang.Camosun.BC.CA (Deryk Barker)
Subject: Micro Emacs on VMS
Organization: Camosun College, Victoria B.C, Canada
Date: Sat, 3 Oct 1992 18:30:16 GMT


A while back I asked a question about rebinding ^S and ^Q in
microemacs. My thanks to those who mailed me with useful information.
Now I need to ask the following: Has anyone used this reguarly on VMS
on a VAX, because I can't get it to read my startup file, and our site
appears not to have any documentation, online or otherwise.

Thanks,

Deryk Barker, Computer Science Dept., Camosun College, Victoria B.C.

Newsgroups: comp.emacs
From: elliottm@beach.csulb.edu (Mike Elliott)
Subject: VT220 terminals (no escape key)
Organization: Cal State Long Beach
Date: Thu, 1 Oct 1992 07:51:38 GMT

I've recently had to begin using Emacs on a VAX using a VT220 terminal.  For
those who are unaware, this is one of those funny DEC terminals with no escape
key.  Since these terminals have been around for millennia, folks who are VMS
Emacs users must have a good workaround for this problem -- something superior
to the two key combination of ^[.  Any suggestions?
-- 


                                           Mike Elliott
                                           elliottm@beach.csulb.edu
Newsgroups: comp.emacs,comp.editors,comp.lang.prolog