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

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

Re: visiting certain .c file adds to kill ring


From: martin rudalics
Subject: Re: visiting certain .c file adds to kill ring
Date: Sat, 21 Apr 2007 14:45:52 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>>Here are other incorrect uses of kill-* functions in lisp/progmodes:
>>
>>cc-cmds.el:859:      (kill-region (progn (forward-line 0) (point))
>>perl-mode.el:653:                              (kill-region (point) eol))
>>
>>And there's a bunch of suspicious kill-line/kill-word/kill-region in
>>mantemp.el and vhdl-mode.el.
>
>
> In lisp/
>
> array.el:688:   (kill-line 1))
> array.el:708:       (kill-line 1)
> strokes.el:1361:                       (kill-region (1+ (point)) 
(point-max))))
> tumme.el:918:               (kill-line 1)
> vc.el:2279:     (or (eobp) (kill-line))

FWIW there are more in rnews.el, tramp.el, bib-mode.el, calc-...  The
two uses in ido.el don't appear very clean either.  We should fix them
up after the release (maybe using something like a generalized
`woman-delete-line' for the `kill-line' case to be on the safe side).





reply via email to

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