Emacs Lisp をするのにバッファの壁を越える必要があるので、バッファに関するオペレータを一覧にしてみました。
type |
syntax |
Function |
bufferp object |
type |
syntax |
Function |
current-buffer |
Function |
set-buffer buffer-or-name |
Special Form |
save-current-buffer body... |
Macro |
with-current-buffer buffer-or-name body... |
Macro |
with-temp-buffer body... |
type |
syntax |
Function |
buffer-name &optional buffer |
Command |
rename-buffer newname &optional unique |
Function |
get-buffer buffer-or-name |
Function |
generate-new-buffer-name starting-name &optional ignore |
type |
syntax |
Function |
buffer-file-name &optional buffer |
Variable |
buffer-file-name |
Variable |
buffer-file-number |
Function |
get-file-buffer filename |
Function |
find-buffer-visiting filename &optional predicate |
Command |
set-visited-file-name filename &optional no-query along-with-file |
Variable |
list-buffers-directory |
type |
syntax |
Function |
buffer-modified-p &optional buffer |
Function |
set-buffer-modified-p flag |
Function |
restore-buffer-modified-p flag |
Command |
not-modified &optional arg |
Function |
buffer-modified-tick &optional buffer |
Function |
buffer-chars-modified-tick &optional buffer |
type |
syntax |
Function |
verify-visited-file-modtime &optional buffer |
Function |
clear-visited-file-modtime |
Function |
visited-file-modtime |
Function |
set-visited-file-modtime &optional time |
Function |
ask-user-about-supersession-threat filename |
type |
syntax |
Variable |
buffer-read-only |
Variable |
inhibit-read-only |
Command |
read-only-mode &optional arg |
Function |
barf-if-buffer-read-only &optional position |
type |
syntax |
Function |
buffer-list &optional frame |
Function |
other-buffer &optional buffer visible-ok frame |
Function |
last-buffer &optional buffer visible-ok frame |
Command |
bury-buffer &optional buffer-or-name |
Command |
unbury-buffer |
Variable |
buffer-list-update-hook |
type |
syntax |
Function |
get-buffer-create buffer-or-name |
Function |
generate-new-buffer name |
type |
syntax |
Command |
kill-buffer &optional buffer-or-name |
Variable |
kill-buffer-query-functions |
Variable |
kill-buffer-hook |
User Option |
buffer-offer-save |
Variable |
buffer-save-without-query |
Function |
buffer-live-p object |
type |
syntax |
Command |
make-indirect-buffer base-buffer name &optional clone |
Command |
clone-indirect-buffer newname display-flag &optional norecord |
Function |
buffer-base-buffer &optional buffer |
type |
syntax |
Function |
buffer-swap-text buffer |
type |
syntax |
Function |
gap-position |
Function |
gap-size |
おわり。
バッファを知るにはもう少しっぽいですね。
バッファが何者かを理解するには Buffer-Local Variables
も見る必要がありそう。