[gnu.emacs.bug] small problem with vip-mode and picture-mode

yach%cpocel@sc.intel.com (10/29/88)

using Emacs 18.49

There seems to be a problem when switching in and out of picture mode
while vip-mode is loaded.  Emacs gets locked in Emacs mode and the
status line says that it is in vi mode.  There does not seem to be a
way to actually get back into vi mode once the following sequence of
commands has occurred.

      M-x vip-mode
      C-z
      M-x picture-mode
      C-z
      C-c C-c

It works fine if you leave picture mode in the same major mode as you
started picture mode with.

-------------------------

Just for your information, in my opinion vip-mode is better than
vi-mode.  With some new key bindings and some variable set up vip
looks very much like vi with all the power of Emacs.  Vip also has
some fixes to things I did not like in real vi.

nate@mipos2.intel.com (11/02/88)

In article <8810282343.AA05448@cpocel.local> you write:
>      M-x vip-mode
>      C-z
>      M-x picture-mode
>      C-z
>      C-c C-c
>
>It works fine if you leave picture mode in the same major mode as you
>started picture mode with.


Randy,

One of the problems you might be having is with your invocation of
picture-mode.  The function you probably want to use instead is

M-x edit-picture

Just invoking picture-mode doesn't save the key-maps correctly;
edit-picture does some mucking about with lisp variables, and *then*
calls picture-mode.

In fact, if you call edit-picture from inside of vi mode, you'll notice
that C-z doesn't switch you to Emacs mode, but leaves you in vi mode.
This is a feature.  The idea of picture-mode is to jump into it for a
little while, do the p-m editing you need to do, and then get back out.

[That is, if you have called edit-picture, and you want to be in Emacs
mode instead of vi mode, you have to C-c C-c, switch to Emacs, and then
call edit-picture again.]

Hope this helps,
--woodstock
-- 
	   "What I like is when you're looking and thinking and looking
	   and thinking...and suddenly you wake up."   - Hobbes

woodstock@sc.intel.com    ...!{decwrl|hplabs!oliveb|amd}!intelca!mipos3!nate