;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\310\311\312\"\210\313\314\315\316\317DD\320\321\322\323\324\325\326& \207" [require ansi-color color seq subr-x thingatpt cider-compat clojure-mode defalias cider-pop-back pop-tag-mark custom-declare-variable cider-font-lock-max-length funcall function #[0 "\300\207" [10000] 1] "The max length of strings to fontify in `cider-font-lock-as'.\n\nSetting this to nil removes the fontification restriction." :group cider :type boolean :package-version (cider . "0.10.0")] 10) #@53 Return a list of keys in HASHTABLE. (fn HASHTABLE) (defalias 'cider-util--hash-keys #[257 "\300C\301\302\303\"\"\210\211\242\207" [nil maphash make-closure #[514 "\300\300\242B\240\207" [V0] 5 "\n\n(fn K V)"]] 6 (#$ . 664)]) #@55 Return a list of all existing `clojure-mode' buffers. (defalias 'cider-util--clojure-buffers #[0 "\300\301\302 \"\207" [seq-filter #[257 "r\211q\210\300\301!)\207" [derived-mode-p clojure-mode] 3 "\n\n(fn BUFFER)"] buffer-list] 3 (#$ . 899)]) #@45 Return the directory of the current buffer. (defalias 'cider-current-dir #[0 "\203\302!\207 \207" [buffer-file-name default-directory file-name-directory] 2 (#$ . 1148)]) #@41 Return non-nil if point is in a string. (defalias 'cider-in-string-p #[0 "\212\300 \210`)\301\302`\"8\207" [beginning-of-defun 3 parse-partial-sexp] 5 (#$ . 1329)]) #@42 Return non-nil if point is in a comment. (defalias 'cider-in-comment-p #[0 "\212\300 \210`)\301\302`\"8\207" [beginning-of-defun 4 parse-partial-sexp] 5 (#$ . 1501)]) #@194 Return t if FILE-NAME is not a 'real' source file. Currently, only check if the relative file name starts with 'form-init' which nREPL uses for temporary evaluation file names. (fn FILE-NAME) (defalias 'cider--tooling-file-p #[257 "\301!\302\303\304\305#)\207" [inhibit-changing-match-data file-name-nondirectory "^form-init" nil t string-match] 9 (#$ . 1676)]) #@137 Return non-nil if the current buffer is visiting a cljc file. If BUFFER is provided act on that buffer instead. (fn &optional BUFFER) (defalias 'cider--cljc-buffer-p #[256 "r\211\206pq\210\300\301!)\207" [derived-mode-p clojurec-mode] 3 (#$ . 2052)]) #@191 Returns the substring or the bounds of text. If BOUNDS is non-nil, returns the list (START END) of character positions. Else returns the substring from START to END. (fn BOUNDS START END) (defalias 'cider--text-or-limits #[771 "\203\300\202 \301\"\207" [list buffer-substring-no-properties] 6 (#$ . 2314)]) #@153 Return the text of the top level sexp at point. If BOUNDS is non-nil, return a list of its starting and ending position instead. (fn &optional BOUNDS) (defalias 'cider-defun-at-point #[256 "\212\300 \301\302\"\216\303 \210`\304\305!\210\306`#\262)\262)\207" [match-data make-closure #[0 "\301\300\302\"\207" [V0 set-match-data evaporate] 3] end-of-defun clojure-backward-logical-sexp 1 cider--text-or-limits] 7 (#$ . 2636)]) #@23 Retrieve the ns form. (defalias 'cider-ns-form #[0 "\300 \205 \212\301\224b\210\302 )\207" [clojure-find-ns 0 cider-defun-at-point] 1 (#$ . 3073)]) #@286 Return the name of the symbol at point, otherwise nil. Ignores the REPL prompt. If LOOK-BACK is non-nil, move backwards trying to find a symbol if there isn't one at point. Does not strip the : from keywords, nor attempt to expand :: auto-resolved keywords. (fn &optional LOOK-BACK) (defalias 'cider-symbol-at-point #[256 "\300\301!\211\205b\302\303G\304\305%?\205b\306!\262\211\307\235\203\"\211\202b\310\311\312\313\"\203:\211\303GGZO\266\202\202<\262\314\"\203M\211G\315O\266\202\202O\262\314\"\203`\211G\315O\266\202\202b\262\262\206\220\211\205\220\212\3161\214\317\320!\203y\321u\210\317\322!?\205\207\323\324!\210\202y0\210\202\215\210\325 )\207" [thing-at-point symbol text-property-any 0 field cider-repl-prompt substring-no-properties ("." "..") "#'" "'" "." string-suffix-p string-prefix-p nil (error) looking-at "(" 1 "\\sw\\|\\s_\\|\\`" forward-sexp -1 cider-symbol-at-point] 10 (#$ . 3229)]) #@158 Return the sexp at point as a string, otherwise nil. If BOUNDS is non-nil, return a list of its starting and ending position instead. (fn &optional BOUNDS) (defalias 'cider-sexp-at-point #[256 "\300f\301=\203`Sf\302>\203\214`d}\210\303\304!)\206\303\304!\211\2050\203*\305\202+\306@A\"\207" [nil 40 (39 44 64) bounds-of-thing-at-point sexp list buffer-substring-no-properties] 5 (#$ . 4180)]) #@174 Return the list (compound form) at point as a string, otherwise nil. If BOUNDS is non-nil, return a list of its starting and ending position instead. (fn &optional BOUNDS) (defalias 'cider-list-at-point #[256 "\300f\301=\203`Sf\302>\203\214`d}\210\303\304!)\206\303\304!\211\2050\203*\304\202+\305@A\"\207" [nil 40 (39 44 64) bounds-of-thing-at-point list buffer-substring-no-properties] 5 (#$ . 4593)]) #@142 Return the sexp preceding the point. If BOUNDS is non-nil, return a list of its starting and ending position instead. (fn &optional BOUNDS) (defalias 'cider-last-sexp #[256 "\300\203 \301\202\n\302\212\303\304!\210`\305\304!\210`)D\"\207" [apply list buffer-substring-no-properties clojure-backward-logical-sexp 1 clojure-forward-logical-sexp] 6 (#$ . 5017)]) #@218 Move to the start of the next sexp. Skip any non-logical sexps like ^metadata or #reader macros. If SKIP is an integer, also skip that many logical sexps first. Can only error if SKIP is non-nil. (fn &optional SKIP) (defalias 'cider-start-of-next-sexp #[256 "\300 \203\f\301\302!\210\202\211\2050\211\303V\2050\211\303\211W\205.\304\301\302!\210\305 \266\211T\262\202\266\202\207" [clojure--looking-at-non-logical-sexp forward-sexp 1 0 nil cider-start-of-next-sexp] 6 (#$ . 5388)]) #@46 Return the second sexp in the list at point. (defalias 'cider-second-sexp-in-list #[0 "\3001\212\301 \210\302u\210\303\304!\210\305 )0\207\210\302\207" [(error) backward-up-list nil forward-sexp 2 cider-sexp-at-point] 2 (#$ . 5888)]) #@66 If NAME is a symbol, return it; otherwise, intern it. (fn NAME) (defalias 'cider-maybe-intern #[257 "\2119\203\207\300!\207" [intern] 3 (#$ . 6130)]) #@73 Copy PLIST, with any non-symbol keys replaced with symbols. (fn PLIST) (defalias 'cider-intern-keys #[257 "\211\205\300\211A\262\242!\211A\262\242\301!BB\207" [cider-maybe-intern cider-intern-keys] 5 (#$ . 6290)]) #@186 Execute BODY and add PROPS to all the inserted text. More precisely, PROPS are added to the region between the point's positions before and after executing BODY. (fn PROPS &rest BODY) (defalias 'cider-propertize-region '(macro . #[385 "\300\301!\302\303BC\304\305B\306\307 FEE\207" [make-symbol "start" let ((point)) prog1 progn add-text-properties (point)] 11 (#$ . 6519)])) (byte-code "\300\301\302\303#\304\301\305\306#\210\304\301\302\303#\207" [function-put cider-propertize-region lisp-indent-function 1 put edebug-form-spec (sexp body)] 5) #@115 Return the the positions of the previous and next change to PROP. PROP is the name of a text property. (fn PROP) (defalias 'cider-property-bounds #[257 "\300`\"\301\"D\207" [next-single-char-property-change previous-single-char-property-change] 5 (#$ . 7078)]) #@117 Insert TEXT with FACE, optionally followed by a line BREAK and MORE-TEXT. (fn TEXT &optional FACE BREAK MORE-TEXT) (defalias 'cider-insert #[1025 "\203\f\300\301#\202 c\210\211\203\211c\210\205\302c\207" [propertize font-lock-face "\n"] 8 (#$ . 7351)]) #@410 Like `run-hook-with-args' but pass intermediate return values through. HOOK is a name of a hook (a symbol). You can use `add-hook' or `remove-hook' to add functions to this variable. ARG is passed to first function. Its return value is passed to the second function and so forth till all functions are called or one of them returns nil. Return the value return by the last called function. (fn HOOK ARG) (defalias 'cider-run-chained-hook #[514 "\300J!\211\203<\203<\211@\301=\203/\302!\211\203+\203+\211@!\262\211A\262\202\210\2025\211@!\262\211A\262\202\207" [copy-sequence t default-value] 6 (#$ . 7623)]) (byte-code "\300\301\302\303!\203\f\303\202 \304\"\210\300\305\302\306!\203\306\202\307\"\207" [defalias cider--font-lock-ensure fboundp font-lock-ensure #[512 "\205\301 \207" [font-lock-mode font-lock-fontify-buffer] 3 "\n\n(fn &optional BEG END)"] cider--font-lock-flush font-lock-flush #[512 "\205\301 \207" [font-lock-mode font-lock-fontify-buffer] 3 "\n\n(fn &optional BEG END)"]] 4) #@46 A list of buffers for different major modes. (defvar cider--mode-buffers nil (#$ . 8664)) #@169 Return a temp buffer using `major-mode' MODE. This buffer is not designed to display anything to the user. For that, use `cider-make-popup-buffer' instead. (fn MODE) (defalias 'cider--make-buffer-for-mode #[257 "\303\304\"\211\236A\206+\305\306\307\"!BBr\211q\210\310\301!\210\311\312 \210)\211\262\207" [cider--mode-buffers delay-mode-hooks delayed-mode-hooks seq-filter #[257 "\300A!\207" [buffer-live-p] 3 "\n\n(fn X)"] generate-new-buffer format " *cider-temp %s*" make-local-variable t nil] 5 (#$ . 8761)]) #@58 Return non-nil if STRING is an ANSI string. (fn STRING) (defalias 'cider-ansi-color-string-p #[257 "\300\301\"\207" [string-match "^\\["] 4 (#$ . 9295)]) #@53 Use MODE to font-lock the STRING. (fn MODE STRING) (defalias 'cider-font-lock-as #[514 "\301!\203\302\303!!\202\211\203\211GW\2038r\304!q\210\305 \210\211c\210\306=\203/\307 \210\310ed\"\210\311 )\207\207" [cider-font-lock-max-length cider-ansi-color-string-p substring-no-properties ansi-color-apply cider--make-buffer-for-mode erase-buffer clojure-mode check-parens font-lock-fontify-region buffer-string] 6 (#$ . 9458)]) #@150 Use MODE to font-lock text between BEG and END. Unless you specify a BUFFER it will default to the current one. (fn MODE BEG END &optional BUFFER) (defalias 'cider-font-lock-region-as #[1027 "r\211\206pq\210{|\210b\210\300\"c\262)\207" [cider-font-lock-as] 8 (#$ . 9904)]) #@48 Font-lock STRING as Clojure code. (fn STRING) (defalias 'cider-font-lock-as-clojure #[257 "\3001\n\301\302\"0\207\210\207" [(error) cider-font-lock-as clojure-mode] 4 (#$ . 10195)]) (define-button-type 'cider-plain-button 'face nil) #@331 Propertize all occurrences of REGEXP with FACE. If FOREGROUND-ONLY is non-nil, change only the foreground of matched regions. SUB-EXPR is a sub-expression of REGEXP to be propertized (defaults to 0). OBJECT is an object to be propertized (defaults to current buffer). (fn REGEXP FACE &optional FOREGROUND-ONLY SUB-EXPR OBJECT) (defalias 'cider-add-face #[1282 "\206\300\262\205i\205i\300\211r\301!\203\206pq\210;\203-\302#\2023\303\304\305#\205f\224\262\225\262\203Y\306\307\310\304\305$BC\311\312%\266\202\313\312 %\210\202)\266\202\207" [0 bufferp string-match re-search-forward nil t foreground-color face-attribute :foreground font-lock-prepend-text-property face put-text-property] 14 (#$ . 10438)]) #@69 Scale the current background color to get a slighted muted version. (defalias 'cider-scale-background-color #[0 "\300\301\302\"\300\301\303\"\304=\305\232?\205\306\203\307\202\310\"\207" [frame-parameter nil background-color background-mode dark "unspecified-bg" color-lighten-name 5 -5] 5 (#$ . 11199)]) (autoload 'pkg-info-version-info "pkg-info.el") #@67 Retrieve CIDER's version. A codename is added to stable versions. (defalias 'cider--version #[0 "\3031 \304\305!0\202 \210\306\307\310\311#)\266\203\203\207\312\313\n#\207" [cider-version inhibit-changing-match-data cider-codename (error) pkg-info-version-info cider "-snapshot" nil t string-match format "%s (%s)"] 8 (#$ . 11567)]) #@222 Make an alist from CANDIDATES. The keys are the elements joined with SEPARATOR and values are the original elements. Useful for `completing-read' when candidates are complex objects. (fn CANDIDATES &optional SEPARATOR) (defalias 'cider-join-into-alist #[513 "\300\301\302\"\"\207" [mapcar make-closure #[257 "\211<\203\211\300\206 \301\302\303#\266\202B\207\211B\207" [V0 ":" mapconcat identity] 7 "\n\n(fn EL)"]] 6 (#$ . 11918)]) #@390 Add '(CAR CADR) to the alist stored in SYMBOL. If CAR already corresponds to an entry in the alist, destructively replace the entry's second element with CADR. This can be used, for instance, to update the version of an injected plugin or dependency with: (cider-add-to-alist 'cider-jack-in-lein-plugins "plugin/artifact-name" "THE-NEW-VERSION") (fn SYMBOL CAR CADR) (defalias 'cider-add-to-alist #[771 "J\300\"\211\203\211C\241\207DBL\207" [assoc] 8 (#$ . 12367)]) #@51 Return t if SYM is namespace-qualified. (fn SYM) (defalias 'cider-namespace-qualified-p #[257 "\301\302\303\304#)\207" [inhibit-changing-match-data "[^/]+/" nil t string-match] 8 (#$ . 12871)]) #@28 The URL to CIDER's manual. (defconst cider-manual-url "https://docs.cider.mx/cider/%s" (#$ . 13077)) #@37 Return the version sans that patch. (defalias 'cider-version-sans-patch #[0 "\301\302\303\"\304\"\305\306\307#\207" [cider-version seq-take split-string "\\." 2 "." mapconcat identity] 6 (#$ . 13184)]) #@56 Convert the version to a ReadTheDocs-friendly version. (defalias 'cider--manual-version #[0 "\302\303\304\305#)\266\203\203\306\207\307 \310P\207" [cider-version inhibit-changing-match-data "-snapshot" nil t string-match "" cider-version-sans-patch "/"] 7 (#$ . 13395)]) #@25 The CIDER manual's url. (defalias 'cider-manual-url #[0 "\301\302 \"\207" [cider-manual-url format cider--manual-version] 3 (#$ . 13679)]) #@42 View the manual in your default browser. (defalias 'cider-view-manual #[0 "\300\301 !\207" [browse-url cider-manual-url] 2 (#$ . 13825) nil]) #@149 Return a button string that links to the online manual. LABEL is the displayed string, and SECTION-ID is where it points to. (fn LABEL SECTION-ID) (defalias 'cider--manual-button #[514 "\300\301\302\"r\211q\210\303\304\"\216\305\306\302\307\303\310\"%\210\311 *\207" [generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] insert-text-button follow-link action #[128 "\301\302 \300P!\207" [V0 browse-url cider-manual-url] 4 "\n\n(fn &rest _)" nil] buffer-string] 11 (#$ . 13974)]) #@29 The URL to CIDER's refcard. (defconst cider-refcard-url "https://github.com/clojure-emacs/cider/raw/%s/refcard/cider-refcard.pdf" (#$ . 14523)) #@51 Convert the version to a GitHub-friendly version. (defalias 'cider--github-version #[0 "\302\303\304\305#)\266\203\203\306\207\307P\207" [cider-version inhibit-changing-match-data "-snapshot" nil t string-match "master" "v"] 7 (#$ . 14673)]) #@25 The CIDER manual's url. (defalias 'cider-refcard-url #[0 "\301\302 \"\207" [cider-refcard-url format cider--github-version] 3 (#$ . 14929)]) #@43 View the refcard in your default browser. (defalias 'cider-view-refcard #[0 "\300\301 !\207" [browse-url cider-refcard-url] 2 (#$ . 15077) nil]) #@34 The URL to report a CIDER issue. (defconst cider-report-bug-url "https://github.com/clojure-emacs/cider/issues/new" (#$ . 15228)) #@39 Report a bug in your default browser. (defalias 'cider-report-bug #[0 "\301!\207" [cider-report-bug-url browse-url] 2 (#$ . 15364) nil]) #@118 Extracts a project name from DIR, possibly nil. The project name is the final component of DIR if not nil. (fn DIR) (defalias 'cider--project-name #[257 "\211\205 \300\301!!\207" [file-name-nondirectory directory-file-name] 4 (#$ . 15509)]) #@173 Convert vectors in X to lists. If X is a sequence, return a list of `cider--deep-vector-to-list' applied to each of its elements. Any other value is just returned. (fn X) (defalias 'cider--deep-vector-to-list #[257 "\300!\203 \301\302\"\207\207" [sequencep mapcar cider--deep-vector-to-list] 4 (#$ . 15760)]) #@588 Invoked from commands using the "*Help*" buffer to install some xref info. ITEM is a (FUNCTION . ARGS) pair appropriate for recreating the help buffer after following a reference. INTERACTIVE-P is non-nil if the calling command was invoked interactively. In this case the stack of items for help buffer "back" buttons is cleared. Use BUFFER for the buffer local variables. This should be called very early, before the output buffer is cleared, because we want to record the "previous" position of point so we can restore it properly when going back. (fn ITEM INTERACTIVE-P BUFFER) (defalias 'cider--help-setup-xref #[771 "r\211q\210\203`B B\303\203 \304 \233\211\203\211\303\241\210\210\211)\207" [help-xref-stack-item help-xref-stack help-xref-forward-stack nil 10] 6 (#$ . 16080)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315& \207" [custom-declare-variable cider-doc-xref-regexp funcall function #[0 "\301\302\303\304\305\306\307D\310\307D\257F!\207" [clojure--sym-regexp rx-to-string or (: "`" (group-n 1 (+ (not space))) "`") (: "[[" (group-n 1 (+ (not space))) "]]") group-n 1 regexp "/"] 10] "The regexp used to search Clojure vars in doc buffers." :type regexp :safe stringp :group cider :package-version (cider . "0.13.0")] 12) #@221 Parse and return the first clojure symbol in current buffer. Use `cider-doc-xref-regexp' for the search. Set match data and return a string of the Clojure symbol. Return nil if there are no more matches in the buffer. (defalias 'cider--find-symbol-xref #[0 "\301\302\303#\205 \304\305!\207" [cider-doc-xref-regexp re-search-forward nil t match-string 1] 4 (#$ . 17372)]) #@195 Insert special references `back' and `forward', as in `help-make-xrefs'. Optional argument BUFFER is the buffer in which to insert references. Default is current buffer. (fn &optional BUFFER) (defalias 'cider--make-back-forward-xrefs #[256 "r\211\206pq\210\304c\210\204 \203\304c\210\203 \305\n\306p#\210 \2031\203+\307c\210\305 \310p#\210\2049 \205;\304c)\207" [help-xref-stack help-xref-forward-stack help-back-label help-forward-label "\n" help-insert-xref-button help-back " " help-forward] 5 (#$ . 17754)]) #@430 Parse and hyperlink documentation cross-references in current buffer. Find cross-reference information in a buffer and activate such cross references for selection with `help-xref'. Cross-references are parsed using `cider--find-symbol-xref'. Special references `back' and `forward' are made to go back and forth through a stack of help buffers. Variables `help-back-label' and `help-forward-label' specify the text for that. (defalias 'cider--doc-make-xrefs #[0 "\212eb\210\300\301 \211\262\203\"\302\303!\210\304\305\306\307\310\311\312!\"%\210\202\210)\313 \207" [nil cider--find-symbol-xref replace-match "" insert-text-button type help-xref help-function apply-partially cider-doc-lookup cider--eldoc-remove-dot cider--make-back-forward-xrefs] 10 (#$ . 18290) "b"]) #@37 Find the current user's first name. (defalias 'cider-user-first-name #[0 "\300 \301\230\203\f\302 \202\300 \303\304\"\210\305\306\307\"!\207" [user-full-name "" user-login-name string-match "^[^ ]*" capitalize match-string 0] 5 (#$ . 19077)]) #@65 Scientifically-proven optimal words of hackerish encouragement. (defvar cider-words-of-inspiration (byte-code "\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377\201@\201A\201B\201C\201D\201E\201F\201G\201H\201I\201J\201K\201L \"\201J\201M\201L \"\257L\207" ["The best way to predict the future is to invent it. -Alan Kay" "A point of view is worth 80 IQ points. -Alan Kay" "Lisp isn't a language, it's a building material. -Alan Kay" "Simple things should be simple, complex things should be possible. -Alan Kay" "Everything should be as simple as possible, but not simpler. -Albert Einstein" "Measuring programming progress by lines of code is like measuring aircraft building progress by weight. -Bill Gates" "Controlling complexity is the essence of computer programming. -Brian Kernighan" "The unavoidable price of reliability is simplicity. -C.A.R. Hoare" "You're bound to be unhappy if you optimize everything. -Donald Knuth" "Simplicity is prerequisite for reliability. -Edsger W. Dijkstra" "Elegance is not a dispensable luxury but a quality that decides between success and failure. -Edsger W. Dijkstra" "Deleted code is debugged code. -Jeff Sickel" "The key to performance is elegance, not battalions of special cases. -Jon Bentley and Doug McIlroy" "First, solve the problem. Then, write the code. -John Johnson" "Simplicity is the ultimate sophistication. -Leonardo da Vinci" "Programming is not about typing... it's about thinking. -Rich Hickey" "Design is about pulling things apart. -Rich Hickey" "Programmers know the benefits of everything and the tradeoffs of nothing. -Rich Hickey" "Code never lies, comments sometimes do. -Ron Jeffries" "The true delight is in the finding out rather than in the knowing. -Isaac Asimov" "If paredit is not for you, then you need to become the sort of person that paredit is for. -Phil Hagelberg" "Express Yourself. -Madonna" "Put on your red shoes and dance the blues. -David Bowie" "Do. Or do not. There is no try. -Yoda" "The enjoyment of one's tools is an essential ingredient of successful work. -Donald E. Knuth" "Not all those who wander are lost. -J.R.R. Tolkien" "The best way to learn is to do. -P.R. Halmos" "If you wish to make an apple pie from scratch, you must first invent the universe. -Carl Sagan" "Learn the rules like a pro, so you can break them like an artist. -Pablo Picasso" "The only way of discovering the limits of the possible is to venture a little way past them into the impossible. -Arthur C. Clarke" "Don't wish it were easier. Wish you were better. -Jim Rohn" "One chord is fine. Two chords is pushing it. Three chords and you're into jazz. -Lou Reed" "We are all apprentices in a craft where no one ever becomes a master. -Ernest Hemingway" "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. -Antoine de Saint-Exupery" "Clojure isn't a language, it's a building material." "Think big!" "Think bold!" "Think fun!" "Code big!" "Code bold!" "Code fun!" "Take this REPL, fellow hacker, and may it serve you well." "Let the hacking commence!" "Hacks and glory await!" "Hack and be merry!" "Your hacking starts... NOW!" "May the Source be with you!" "May the Source shine upon thy REPL!" "Code long and prosper!" "Happy hacking!" "nREPL server is up, CIDER REPL is online!" "CIDER REPL operational!" "Your imagination is the only limit to what you can do with this REPL!" "This REPL is yours to command!" "Fame is but a hack away!" "The REPL is not enough, but it is such a perfect place to start..." "Keep on codin' in the free world!" "What we do in the REPL echoes in eternity!" "Evaluating is believing." "To infinity... and beyond." "Showtime!" "Unfortunately, no one can be told what CIDER is. You have to figure this out yourself." "Procure a bottle of cider to achieve optimum programming results." "In parentheses we trust!" "Write you some Clojure for Great Good!" "Oh, what a day... what a lovely day!" "What a day! What cannot be accomplished on such a splendid day!" "Home is where your REPL is." "The worst day programming is better than the best day working." "The only thing worse than a rebel without a cause is a REPL without a clause." "In the absence of parentheses, chaos prevails." "One REPL to rule them all, One REPL to find them, One REPL to bring them all, and in parentheses bind them!" "A blank REPL promotes creativity." "A blank REPL is infinitely better than a blank cheque." format "%s, I've a feeling we're not in Kansas anymore." cider-user-first-name "%s, this could be the start of a beautiful program."] 78) (#$ . 19331)) #@58 Select a random entry from `cider-words-of-inspiration'. (defalias 'cider-random-words-of-inspiration #[0 "\301\302G!8!\207" [cider-words-of-inspiration eval random] 3 (#$ . 24179)]) #@24 Some handy CIDER tips. (defvar cider-tips '("Press <\\[cider-connect]> to connect to a running nREPL server." "Press <\\[cider-quit]> to quit the current connection." "Press <\\[cider-view-manual]> to view CIDER's manual." "Press <\\[cider-view-refcard]> to view CIDER's refcard." "Press <\\[describe-mode]> to see a list of the keybindings available (this will work in every Emacs buffer)." "Press <\\[cider-repl-handle-shortcut]> to quickly invoke some REPL command." "Press <\\[cider-switch-to-last-clojure-buffer]> to switch between the REPL and a Clojure source buffer." "Press <\\[cider-doc]> to view the documentation for something (e.g. a var, a Java method)." "Press <\\[cider-find-resource]> to find a resource on the classpath." "Press <\\[cider-find-var]> to jump to the source of something (e.g. a var, a Java method)." "Press <\\[cider-selector]> to quickly select a CIDER buffer." "Press <\\[cider-test-run-ns-tests]> to run the tests for the current namespace." "Press <\\[cider-test-run-loaded-tests]> to run all loaded tests." "Press <\\[cider-test-run-project-tests]> to run all tests for the current project." "Press <\\[cider-apropos]> to look for a symbol by some search string." "Press <\\[cider-apropos-documentation]> to look for a symbol that has some string in its docstring." "Press <\\[cider-eval-defun-at-point]> to eval the top-level form at point." "Press <\\[cider-eval-defun-up-to-point]> to eval the top-level form up to the point." "Press <\\[cider-eval-sexp-up-to-point]> to eval the current form up to the point." "Press <\\[cider-eval-sexp-at-point]> to eval the current form around the point." "Press <\\[cider-eval-sexp-at-point-in-context]> to eval the current form around the point in a user-provided context." "Press <\\[cider-eval-buffer]> to eval the entire source buffer." "Press <\\[cider-scratch]> to create a Clojure scratchpad. Pretty handy for prototyping." "Press <\\[cider-read-and-eval]> to evaluate some Clojure expression directly in the minibuffer." "Press <\\[cider-drink-a-sip]> to get more CIDER tips." "Press <\\[cider-browse-ns-all]> to start CIDER's namespace browser." "Press <\\[cider-classpath]> to start CIDER's classpath browser." "Press <\\[cider-repl-history]> to start CIDER's REPL input history browser." "Press <\\[cider-macroexpand-1]> to expand the preceding macro." "Press <\\[cider-inspect]> to inspect the preceding expression's result." "Press to inspect the defun at point's result." "Press to read Clojure code from the minibuffer and inspect its result." "Press <\\[cider-ns-refresh]> to reload modified and unloaded namespaces." "You can define Clojure functions to be called before and after `cider-ns-refresh' (see `cider-ns-refresh-before-fn' and `cider-ns-refresh-after-fn'." "Press <\\[cider-describe-connection]> to view information about the connection." "Press <\\[cider-undef]> to undefine a symbol in the current namespace." "Press <\\[cider-interrupt]> to interrupt an ongoing evaluation." "Use to see every possible setting you can customize." "Use to see every possible REPL setting you can customize." "Enable `eldoc-mode' to display function & method signatures in the minibuffer." "Enable `cider-enlighten-mode' to display the locals of a function when it's executed." "Use <\\[cider-close-ancillary-buffers]> to close all ancillary buffers created by CIDER (e.g. *cider-doc*)." "Exploring CIDER's menu-bar entries is a great way to discover features." "Keep in mind that some commands don't have a keybinding by default. Explore CIDER!" "Tweak `cider-repl-prompt-function' to customize your REPL prompt." "Tweak `cider-eldoc-ns-function' to customize the way namespaces are displayed by eldoc." "For no middleware, low-tech and reliable namespace reloading use <\\[cider-ns-reload]>." "Press <\\[cider-load-buffer-and-switch-to-repl-buffer]> to load the current buffer and switch to the REPL buffer afterwards.") (#$ . 24370)) #@40 Select a random tip from `cider-tips'. (defalias 'cider-random-tip #[0 "\301\302G!8!\207" [cider-tips substitute-command-keys random] 3 (#$ . 28433)]) #@20 Show a random tip. (defalias 'cider-drink-a-sip #[0 "\300\301 !\207" [message cider-random-tip] 2 (#$ . 28592) nil]) #@88 Analog to `line-number-at-pos'. Return buffer column number at position POS. (fn POS) (defalias 'cider-column-number-at-pos #[257 "\212\211b\210iT)\207" [] 2 (#$ . 28715)]) #@109 Propertize TEXT as KIND. KIND can be the symbols `ns', `var', `emph', `fn', or a face name. (fn TEXT KIND) (defalias 'cider-propertize #[514 "\300\301\302\267\202%\303\202)\303\202)\304\202)\304\202)\305\202)\306\202)\304\202)\211\262#\207" [propertize face #s(hash-table size 7 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (fn 9 method 13 special-form 17 macro 21 var 25 ns 29 emph 33)) font-lock-function-name-face font-lock-keyword-face font-lock-variable-name-face font-lock-type-face] 7 (#$ . 28896)]) #@60 Add a :help entries to items in MENU-LIST. (fn MENU-LIST) (defalias 'cider--menu-add-help-strings #[257 "\300\301\"\207" [mapcar #[257 "\211<\203 \300!\207\301!\203-\302\303\304\"\305\"\204-\306\307\234!\203-\310\311\305\312\307\234!\"\"\207\207" [cider--menu-add-help-strings vectorp plist-get append nil :help functionp 1 vconcat vector documentation] 8 "\n\n(fn X)"]] 4 (#$ . 29441)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \207" [custom-declare-variable cider-jdk-src-paths funcall function #[0 "\300\207" [("/usr/lib/jvm/openjdk-8/src.zip")] 1] "Used by `cider-stacktrace-navigate'.\nZip/jar files work, but it's better to extract them and put the directory\npaths here. Clojure sources here:\nhttps://repo1.maven.org/maven2/org/clojure/clojure/1.8.0/." :group cider :package-version (cider . "0.17.0") :type (list string)] 10) #@160 Return a path to a Java source file that corresponds to CLASS. This will be a zip/jar path for archived sources and a normal file path otherwise. (fn CLASS) (defalias 'cider-resolve-java-class #[257 "\211\205\301\302\303#\304P\305\306\307\310\311\"\"\"\262\207" [cider-jdk-src-paths replace-regexp-in-string "\\." "/" ".java" cl-find-if file-exists-p mapcar make-closure #[257 "\301!\203 \302\300\"\207\303!\203\304!\305\235\203\306\307\300#\207\310\311\"\207" [V0 file-directory-p expand-file-name file-exists-p file-name-extension ("jar" "zip") format "zip:file:%s!/%s" error "Unexpected archive: %s"] 5 "\n\n(fn D)"]] 8 (#$ . 30319)]) (provide 'cider-util)