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

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

Gomoku and Landmark conflict with view-read-only set to t


From: Klaus Straubinger
Subject: Gomoku and Landmark conflict with view-read-only set to t
Date: Mon, 19 Nov 2001 15:19:49 +0100 (W. Europe Standard Time)

In GNU Emacs 21.1.1 (i386-msvc-nt4.0.1381) of 2001-10-22 on buffy
configured using `configure --with-msvc (12.00)'
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: DEU
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


Setting view-read-only to t enables View-mode in all modes not marked
as special. This leads to the activation of View-mode in Gomoku.
The normal keys used to play the game are not available any more, as
their definitions are now overwritten by View-mode. So hitting the
RET key does not play a move, but moves to the end of the buffer
instead. This behaviour has been observed with emacs started with
--no-init-file and setting view-read-only to t as the only action
before starting Gomoku.

A possible solution would be to include

    (put 'gomoku-mode 'mode-class 'special)

somewhere in gomoku.el and a corresponding line in landmark.el as well.


Recent input:
M-x s e t - v a r i a b l e <return> v i e w - r e 
a d - o n l y <return> t <return> M-x g o m o k u <return> 
y <right> <return> M-x r e p o r t - e m a c s - b 
u g <return>

Recent messages:
For information about the GNU Project and its goals, type C-h C-p.
Loading image...done
Loading gomoku...done
Loading view...done
Type C-h for help, h for commands, q to quit.
One moment, please...
Let me think...
Your move ? (move to a free square and hit X, RET ...)
End of buffer
Loading emacsbug...done




reply via email to

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