⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 archie.el

📁 sock5代理服务器源代码
💻 EL
📖 第 1 页 / 共 2 页
字号:
;; Questions about this version to Jack Repenning <jackr@sgi.com>;;;; archie.el v2.0;;   A mock-interface to Archie for Emacs.;;;;   -- original version by Brendan Kehoe (brendan@cs.widener.edu);;   ange-ftp extensions by Sanjay Mathur (mathur@nas.nasa.gov);;   ----- async support by Andy Norman (ange@hplb.hpl.hp.com);;   ----- convert-to-dired by (drw@bourbaki.mit.edu);;   ----- archie-server-preference-list by Jack Repenning (jackr@sgi.com);;   ----- merge with original archie mode by Piet van Oostrum <piet@cs.ruu.nl>;;   ----- many enhancements thanks to the ange-ftp-lovers list;;   ----- further archie-mode functions, cleanup, by Rob Austein;;         ClearCase: archie.el@@/main/37;;         sites:     /ftp@sgigate.sgi.com:/pub/archie-aux/archie.el;;                    /ftp@alpha.gnu.ai.mit.edu:ange-ftp/archie.el;; ;; This file is not part of GNU Emacs but the same permissions apply.;; ;; GNU Emacs is free software; you can redistribute it and/or modify;; it under the terms of the GNU General Public License as published by;; the Free Software Foundation; either version 1, or (at your option);; any later version.;;;; GNU Emacs is distributed in the hope that it will be useful,;; but WITHOUT ANY WARRANTY; without even the implied warranty of;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the;; GNU General Public License for more details.;;;; You should have received a copy of the GNU General Public License;; along with GNU Emacs; see the file COPYING.  If not, write to;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.;;;;;; Usage:;;;; M-x archie creates a separate buffer from which you can find, copy;; or run dired on any of the entries (using ange-ftp) and redo the search;; with modified string and/or search-type.;; alternatively M-x archie creates a separate buffer in dired mode (q.v).;;;; Installation instructions:;;;; Install this file as archie.el somewhere in your load-path and add the;; following two lines to ~/.emacs. (without the semicolon's, of course);;;; (autoload 'archie "archie" "Archie interface" t);;;; You may have to change the value of archie-program and archie-server;; as appropriate for your site.;; archie-search-type and archie-download-directory can be modified;; to suit personal preferences.;;;; For use with this package, it is also convenient to set;;  (setq ange-ftp-generate-anonymous-password t);;;;  Also, the crypt package (available in the LCD archives) is useful;;  with archie-find-file, since most archive sites store their files;;  in a compressed form.;;;; LCD Archive Entry:;; archie|Sanjay R. Mathur|mathur@nas.nasa.gov;; |A mock-interface to the archie program.;; Wed Apr 22 22:31:46 1992|2.0||;;;; Customization variables(defvar archie-program "archie"  "Program that queries archie servers.")(defvar archie-server-list  '(("archie.funet.fi"      .  "128.214.6.100   (European server in Finland)")    ("archie.rutgers.edu"   .  "128.6.18.15     (Rutgers University)")    ("archie.sura.net"      .  "128.167.254.179 (SuraNet (Maryland, USA))")    ("archie.unl.edu"       .  "129.93.1.14     (University of Nebraska in Lincoln)")    ("archie.cs.huji.ac.il" .  "132.65.6.15     (Israel server)")    ("archie.au"            .  "139.130.4.6     (Australian server)")    ("archie.doc.ic.ac.uk"  .  "146.169.11.3    (UK/England server)")    ("archie.ans.net"       .  "147.225.1.2     (ANS archie server)")    ("archie.ncu.edu.tw"    .  "140.115.19.24   (Taiwanese server)")    ("archie.wide.ad.jp"    .  "133.4.3.6       (Japanese server)"))  "List of known archie servers.")(defvar archie-server nil   "*Server for \\[archie] searches.  If ``nil'' (the default), asks.Known archie servers are listed in archie-server-list.")(defvar archie-download-directory nil  "*Default directory into which any files copied by archie-copy arecopied. nil means to use /usr/tmp.")(defvar archie-search-type "exact"  "*Search type for \\[archie] searches.  (Used to set command-lineargument for archie program.)  See also archie-search-type-sticky.Can be one of:        exact                   for exact matches (-e) (default)        regexp                  for a regexp (-r)        substring               for substring searches (-c)         case-insensitive        for a case-insensitive substring search (-s)        exact-regexp            for an exact regexp (-er)        exact-substring         for an exact substring search (-es)        exact-case-insensitive  for exact case-insensitive search (-ec)        nil                     to ask every time")(defvar archie-search-type-sticky t  "*Once you specify a search type, should it be made the new default(new value of archie-search-type)?")(defvar archie-search-type-alist  ;; This is left as a defvar instead of defconst in case you don't like  ;; the keyword choice here, eg, you want "substring" to mean  ;; "case-insensitive-substring" (-s) as Allah clearly intended.  '(("substring" . "-c")    ("exact" . "-e")    ("regexp" . "-r")    ("case-insensitive" . "-s")    ("exact-substring" . "-ec")    ("exact-case-insensitive" . "-es")    ("exact-regexp" . "-er"))  "*Alist of search types for \\[archie] searches.")(defvar archie-internal-search-type-alist nil  "Internal version of archie-search-type-alist (includes switches, aswell as keywords).")(defun archie-search-type-alist ()  "Returns value of archie-internal-search-type-alist, updating it ifnecessary."  (if (eq archie-search-type-alist          (nthcdr (length archie-search-type-alist)                  archie-internal-search-type-alist))      archie-internal-search-type-alist    (setq archie-internal-search-type-alist          (nconc (mapcar (function (lambda (x) (cons (cdr x) (cdr x))))                         archie-search-type-alist)                 archie-search-type-alist))))(defvar archie-do-convert-to-dired nil  "*If t archie buffers are converted to dired-mode, otherwise archie-modeis used.")(defvar archie-search-hits "1000"  "*Maximum number of hits to ask for in search.")(defvar archie-window-management 'at-end  "*When should \\[archie] display the window with the answer?        'at-start       When the search is initiated        'at-end         When the result is ready        'both           Both        otherwise       Never")(defvar archie-server-preference-list nil  "*List of regexps for ordering archie results by server.  May beright-anchored with \"$\", e.g.:        '(\"erlangen\\.de$\"          \"tu-muenchen\\.de$\"          \"\\.de$\")")(defvar archie-dired-unusable-functions  (list   ;; Classic dired functions   'dired-backup-unflag   'dired-byte-recompile   'dired-chgrp   'dired-chmod   'dired-chown   'dired-clean-directory   'dired-compress   'dired-do-deletions   'dired-flag-auto-save-files   'dired-flag-backup-files   'dired-flag-file-deleted   'dired-rename-file   'dired-uncompress   ;;; Tree-dired functions   'dired-backup-diff   ;; 'dired-backup-unflag   'dired-clean-directory   ;; 'dired-create-directory   ;; 'dired-diff   'dired-do-byte-compile   'dired-do-chgrp   ;; 'dired-do-chmod   'dired-do-chown   'dired-do-compress   ;; 'dired-do-copy   ;; 'dired-do-copy-regexp   'dired-do-delete   'dired-do-flagged-delete   'dired-do-hardlink   'dired-do-hardlink-regexp   ;; 'dired-do-kill   'dired-do-load   ;; 'dired-do-move ; amounts to dired-do-copy   'dired-do-print   ;; 'dired-do-redisplay   'dired-do-rename-regexp   ;; 'dired-do-shell-command   ; not likely the command knows what to                                ; do with such a name, but what the hey   'dired-do-symlink   'dired-do-symlink-regexp   'dired-do-uncompress   'dired-downcase   ;; 'dired-find-file   ;; 'dired-find-file-other-window   'dired-flag-auto-save-files   'dired-flag-backup-files   'dired-flag-file-deleted   'dired-flag-regexp-files   'dired-hide-all              ; when ``i'' works ...   'dired-hide-subdir           ; when ``i'' works ...   ;; 'dired-kill-line-or-subdir   ;; 'dired-mark-directories   ;; 'dired-mark-executables   ;; 'dired-mark-files-regexp   ;; 'dired-mark-subdir-or-file   ;; 'dired-mark-symlinks   'dired-maybe-insert-subdir   ;; 'dired-next-dirline   ;; 'dired-next-line   ;; 'dired-next-marked-file   ;; 'dired-next-subdir   ;; 'dired-prev-dirline   ;; 'dired-prev-marked-file   ;; 'dired-prev-subdir   ;; 'dired-previous-line   ;; 'dired-quit   'dired-sort-toggle-or-edit   ;; 'dired-summary   ;; 'dired-tree-down   ;; 'dired-tree-up   ;; 'dired-undo   ;; 'dired-unflag-all-files   ;; 'dired-unmark-subdir-or-file   ;; 'dired-up-directory   'dired-upcase   ;; 'dired-view-file   ;; 'dired-why   ;; 'revert-buffer            ; replaced with archie-modify-query   )  "*List of dired functions that should be removed from thearchie-dired-mode keymap.")(defvar archie-mode-hook nil  "Hooks to run after entering archie (non-dired) mode.")(defvar archie-dired-mode-hook nil  "Hooks to run after entering archie-dired-mode.")(defvar archie-anonymous-ftp-username "anonymous"  "Username to use for \"anonymous\" FTP connections.Set to \"anonymous\" by default, since more sites accept that than anyother username (even \"ftp\", and no, not all machines in the worldthink they're synonyms).  For dired-mode archie, this only matters forhosts where you've got a non-anonymous username set.")(defvar archie-display-hook nil  "Hook run after displaying the results buffer.")(defvar archie-load-hook nil  "Hooks run after loading archie.el");; Variables you shouldn't have to customize(defvar archie-l-output "[0-9]*Z *[0-9]* *\\([^ ]*\\) *\\(.*$\\)"  "Regular expression matching the results of archie -l query. The   two subexpressions match the host-name and the path respectively.")(defvar archie-last-query nil)(defvar archie-last-type nil)(defvar archie-mode-map  (let ((map (make-sparse-keymap)))    (define-key map "f" 'archie-find-file)    (define-key map "a" 'archie-modify-query)    (define-key map "c" 'archie-copy)    (define-key map "x" 'convert-archie-to-dired)    (define-key map "d" 'archie-dired)    (define-key map "v" 'archie-view-file)    (define-key map "n" 'archie-next-line)    (define-key map "s" 'archie-change-server)    (define-key map " " 'archie-next-line)    (define-key map "\C-n" 'archie-next-line)    (define-key map "p" 'archie-previous-line)    (define-key map "\C-?" 'archie-previous-line)    (define-key map "\C-p" 'archie-previous-line)    map)  "Local keymap used when in archie (non-dired) mode.")(defvar archie-dired-mode-map nil  "Local keymap used when in archie-dired-mode.  Normally cloned fromdired-mode-map, after dired-mode-hook is run.")(defun archie (type string)  "Search (with style TYPE, or prompt if arg) for STRING on an Archieserver.TYPE is the type of search to make -- by default, it's`archie-search-type'.  Possible values are exact, substring (casesensitive), case-insensitive and regexp (a regular expression).Interactively, a prefix arg will make it prompt for this. Ifarchie-search-type is NIL, always prompts.  Ifarchie-search-type-sticky is non-nil, each specified value is used asthe next default; otherwise it reverts to archie-search-type.STRING is the string (or regexp) for which to search.If archie-do-convert-to-dired is non-NIL, the buffer is converted to adired buffer.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -