■掲示板に戻る■ 全部 1- 101- 201- 301- 401- 501- 601- 701- 801- 901- 1001- 最新50



レス数が1000を超えています。残念ながら全部は表示しません。

Emacs

760 :名無しさん@お腹いっぱい。 :2001/08/16(木) 23:54
http://www.gnu.org/manual/emacs-lisp-intro/html_node/emacs-lisp-intro_82.html

↑このページを見ると、「beginning-of-buffer の引数は 1 から 10」
と書いてありますが、どう考えても
「0 から 9」
だと思いますが?

参考ソース
(defun beginning-of-buffer (&optional arg)
"Move point to the beginning of the buffer; leave mark at previous position.With arg N, put point N/10 of the way from the true beginning.Don't use this in Lisp programs!\(goto-char (point-min)) is faster and does not set the mark."
  (interactive "P")
  (push-mark)
  (goto-char
   (if arg
    (if (> (buffer-size) 10000)      ; Avoid overflow for large buffer sizes!
    (* (prefix-numeric-value arg)    (/ (buffer-size) 10))
   (/ (+ 10 (* (buffer-size) (prefix-numeric-value arg))) 10))
    (point-min)))
  (if arg (forward-line 1)))


掲示板に戻る 全部 前100 次100 最新50

read.cgi ver5.26+ (01/10/21-)