[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
visiting certain .c file adds to kill ring
From: |
Kevin Ryde |
Subject: |
visiting certain .c file adds to kill ring |
Date: |
Sat, 21 Apr 2007 09:55:49 +1000 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
With my recent cvs build or the debian snapshot, and starting from
"emacs -Q", visiting the file foo.c below with
C-x C-f foo.c
leaves the first line in the kill ring,
C-y
=> inserts "/* hello */
where I hoped it would leave the kill ring alone. (In particular it's
not good to have the kill changed when you're doing a cut and paste
from another file into that one.)
I suspect c-remove-any-local-eval-or-mode-variables in cc-mode.el
shouldn't be using kill-line, but cc-mode is hellishly complicated ...
In GNU Emacs 22.0.98.2 (i586-pc-linux-gnu, GTK+ Version 2.8.20)
of 2007-04-18 on blah
configured using `configure 'CFLAGS=-O' '--prefix=/down/emacs/b/inst'
'--with-x-toolkit=gtk''
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: en_AU
locale-coding-system: iso-8859-1
default-enable-multibyte-characters: t
Major mode: C/l
Minor modes in effect:
encoded-kbd-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
abbrev-mode: t
foo.c
Description: Text Data