🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #8667

Re: Fix for 5.33 vm-edit bug under v19

#8667
From: Marc Goldburg
Date: Wed, 04 Aug 1993 17:33
23 lines
1666 bytes
In article <JASON.93Aug3133725@cygnus.cygnus.com> jason@cygnus.com (Jason Merrill) writes:
 > 
 > The only problem I've had with the Emacs 19-patched version of 5.33 has
 > been that vm-edit breaks when trying to construct the keymap.  Since v19
 > has a convenient keymap inheritance scheme, I've patched vm-edit.el to use
 > that instead of vm-overlay-keymap.  Note that this code will need to be
 > massaged in order to work with v18 as well.
 > 
 >   (patch deleted)
 >

For those who can't modify the vm lisp (e.g. unprivileged users), the
following is equivalent and works with emacs versions 18 and 19.

(setq vm-mode-hooks 
      '(lambda () 
        (if (equal (substring emacs-version 0 2) "19")
         (defun vm-overlay-keymap (src-map dest-map) 
           (use-local-map (append src-map dest-map))))))


Marc Goldburg
marcg@arraycomm.com
Technical Details
Message-ID: <MARCG.93Aug4103338@array.arraycomm.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!europa.eng.gtefsd.com!darwin.sura.net!news-feed-2.peachnet.edu!umn.edu!csus.edu!netcom.com!netcomsv!array!marcg
References: <JASON.93Aug3133725@cygnus.cygnus.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,b8d39b7cd50c2074
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1993-08-04 12:07:31 PST
Newsgroups: gnu.emacs.vm.bug
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!europa.eng.gtefsd.com!darwin.sura.net!news-feed-2.peachnet.edu!umn.edu!csus.edu!netcom.com!netcomsv!array!marcg
From: marcg@array.arraycomm.com (Marc Goldburg)
Subject: Re: Fix for 5.33 vm-edit bug under v19
In-Reply-To: jason@cygnus.com's message of Tue, 3 Aug 1993 20:37:25 GMT
Message-ID: <MARCG.93Aug4103338@array.arraycomm.com>
Sender: marcg@arraycomm.com (Marc Goldburg)
Organization: ArrayComm, Inc.
References: <JASON.93Aug3133725@cygnus.cygnus.com>
Date: Wed, 4 Aug 1993 17:33:38 GMT
Lines: 23