by shigemk2

当面は技術的なことしか書かない

buffer-substring

buffer-substring is a built-in function in ‘C source code’.

(buffer-substring START END)

Return the contents of part of the current buffer as a string. The two arguments START and END are character positions; they can be in either order. The string returned is multibyte if the buffer is multibyte.

This function copies the text properties of that part of the buffer into the result string; if you don’t want the text properties, use ‘buffer-substring-no-properties’ instead.

バッファを文字列に変換する(start endで場所を指定できる)

引数名がbegだったりstartだったりでイマイチ安定しない。