all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs@gnu.org>,
	Nathan Sanders <ncsander@umail.iu.edu>
Subject: bug#2233: [Aquamacs-bugs] viper-mode cursor color does not reset to red
Date: Sat, 7 Feb 2009 20:29:03 -0500	[thread overview]
Message-ID: <0ED9D767-55FB-4EC7-A368-25254C2DBB0F@gmail.com> (raw)
In-Reply-To: <a2b610500902070548i76f906cbhc925c120dcc37a3f@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3962 bytes --]

I believe this is a bug in viper mode: if your present cursor color  
(the default is set in `default-frame-alist') is the same as `viper- 
replace-overlay-cursor-color' (by default: "Red"), then Viper forgets  
to save it before switching to insert mode.

The workaround is to set viper-replace-overlay-cursor-color to  
something like "red4".

The solution would be to implement `viper-save-cursor-color' cleanly,  
unless that's already been done for Emacs 23 (haven't checked).

On 7 Feb 2009, at 08:48, Nathan Sanders wrote:

> After loading viper-mode, the cursor turns green when in Insert mode.
> It is supposed to return to red when Esc is pressed to return to VI
> mode. It does not. This occurs whether starting viper-mode
> interactively after emacs starts, or when .emacs consists solely of
>
> (setq viper-mode t)
> (require 'viper)
>
> Or when .emacs does not exist, but ~/Library/Preferences/Aquamacs
> Emacs/Preferences.el consists of the above.
>
> I tested the behavior in 1.4, the version I am using now. There, the
> bug only appears when loading viper-mode interactively, not after
> loading from .emacs
>
> --Nathan Sanders
>
> In GNU Emacs 22.3.2 (i386-apple-darwin9.5.0, Carbon Version 1.6.0)
> of 2009-01-11 on plume.sr.unh.edu - Aquamacs Distribution 1.6
> Windowing system distributor `Apple Inc.', version 10.5.5
> configured using `configure  '--without-x' '--prefix=/usr/local''
>
> Important settings:
>  value of $LC_ALL: nil
>  value of $LC_COLLATE: nil
>  value of $LC_CTYPE: nil
>  value of $LC_MESSAGES: nil
>  value of $LC_MONETARY: nil
>  value of $LC_NUMERIC: nil
>  value of $LC_TIME: nil
>  value of $LANG: nil
>  locale-coding-system: iso-8859-1
>  default-enable-multibyte-characters: t
>
> Major mode: Text
>
> Minor modes in effect:
>  savehist-mode: t
>  smart-frame-positioning-mode: t
>  aquamacs-autoface-mode: t
>  global-visual-line-mode: t
>  visual-line-mode: t
>  recentf-mode: t
>  encoded-kbd-mode: t
>  osx-key-mode: t
>  tabbar-mwheel-mode: t
>  tabbar-mode: t
>  show-paren-mode: t
>  delete-selection-mode: t
>  pc-selection-mode: t
>  cua-mode: t
>  tooltip-mode: t
>  tool-bar-mode: t
>  mouse-wheel-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  font-lock-mode: t
>  blink-cursor-mode: t
>  unify-8859-on-encoding-mode: t
>  utf-translate-cjk-mode: t
>  auto-compression-mode: t
>  column-number-mode: t
>  line-number-mode: t
>  transient-mark-mode: t
>
> Recent input:
> j j <backspace> <backspace> C-x C-f C-g C-n C-n C-f
> C-f M-x v i p e r - m o <tab> <return> j j j k k k
> i d k d k <backspace> <backspace> <backspace> <backspace>
> <escape> j j k k k k k j j j j l l l l l l l l l l
> l <menu-bar> <help-menu> <bug-diagnosis> <send-ema
> cs-bug-report>
>
> Recent messages:
> Aquamacs is based on GNU Emacs 22, a part of the GNU/Linux system. It
> is Free Software: you can improve and redistribute it under the GNU
> General Public License, version 3 or later. Copyright (C) 2008 Free
> Software Foundation, Inc. (C) 2008 D. Reitter. No Warranty.
> Quit
> Loading viper...
> Loading cl-macs...done
> Loading viper...done
> Loading viper...
> Loading /Users/zackman/.viper...done
> Loading viper...done
> line-move-1: Beginning of buffer
> Loading emacsbug...done
>
> Command line: (/Applications/NetBeans/Aquamacs
> Emacs.app/Contents/MacOS/Aquamacs Emacs)
>
> PATH: /opt/local/bin:/Library/Frameworks/Python.framework/Versions/ 
> Current/bin:/usr/local/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/ 
> sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin:/usr/bin:/bin:/usr/ 
> sbin:/sbin
>
> exec-path: (/opt/local/bin
> /Library/Frameworks/Python.framework/Versions/Current/bin
> /usr/local/bin /sw/bin /sw/sbin /usr/bin /bin /usr/sbin /sbin
> /usr/local/bin /usr/X11/bin /usr/X11R6/bin /usr/bin /bin /usr/sbin
> /sbin /Applications/NetBeans/Aquamacs Emacs.app/Contents/MacOS/libexec
> /Applications/NetBeans/Aquamacs Emacs.app/Contents/MacOS/bin)


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

       reply	other threads:[~2009-02-08  1:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a2b610500902070548i76f906cbhc925c120dcc37a3f@mail.gmail.com>
2009-02-08  1:29 ` David Reitter [this message]
2021-07-19 14:58   ` bug#2233: [Aquamacs-bugs] viper-mode cursor color does not reset to red Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=0ED9D767-55FB-4EC7-A368-25254C2DBB0F@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=2233@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=ncsander@umail.iu.edu \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.