unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2233: [Aquamacs-bugs] viper-mode cursor color does not reset to red
       [not found] <a2b610500902070548i76f906cbhc925c120dcc37a3f@mail.gmail.com>
@ 2009-02-08  1:29 ` David Reitter
  2021-07-19 14:58   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2009-02-08  1:29 UTC (permalink / raw)
  To: Bug-Gnu-Emacs, Nathan Sanders

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#2233: [Aquamacs-bugs] viper-mode cursor color does not reset to red
  2009-02-08  1:29 ` bug#2233: [Aquamacs-bugs] viper-mode cursor color does not reset to red David Reitter
@ 2021-07-19 14:58   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-19 14:58 UTC (permalink / raw)
  To: David Reitter; +Cc: 2233, Nathan Sanders

David Reitter <david.reitter@gmail.com> writes:

> 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.

(I'm going through old bug reports that unfortunately wasn't resolved at
the time.)

I was unable to reproduce this bug in Emacs 28, so I'm going to go ahead
and guess that is was fixed in the 12 years since this was first
reported.  If you're still seeing this problem, please respond to the
debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-19 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <a2b610500902070548i76f906cbhc925c120dcc37a3f@mail.gmail.com>
2009-02-08  1:29 ` bug#2233: [Aquamacs-bugs] viper-mode cursor color does not reset to red David Reitter
2021-07-19 14:58   ` Lars Ingebrigtsen

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).