🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Fix for 5.33 vm-edit bug under v19

#8666
From: Jason Merrill
Date: Tue, 03 Aug 1993 20:37
30 lines
1965 bytes
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.

*** vm-edit.el~	Sat Apr  6 17:32:49 1991
--- vm-edit.el	Tue Aug  3 13:29:30 1993
***************
*** 67,75 ****
  	    (funcall (or vm-edit-message-mode 'text-mode))
  	    (setq vm-message-pointer mp
  		  vm-mail-buffer folder-buffer)
! 	    (use-local-map (copy-keymap (or (current-local-map)
! 					    (make-sparse-keymap))))
! 	    (vm-overlay-keymap vm-edit-message-mode-map (current-local-map))
  	    (message "Type C-c ESC to end edit, C-c C-] to abort with no change."))
  	(switch-to-buffer edit-buf)))))
  
--- 67,76 ----
  	    (funcall (or vm-edit-message-mode 'text-mode))
  	    (setq vm-message-pointer mp
  		  vm-mail-buffer folder-buffer)
! 	    (use-local-map (append vm-edit-message-mode-map
! 				       (copy-keymap (or (current-local-map)
! 					    (make-sparse-keymap)))))
! ;	    (vm-overlay-keymap vm-edit-message-mode-map (current-local-map))
  	    (message "Type C-c ESC to end edit, C-c C-] to abort with no change."))
  	(switch-to-buffer edit-buf)))))
  
Technical Details
Message-ID: <JASON.93Aug3133725@cygnus.cygnus.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!uunet!majipoor.cygnus.com!news!jason

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,b8d39b7cd50c2074,start
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1993-08-03 14:27:35 PST
Newsgroups: gnu.emacs.vm.bug
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!uunet!majipoor.cygnus.com!news!jason
From: jason@cygnus.com (Jason Merrill)
Subject: Fix for 5.33 vm-edit bug under v19
Message-ID: <JASON.93Aug3133725@cygnus.cygnus.com>
Sender: news@cygnus.com
Nntp-Posting-Host: cygnus.com
Organization: Cygnus Support, Mountain View, CA
Date: Tue, 3 Aug 1993 20:37:25 GMT
Lines: 30