unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: LLeweLLyn Reese <llewelly@lifesupport.shutdown.com>
Subject: M-x load-file vip.el remmaps C-x 3.
Date: 24 May 2003 10:39:35 -0700	[thread overview]
Message-ID: <x3addc5jmw.fsf@lifesupport.shutdown.com> (raw)

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:
[llewelly@localhost 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	other threads:[~2003-05-24 17:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-24 17:39 LLeweLLyn Reese [this message]
     [not found] <mailman.6702.1053798209.21513.bug-gnu-emacs@gnu.org>
2003-05-27 15:09 ` M-x load-file vip.el remmaps C-x 3 Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x3addc5jmw.fsf@lifesupport.shutdown.com \
    --to=llewelly@lifesupport.shutdown.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).