Server IP : 111.118.215.189 / Your IP : 3.128.31.200 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/play/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:35 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/play/cookie1.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@49 Delimiter used to separate cookie file entries. (defconst cookie-delimiter "\n%%\n\\|\n%\n\\| " (#$ . 555)) #@55 Cache of cookie files that have already been snarfed. (defvar cookie-cache (make-vector 511 0) (#$ . 669)) #@137 Return a random phrase from PHRASE-FILE. When the phrase file is read in, display STARTMSG at the beginning of load, ENDMSG at the end. (defalias 'cookie #[(phrase-file startmsg endmsg) "\304 \n#\305!\210\306H)\207" [phrase-file startmsg endmsg cookie-vector cookie-snarf shuffle-vector 0] 4 (#$ . 783)]) #@151 Insert random phrases from PHRASE-FILE; COUNT of them. When the phrase file is read in, display STARTMSG at the beginning of load, ENDMSG at the end. (defalias 'cookie-insert #[(phrase-file &optional count startmsg endmsg) "\306 \n#\307!\210`\310c\210\311GS \206 \312^\"\210\310c\210\313\f`\314#*\207" [phrase-file startmsg endmsg cookie-vector start count cookie-snarf shuffle-vector 10 cookie1 1 fill-region-as-paragraph nil] 4 (#$ . 1099)]) #@36 Inserts a cookie phrase ARG times. (defalias 'cookie1 #[(arg cookie-vec) "\302!\203 \303\207 Hc\210\304c\210\305S \"\207" [arg cookie-vec zerop t " " cookie1] 3 (#$ . 1556)]) #@188 Reads in the PHRASE-FILE, returns it as a vector of strings. Emit STARTMSG and ENDMSG before and after. Caches the result; second and subsequent calls on the same file won't go to disk. (defalias 'cookie-snarf #[(phrase-file startmsg endmsg) "\306!\204 \307\310\"\210\311 \"\211\203) \nK\312\313!8\232\204) \314\315P!\203) \316\n\2032 \nJ\202\206 \317 \"\320\321\"\210\212\322\323!\316\211q\210\n\312\313!8M\210\324\325!!\210\326!\210\327\316w\210m\204u `\326!\210\330\224{\fB)\202Y \331 !\210\320\321\"\210\n\332\333\f\"L+)\207" [phrase-file cookie-cache sym startmsg result buf file-readable-p error "Cannot read file `%s'" intern-soft 5 file-attributes yes-or-no-p " has changed. Read new contents? " nil intern message "%s" generate-new-buffer "*cookie*" insert-file-contents expand-file-name re-search-forward " \n \f" 0 kill-buffer apply vector cookie-delimiter beg endmsg] 5 (#$ . 1742)]) #@198 Prompt with PROMPT and read with completion among cookies in PHRASE-FILE. STARTMSG and ENDMSG are passed along to `cookie-snarf'. Optional fifth arg REQUIRE-MATCH non-nil forces a matching cookie. (defalias 'read-cookie #[(prompt phrase-file startmsg endmsg &optional require-match) "\306 \"\204 \307\n#\210\310\f\311 \"\211\312N\206H \313\307\n#\211GS\211\314Y\203A HCB\202( \315 \312#+)\313\313\211&\207" [phrase-file cookie-cache startmsg endmsg prompt sym intern-soft cookie-snarf completing-read intern completion-alist nil 0 put alist vec i require-match] 8 (#$ . 2674)]) #@76 Randomly permute the elements of VECTOR (all permutations equally likely). (defalias 'shuffle-vector #[(vector) "\305\306\211G\211 W\203. \f\307 \fZ!\\\fH\fHI\210\nI\210\fT\211\202\n ,\207" [vector len temp j i 0 nil random] 5 (#$ . 3289)]) (provide 'cookie1)