Search found 2 matches

by mmi
Fri May 20, 2011 1:44 pm
Forum: Emacs Lisp
Topic: Incorrect copying when duplicating line - key binding proble
Replies: 3
Views: 10162

Re: Incorrect copying when duplicating line - key binding proble

Thanks,
both solutions work for me (Emacs 23.1.1, Ubuntu 10.10).
by mmi
Thu May 19, 2011 10:39 am
Forum: Emacs Lisp
Topic: Incorrect copying when duplicating line - key binding proble
Replies: 3
Views: 10162

Incorrect copying when duplicating line - key binding proble

hey guys, I wrote code like this: (defun copy-char-from-line-above () "Copies one character from same column but previous row" (interactive) (let (c) (save-excursion (previous-line) (setq c (buffer-substring-no-properties (point) (+ (point) 1))) ) (insert c) ) ) (defalias 'cup 'copy-char-f...