Codebase list apel / e893d66
Import upstream version 10.8+0.20220720 Debian Janitor 1 year, 5 months ago
7 changed file(s) with 25 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
3030 "Apply initial ARGUMENT to sequence of FUNCTIONS.
3131 FUNCTIONS is list of functions.
3232
33 \(poly-funcall '(f1 f2 .. fn) arg) is as same as
34 \(fn .. (f2 (f1 arg)) ..).
33 (poly-funcall \\='(f1 f2 .. fn) arg) is as same as
34 (fn .. (f2 (f1 arg)) ..).
3535
36 For example, (poly-funcall '(car number-to-string) '(100)) returns
36 For example, (poly-funcall \\='(car number-to-string) \\='(100)) returns
3737 \"100\"."
3838 (while functions
3939 (setq argument (funcall (car functions) argument)
5858 "List of functions for file-name filter.
5959
6060 Example:
61 \(setq filename-filters '\(filename-special-filter
61 (setq filename-filters \\='(filename-special-filter
6262 filename-eliminate-top-low-lines
6363 filename-canonicalize-low-lines
6464 filename-maybe-truncate-by-size
65 filename-eliminate-bottom-low-lines\)\)
65 filename-eliminate-bottom-low-lines))
6666
6767 Moreover, if you want to convert Japanese filename to roman string by kakasi,
6868
69 \(if \(exec-installed-p \"kakasi\"\)
70 \(setq filename-filters
71 \(append '\(filename-japanese-to-roman-string\) filename-filters\)\)\)")
69 (if (exec-installed-p \"kakasi\")
70 (setq filename-filters
71 (append \\='(filename-japanese-to-roman-string) filename-filters)))")
7272
7373 ;;; @ filters
7474 ;;;
3838 If it is nil, variable `default-mime-charset-for-write' is used.
3939 If it is a function, interface must be (TYPE CHARSETS &rest ARGS).
4040 CHARSETS is list of charset.
41 If TYPE is 'region, ARGS has START and END."
41 If TYPE is \\='region, ARGS has START and END."
4242 :group 'i18n
4343 :type '(choice function (const nil)))
4444
141141 :type 'mime-charset)
142142
143143 (defcustom detect-mime-charset-from-coding-system nil
144 "When non-nil, `detect-mime-charset-region' and `detect-mime-charset-string' functions decide charset by encodability in destination coding system.
144 "When non-nil, `detect-mime-charset-region' and `detect-mime-charset-string'
145 functions decide charset by encodability in destination coding system.
145146
146147 In that case, each car of `charsets-mime-charset-alist' element is ignored."
147148 :group 'i18n
163164 default-mime-charset-for-write))
164165
165166 (defun detect-mime-charset-from-coding-system (start end &optional string)
166 "Return MIME charset for the region between START and END, deciding by encodability in destination coding system.
167
168 Optional 3rd argument STRING is non-nil, detect MIME charset from STRING. In that case, START and END are indexes of the string."
167 "Return MIME charset for the region between START and END,
168 deciding by encodability in destination coding system.
169
170 Optional 3rd argument STRING is non-nil, detect MIME charset from STRING.
171 In that case, START and END are indexes of the string."
169172 (let ((alist charsets-mime-charset-alist)
170173 result)
171174 (while alist
179182 (defun detect-mime-charset-string (string)
180183 "Return MIME charset for STRING.
181184
182 When `detect-mime-charset-from-coding-system' is non-nil, each car of `charsets-mime-charset-alist' element is ignored."
185 When `detect-mime-charset-from-coding-system' is non-nil,
186 each car of `charsets-mime-charset-alist' element is ignored."
183187 (if detect-mime-charset-from-coding-system
184188 (detect-mime-charset-from-coding-system 0 (length string) string)
185189 (let ((table (make-hash-table :test 'eq)))
190194 (defun detect-mime-charset-region (start end)
191195 "Return MIME charset for region between START and END.
192196
193 When `detect-mime-charset-from-coding-system' is non-nil, each car of `charsets-mime-charset-alist' element is ignored."
197 When `detect-mime-charset-from-coding-system' is non-nil,
198 each car of `charsets-mime-charset-alist' element is ignored."
194199 (if detect-mime-charset-from-coding-system
195200 (detect-mime-charset-from-coding-system start end)
196201 (let ((point (min start end))
2626 (defun mule-caesar-region (start end &optional stride-ascii)
2727 "Caesar rotation of current region.
2828 Optional argument STRIDE-ASCII is rotation-size for Latin alphabet
29 \(A-Z and a-z). For non-ASCII text, ROT-N/2 will be performed in any
29 (A-Z and a-z). For non-ASCII text, ROT-N/2 will be performed in any
3030 case (N=charset-chars; 94 for 94 or 94x94 graphic character set; 96
3131 for 96 or 96x96 graphic character set)."
3232 (interactive "r\nP")
4040 absolute path: \"/HOO/BAR/BAZ/\"
4141
4242 You can specify following OPTIONS:
43 'all-paths search from `load-path'
43 \\='all-paths search from `load-path'
4444 instead of `default-load-path'
45 'append add PATH to the last of `load-path'"
45 \\='append add PATH to the last of `load-path'"
4646 (let ((rest (if (memq 'all-paths options)
4747 load-path
4848 default-load-path))
186186 (defun character-to-event (ch)
187187 "Convert keystroke CH into an event structure, replete with bucky bits.
188188 Note that CH (the keystroke specifier) can be an integer, a character
189 or a symbol such as 'clear."
189 or a symbol such as \\='clear."
190190 ch)
191191
192192 ;; XEmacs 21: (event-to-character EVENT
109109
110110 (defun richtext-next-annotation ()
111111 "Find and return next text/richtext annotation.
112 Return value is \(begin end name positive-p), or nil if none was found."
112 Return value is (begin end name positive-p), or nil if none was found."
113113 (catch 'tag
114114 (while (re-search-forward richtext-annotation-regexp nil t)
115115 (let* ((beg0 (match-beginning 0))