bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

M-x load-file vip.el remmaps C-x 3.


From: LLeweLLyn Reese
Subject: M-x load-file vip.el remmaps C-x 3.
Date: 24 May 2003 10:39:35 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

M-x version
GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit) of 2003-05-24 on
localhost.localdomain

configure was run as:
./configure

(No options)

emacs was built with:
address@hidden llewelly]$ gcc -v
Reading specs from
/usr/local/gcc-3.2.2/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2
--enable-shared --enable-threads --disable-nls --enable-debug
--enable-cxx-flags=-fstrict-aliasing -ffunction-sections -fvtable-gc
--enable-c99 --enable-concept-checks : (reconfigured)
../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-shared
--enable-threads --disable-nls --enable-debug
--enable-cxx-flags=-fstrict-aliasing -ffunction-sections -fvtable-gc
--enable-c99 --enable-concept-checks : (reconfigured)
../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-shared
--enable-threads --disable-nls --enable-debug
--enable-cxx-flags=-fstrict-aliasing -ffunction-sections -fvtable-gc
--enable-c99 --enable-concept-checks : (reconfigured)
../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-shared
--enable-threads --disable-nls --enable-debug
--enable-cxx-flags=-fstrict-aliasing -fvtable-gc --enable-c99
--enable-concept-checks : (reconfigured) ../gcc-3.2.2/configure
--prefix=/usr/local/gcc-3.2.2 --enable-shared --enable-threads
--disable-nls --enable-debug --enable-cxx-flags=-fstrict-aliasing
--enable-c99 --enable-concept-checks
Thread model: posix
gcc version 3.2.2

emacs was run with:

$ emacs -q &

Before loading vip.el, C-h k C-x 3 reports:

    C-x 3 runs the command split-window-horizontally
       which is an interactive compiled Lisp function in `window'.
    (split-window-horizontally &optional ARG)

    Split current window into two windows side by side.
    This window becomes the leftmost of the two, and gets ARG columns.
    Negative arg means select the size of the rightmost window
    instead.
    The argument includes the width of the window's scroll bar; if
    there
    are no scroll bars, it includes the width of the divider column
    to the window's right, if any.  No arg means split equally.

After loading vip.el, via
    M-x load-file <RET>
    /usr/local/share/emacs/21.3/lisp/emulation/vip.el
    ,  C-h k C-x 3 reports:

    C-x 3 runs the command vip-buffer-in-two-windows
       which is an interactive Lisp function in
    `/usr/local/share/emacs/21.3/lisp/emulation/vip.el'.
    (vip-buffer-in-two-windows)

    Show current buffer in two windows.

I consider this a bug; it changes the key when the mode is not being
    used, and changes it to something quite different;
    vip-buffer-in-two-windows calls split-window-vertically, and that
    isn't what I'd like from C-x 3.

(I found this bug changing settings using M-x customize; if you change
    a vip-mode setting via customize, vip.el will be loaded, and C-x 3
    will be remapped, etc, but customize isn't necessary to reproduce
    the bug; I was able to reproduce with only the load-file command
    above. )

The file vip.el contains this code:

(define-key vip-mode-map "}" 'vip-forward-paragraph)
(define-key vip-mode-map "~" 'vip-nil)
(define-key vip-mode-map "\177" 'vip-delete-backward-char)

(define-key ctl-x-map "3" 'vip-buffer-in-two-windows)
(define-key ctl-x-map "\C-i" 'insert-file)

I believe (define-key ctl-x-map "3" 'vip-buffer-in-two-windows) is the
    cause of the problem, but I do not know the fix.

I did not try to download and test a cvs snapshot, but I did look at:

savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/emulation/vip.el?rev=1.27&content-type=text/vnd.viewcvs-markup

and the offending line is still there.


Thank you for your time.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]