| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/net/ |
Upload File : |
;ELC ;;; Compiled ;;; in Emacs version 28.2 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\312\313\314\315& \210\316\317\320\321\322DD\323\310\324\325\326&\210\316\327\320\321\330DD\331\325\321%\210\316\332\320\321\333DD\334\325\321%\210\316\335\320\321\336DD\337\325\321%\207" [require thingatpt pp browse-url custom-declare-group quickurl nil "Insert a URL based on text at point in buffer." :version "21.1" :group abbrev :prefix "quickurl-" custom-declare-variable quickurl-url-file funcall function #[0 "\300\301\302\"\207" [locate-user-emacs-file "quickurls" ".quickurls"] 3 #1=""] "File that contains the URL list." "24.4" :type file quickurl-format-function #[0 "\300\207" [quickurl-format-url] 1 #1#] "Function to format the URL before insertion into the current buffer." quickurl-sort-function #[0 "\300\207" [quickurl-sort-urls] 1 #1#] "Function to sort the URL list." quickurl-grab-lookup-function #[0 "\300\207" [current-word] 1 #1#] "Function to grab the thing to lookup."] 10) #@65 Default function for `quickurl-assoc-function'. (fn KEY ALIST) (defalias 'quickurl--assoc-function #[514 "\300\301#\207" [assoc-string t] 6 (#$ . 1061)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\303&\210\300\311\302\303\312DD\313\310\314%\210\300\315\302\303\316DD\317\310\320%\210\300\321\302\303\322DD\323\310\320%\210\300\324\302\303\325DD\326\310\327%\207" [custom-declare-variable quickurl-assoc-function funcall function #[0 "\300\207" [quickurl--assoc-function] 1 #1=""] "Function to use for alist lookup into `quickurl-urls'." :version "26.1" :type quickurl-completion-ignore-case #[0 "\300\207" [t] 1 #1#] "Should `quickurl-ask' ignore case when doing the input lookup?" boolean quickurl-prefix #[0 "\300\207" [";; -*- lisp -*-\n\n"] 1 #1#] "Text to write to `quickurl-url-file' before writing the URL list." string quickurl-postfix #[0 "\300\207" [#1#] 1 #1#] "Text to write to `quickurl-url-file' after writing the URL list.\n\nSee the constant `quickurl-reread-hook-postfix' for some example text that\ncould be used here." quickurl-list-mode-hook #[0 "\300\207" [nil] 1 #1#] "Hooks for `quickurl-list-mode'." hook] 8) #@339 Example `quickurl-postfix' text that adds a local variable to the `quickurl-url-file' so that if you edit it by hand it will ensure that `quickurl-urls' is updated with the new URL list. To make use of this do something like: (setq quickurl-postfix quickurl-reread-hook-postfix) in your init file (after loading/requiring quickurl). (defconst quickurl-reread-hook-postfix "\n;; Local Variables:\n;; eval: (progn (require 'quickurl) (add-hook 'write-file-functions (lambda () (quickurl-read) nil) nil t))\n;; End:\n" (#$ . 2213)) #@55 URL alist for use with `quickurl' and `quickurl-ask'. (defvar quickurl-urls nil (#$ . 2753)) #@49 Local keymap for a `quickurl-list-mode' buffer. (defvar quickurl-list-mode-map (byte-code "\300 \301\302\303#\210\301\304\305#\210\301\306\307#\210\301\310\311#\210\301\312\313#\210\301\314\315#\210\301\316\317#\210\301\320\317#\210\301\321\322#\210\207" [make-sparse-keymap define-key "a" quickurl-list-add-url [(control m)] quickurl-list-insert-url "u" quickurl-list-insert-naked-url " " quickurl-list-insert-with-lookup "l" quickurl-list-insert-lookup "d" quickurl-list-insert-with-desc [(control g)] quickurl-list-quit "q" [mouse-2] quickurl-list-mouse-select] 5) (#$ . 2852)) #@34 Name for the URL listing buffer. (defvar quickurl-list-buffer-name "*quickurl-list*" (#$ . 3448)) #@51 `current-buffer' when `quickurl-list' was called. (defvar quickurl-list-last-buffer nil (#$ . 3552)) #@40 Does the URL have a comment? (fn URL) (defalias 'quickurl-url-commented-p #[257 "\211A<\207" [] 2 (#$ . 3659)]) #@94 Create a URL from KEYWORD, URL and (optionally) COMMENT. (fn KEYWORD URL &optional COMMENT) (defalias 'quickurl-make-url #[770 "\211\203 \211G\300U\204 E\207B\207" [0] 6 (#$ . 3778)]) (defalias 'quickurl-url-keyword 'car "Return the keyword for the URL.\n\n(fn URL)") #@91 Return the actual URL of the URL. Note that this function is a setfable place. (fn URL) (defalias 'quickurl-url-url #[257 "\300!\203\n \211A@\207\211A\207" [quickurl-url-commented-p] 3 (#$ . 4060)]) (byte-code "\300\301\302\303#\300\207" [function-put quickurl-url-url gv-expander #[385 "\300\301\302$\207" [gv--defsetter quickurl-url-url #[514 "\300\301\302D\303D\304DFE\207" [setf if quickurl-url-commented-p cadr cdr] 8 "\n\n(fn STORE URL)"]] 7 "\n\n(fn DO &rest ARGS)"]] 4) #@146 Get the comment from a URL. If the URL has no comment an empty string is returned. Also note that this function is a setfable place. (fn URL) (defalias 'quickurl-url-comment #[257 "\300!\203\n \3018\207\302\207" [quickurl-url-commented-p 2 ""] 3 (#$ . 4554)]) (byte-code "\300\301\302\303#\300\207" [function-put quickurl-url-comment gv-expander #[385 "\300\301\302$\207" [gv--defsetter quickurl-url-comment #[514 "\300\301D\300\302\303DD\304\305D\306DE\304\307\310EEF\311\302\303DD\304\305D\312\305 D\nEEEF\207" [if quickurl-url-commented-p zerop length setf cdr cadr nth 2 unless list] 12 "\n\n(fn STORE URL)"]] 7 "\n\n(fn DO &rest ARGS)"]] 4) #@129 Return a description for the URL. If the URL has a comment then this is returned, otherwise the keyword is returned. (fn URL) (defalias 'quickurl-url-description #[257 "\300!\211G\301U\203 \302!\207\207" [quickurl-url-comment 0 quickurl-url-keyword] 4 (#$ . 5231)]) #@12 (fn URL) (defalias 'quickurl-format-url #[257 "\300\301\302!\"\207" [format "<URL:%s>" quickurl-url-url] 5 (#$ . 5508)]) #@77 Sort URLs in LIST according to their `quickurl-url-description'. (fn LIST) (defalias 'quickurl-sort-urls #[257 "\300\301\"\207" [sort #[514 "\300!\227\300!\227\231\207" [quickurl-url-description] 5 "\n\n(fn X Y)"]] 4 (#$ . 5638)]) #@239 `read' the URL list from BUFFER into `quickurl-urls'. BUFFER, if nil, defaults to current buffer. Note that this function moves point to `point-min' before doing the `read' It also restores point after the `read'. (fn &optional BUFFER) (defalias 'quickurl-read #[256 "\212eb\210\302\206 p!!\211)\207" [quickurl-sort-function quickurl-urls read] 4 (#$ . 5880)]) #@64 Load the contents of `quickurl-url-file' into `quickurl-urls'. (defalias 'quickurl-load-urls #[0 "\301!\205 \302\303\304\"r\211q\210\305\306\"\216\307!\210\310 *\262\207" [quickurl-url-file file-exists-p generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents quickurl-read] 4 (#$ . 6253)]) #@62 Save the contents of `quickurl-urls' to `quickurl-url-file'. (defalias 'quickurl-save-urls #[0 "\306\307\310\"r\211q\210\311\312\"\216p\313\314\n!\210\315!\210\314\f!\210\316ed \313\317%,\207" [print-length standard-output quickurl-prefix quickurl-urls quickurl-postfix quickurl-url-file generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] nil princ pp write-region 0] 7 (#$ . 6632)]) #@266 Return URL associated with key LOOKUP. The lookup is done by looking in the alist `quickurl-urls' and the `cons' for the URL is returned. The actual method used to look into the alist depends on the setting of the variable `quickurl-assoc-function'. (fn LOOKUP) (defalias 'quickurl-find-url #[257 " \"\207" [quickurl-assoc-function quickurl-urls] 4 (#$ . 7088)]) #@160 Insert URL, formatted using `quickurl-format-function'. Also display a `message' saying what the URL was unless SILENT is non-nil. (fn URL &optional SILENT) (defalias 'quickurl-insert #[513 "!c\210\211?\205 \301\302\303!\"\207" [quickurl-format-function message "Found %s" quickurl-url-url] 6 (#$ . 7463)]) #@207 Insert a URL based on LOOKUP. If not supplied LOOKUP is taken to be the word at point in the current buffer, this default action can be modified via `quickurl-grab-lookup-function'. (fn &optional LOOKUP) (defalias 'quickurl #[256 "\211\204\f \211\262\205/ \301 \210\302!\211\204 \303\304\"\202- \305\306!\203'