Emacs Part 40at UNIXEmacs Part 40 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト400:名無しさん@お腹いっぱい。 12/05/11 13:58:02.86 >>395 next-line の定義追っかけてみたら。 simple.el かな。 401:392 12/05/11 23:08:33.26 おぉ、そんなものまでlispで定義されてたんですか。 正直、lispは良く判らないんですが、 /usr/local/emacs-23.2.94-20110219/lisp/simple.el の中に (defun next-line (&optional arg try-vscroll) (interactive "^p\np") (or arg (setq arg 1)) (if (and next-line-add-newlines (= arg 1)) (if (save-excursion (end-of-line) (eobp)) ;; When adding a newline, don't expand an abbrev. (let ((abbrev-mode nil)) (end-of-line) (insert (if use-hard-newlines hard-newline "\n"))) (line-move arg nil nil try-vscroll)) (if (called-interactively-p 'interactive) (condition-case nil (line-move arg nil nil try-vscroll) ((beginning-of-buffer end-of-buffer) (ding))) (line-move arg nil nil try-vscroll))) nil) というのがあって、カーソル位置の保存に関する何かは用意されて無さそうです。 大昔の simple.el だとカーソル位置が保存される様になってるのかなぁ…。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch