ほんとのこと知りたいだけなのに。

夏休みはもうおわり。

Emacs Lisp のテキスト関連のオペレータ

メジャーモードでバッファに文字列を出力する方法がわからなくてテキスト関連のオペレータを一覧にします。

31 Text

31.1 Examining Text Near Point

type statement
Function char-after &optional position
Function char-before &optional position
Function following-char
Function preceding-char
Function bobp
Function eobp
Function bolp
Function eolp

31.2 Examining Buffer Contents

type statement
Function buffer-substring start end
Function buffer-substring-no-properties start end
Function buffer-string
Function filter-buffer-substring start end &optional delete
Variable filter-buffer-substring-function
Variable filter-buffer-substring-functions
Variable buffer-substring-filters
Function current-word &optional strict really-word
Function thing-at-point thing &optional no-properties

31.3 Comparing Text

type statement
Function compare-buffer-substrings buffer1 start1 end1 buffer2 start2 end2

31.4 Inserting Text

type statement
Function insert &rest args
Function insert-before-markers &rest args
Command insert-char character &optional count inherit
Function insert-buffer-substring from-buffer-or-name &optional start end
Function insert-buffer-substring-no-properties from-buffer-or-name &optional start end

31.5 User-Level Insertion Commands

type statement
Command insert-buffer from-buffer-or-name
Command self-insert-command count
Command newline &optional number-of-newlines
Variable overwrite-mode

31.6 Deleting Text

type statement
Command erase-buffer
Command delete-region start end
Function delete-and-extract-region start end
Command delete-char count &optional killp
Command delete-backward-char count &optional killp
Command backward-delete-char-untabify count &optional killp
User Option backward-delete-char-untabify-method

31.7 User-Level Deletion Commands

type statement
Command delete-horizontal-space &optional backward-only
Command delete-indentation &optional join-following-p
Command fixup-whitespace
Command just-one-space &optional n
Command delete-blank-lines
Command delete-trailing-whitespace &optional start end

31.8 The Kill Ring

31.8.1 Kill Ring Concepts

31.8.2 Functions for Killing

type statement
Command kill-region start end &optional region
User Option kill-read-only-ok
Command copy-region-as-kill start end &optional region

31.8.3 Yanking

type statement
Function insert-for-yank string
Function insert-buffer-substring-as-yank buf &optional start end
User Option yank-handled-properties
User Option yank-excluded-properties

31.8.4 Functions for Yanking

type statement
Command yank &optional arg
Command yank-pop &optional arg
Variable yank-undo-function

31.8.5 Low-Level Kill Ring

type statement
Function current-kill n &optional do-not-move
Function kill-new string &optional replace
Function kill-append string before-p
Variable interprogram-paste-function
Variable interprogram-cut-function

31.8.6 Internals of the Kill Ring

type statement
Variable kill-ring
Variable kill-ring-yank-pointer
User Option kill-ring-max

31.9 Undo

type statement
Variable buffer-undo-list
Function undo-boundary
Function undo-auto-amalgamate
Variable undo-auto-current-boundary-timer
Variable undo-in-progress
Function primitive-undo count list

31.10 Maintaining Undo Lists

type statement
Command buffer-enable-undo &optional buffer-or-name
Command buffer-disable-undo &optional buffer-or-name
User Option undo-limit
User Option undo-strong-limit
User Option undo-outer-limit
User Option undo-ask-before-discard

31.11 Filling

type statement
Command fill-paragraph &optional justify region
Command fill-region start end &optional justify nosqueeze to-eo
Command fill-individual-paragraphs start end &optional justify citation-regexp
User Option fill-individual-varying-indent
Command fill-region-as-paragraph start end &optional justify nosqueeze squeeze-after
Command justify-current-line &optional how eop nosqueeze
User Option default-justification
Function current-justification
User Option sentence-end-double-space
User Option sentence-end-without-period
User Option sentence-end-without-space
Variable fill-paragraph-function
Variable fill-forward-paragraph-function
Variable use-hard-newlines

31.12 Margins for Filling

type statement
User Option fill-column
Command set-left-margin from to margin
Command set-right-margin from to margin
Function current-left-margin
Function current-fill-column
Command move-to-left-margin &optional n force
Function delete-to-left-margin &optional from to
Function indent-to-left-margin
User Option left-margin
User Option fill-nobreak-predicate

31.13 Adaptive Fill Mode

type statement
User Option adaptive-fill-mode
Function fill-context-prefix from to
User Option adaptive-fill-regexp
User Option adaptive-fill-first-line-regexp
User Option adaptive-fill-function

31.14 Auto Filling

type statement
Variable auto-fill-function
Variable normal-auto-fill-function
Variable auto-fill-chars

31.15 Sorting Text

type statement
Function sort-subr reverse nextrecfun endrecfun &optional startkeyfun endkeyfun predicate
User Option sort-fold-case
Command sort-regexp-fields reverse record-regexp key-regexp start end
Command sort-lines reverse start end
Command sort-paragraphs reverse start end
Command sort-pages reverse start end
Command sort-fields field start end
Command sort-numeric-fields field start end
User Option sort-numeric-base
Command sort-columns reverse &optional beg end

31.16 Counting Columns

type statement
Function current-column
Command move-to-column column &optional force

31.17 Indentation

31.17.1 Indentation Primitives

type statement
Function current-indentation
Command indent-to column &optional minimum
User Option indent-tabs-mode

31.17.2 Indentation Controlled by Major Mode

type statement
Command indent-for-tab-command &optional rigid
Variable indent-line-function
Command indent-according-to-mode
Command newline-and-indent
Command reindent-then-newline-and-indent
User Option tab-always-indent

31.17.3 Indenting an Entire Region

type statement
Command indent-region start end &optional to-column
Variable indent-region-function
Command indent-rigidly start end count
Command indent-code-rigidly start end columns &optional nochange-regexp

31.17.4 Indentation Relative to Previous Lines

type statement
Command indent-relative &optional unindented-ok
Command indent-relative-maybe

31.17.5 Adjustable Tab Stops

type statement
Command tab-to-tab-stop
User Option tab-stop-list

31.17.6 Indentation-Based Motion Commands

type statement
Command back-to-indentation
Command backward-to-indentation &optional arg
Command forward-to-indentation &optional arg

31.18 Case Changes

type statement
Command capitalize-region start end
Command downcase-region start end
Command upcase-region start end
Command capitalize-word count
Command downcase-word count
Command upcase-word count

31.19 Text Properties

31.19.1 Examining Text Properties

type statement
Function get-text-property pos prop &optional object
Function get-char-property position prop &optional object
Function get-pos-property position prop &optional object
Function get-char-property-and-overlay position prop &optional object
Variable char-property-alias-alist
Function text-properties-at position &optional object
Variable default-text-properties

31.19.2 Changing Text Properties

type statement
Function put-text-property start end prop value &optional object
Function add-text-properties start end props &optional object
Function remove-text-properties start end props &optional object
Function remove-list-of-text-properties start end list-of-properties &optional object
Function set-text-properties start end props &optional object
Function add-face-text-property start end face &optional appendp object
Function propertize string &rest properties

31.19.3 Text Property Search Functions

type statement
Function next-property-change pos &optional object limit
Function previous-property-change pos &optional object limit
Function next-single-property-change pos prop &optional object limit
Function previous-single-property-change pos prop &optional object limit
Function next-char-property-change pos &optional limit
Function previous-char-property-change pos &optional limit
Function next-single-char-property-change pos prop &optional object limit
Function previous-single-char-property-change pos prop &optional object limit
Function text-property-any start end prop value &optional object
Function text-property-not-all start end prop value &optional object

31.19.4 Properties with Special Meanings

type statement
Variable inhibit-point-motion-hooks
Variable show-help-function

31.19.5 Formatted Text Properties

31.19.6 Stickiness of Text Properties

type statement
Variable text-property-default-nonsticky
Function insert-and-inherit &rest strings
Function insert-before-markers-and-inherit &rest strings

31.19.7 Lazy Computation of Text Properties

type statement
Variable buffer-access-fontify-functions
Variable buffer-access-fontified-property

31.19.8 Defining Clickable Text

type statement
Function mouse-on-link-p pos

31.19.9 Defining and Using Fields

type statement
Function field-beginning &optional pos escape-from-edge limit
Function field-end &optional pos escape-from-edge limit
Function field-string &optional pos
Function field-string-no-properties &optional pos
Function delete-field &optional pos
Function constrain-to-field new-pos old-pos &optional escape-from-edge only-in-line inhibit-capture-property

31.19.10 Why Text Properties are not Intervals

31.20 Substituting for a Character Code

type statement
Function subst-char-in-region start end old-char new-char &optional noundo
Command translate-region start end table

31.21 Registers

type statement
Variable register-alist
Function get-register reg
Function set-register reg value
Command view-register reg
Command insert-register reg &optional beforep
Function register-read-with-preview prompt

31.22 Transposition of Text

type statement
Function transpose-regions start1 end1 start2 end2 &optional leave-markers

31.23 Dealing With Compressed Data

type statement
Function zlib-available-p
Function zlib-decompress-region start end

31.24 Base 64 Encoding

type statement
Command base64-encode-region beg end &optional no-line-break
Function base64-encode-string string &optional no-line-break
Command base64-decode-region beg end
Function base64-decode-string string

31.25 Checksum/Hash

type statement
Function secure-hash algorithm object &optional start end binary
Function md5 object &optional start end coding-system noerror

31.26 Parsing HTML and XML

type statement
Function libxml-parse-html-region start end &optional base-url discard-comments
Function shr-insert-document dom
Function libxml-parse-xml-region start end &optional base-url discard-comments

31.27 Atomic Change Groups

type statement
Function prepare-change-group &optional buffer
Function activate-change-group handle
Function accept-change-group handle
Function cancel-change-group handle

31.28 Change Hooks

type statement
Variable before-change-functions
Variable after-change-functions
Macro combine-after-change-calls body...
Variable first-change-hook
Variable inhibit-modification-hooks

おわり

ざっと眺めてみたけど答はなかったみたい。 ナローイングと併せて insert するんかな。

しかし、、、、沢山あるな。