Mercurial > emacs
annotate lisp/pcmpl-linux.el @ 57856:df80d19d7a2e
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-660
Merge from gnus--rel--5.10
Patches applied:
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-65
Update from CVS
2004-11-01 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-msg.el (gnus-summary-resend-default-address): Add :version.
* lisp/gnus/tls.el (tls-process-connection-type, tls-success)
(tls-certtool-program): Add :version.
* lisp/gnus/starttls.el (starttls-gnutls-program, starttls-use-gnutls)
(starttls-extra-arguments, starttls-process-connection-type)
(starttls-connect, starttls-failure, starttls-success):
* lisp/gnus/spam-stat.el (spam-stat): Add :version.
* lisp/gnus/sieve.el (sieve): Add :version.
* lisp/gnus/sha1.el (sha1): Added :version.
(sha1-use-external): Removed redundant version.
* lisp/gnus/nnmail.el (nnmail-split-fancy-with-parent-ignore-groups)
(nnmail-cache-ignore-groups, nnmail-spool-hook)
(nnmail-split-fancy-match-partial-words)
(nnmail-split-lowercase-expanded):
* lisp/gnus/nndiary.el (nndiary): Add :version.
* lisp/gnus/mml2015.el (mml2015-unabbrev-trust-alist): Add :version.
* lisp/gnus/mml-sec.el (mml-default-sign-method)
(mml-default-encrypt-method, mml-signencrypt-style-alist): Add
:version.
* lisp/gnus/mm-uu.el (mm-uu-diff-groups-regexp): Add :version.
* lisp/gnus/mm-url.el (mm-url-use-external, mm-url-program)
(mm-url-arguments): Add :version.
* lisp/gnus/mm-decode.el (mm-inline-text-html-with-w3m-keymap)
(mm-attachment-file-modes, mm-decrypt-option)
(mm-w3m-safe-url-regexp): Add :version.
* lisp/gnus/message.el (message-cite-prefix-regexp)
(message-sendmail-envelope-from, message-minibuffer-local-map)
(message-user-fqdn, message-completion-alist): Add :version.
* lisp/gnus/gnus-win.el (gnus-configure-windows-hook)
(gnus-use-frames-on-any-display): Add :version.
* lisp/gnus/gnus-art.el (gnus-article-address-banner-alist)
(gnus-treat-unsplit-urls, gnus-treat-unfold-headers)
(gnus-treat-from-picon, gnus-treat-mail-picon)
(gnus-treat-x-pgp-sig): Add :version.
* lisp/gnus/gnus-sum.el (gnus-spam-mark, gnus-recent-mark)
(gnus-undownloaded-mark, gnus-summary-article-move-hook)
(gnus-summary-article-delete-hook)
(gnus-summary-display-while-building): Add :version.
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-hooks)
(gnus-get-top-new-news-hook):Add :version.
* lisp/gnus/gnus-srvr.el (gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face): Add :version.
* lisp/gnus/gnus-registry.el (gnus-registry): Add :version.
* lisp/gnus/gnus-spec.el (gnus-use-correct-string-widths)
(gnus-make-format-preserve-properties): Add :version.
* lisp/gnus/gnus.el (gnus-group-charter-alist)
(gnus-group-fetch-control-use-browse-url)
(gnus-install-group-spam-parameters): Add :version.
* lisp/gnus/gnus-diary.el (gnus-diary): Add :version.
* lisp/gnus/gnus-delay.el (gnus-delay): Add :version.
* lisp/gnus/gnus-cite.el (gnus-cite-unsightly-citation-regexp)
(gnus-cite-ignore-quoted-from, gnus-cite-attribution-face)
(gnus-cite-blank-line-after-header, gnus-article-boring-faces):
Add :version.
* lisp/gnus/gnus-agent.el (gnus-agent-max-fetch-size)
(gnus-agent-enable-expiration, gnus-agent-queue-mail)
(gnus-agent-prompt-send-queue): Add :version.
* lisp/gnus/deuglify.el (gnus-outlook-deuglify): Add :version.
* lisp/gnus/html2text.el: Beautify code. Improve doc strings. Some checkdoc
cleanup.
(html2text-get-attr, html2text-fix-paragraph): Simplify code.
(html2text-format-tag-list): Added "strong" and "em". From
"Alfred M. Szmidt" <ams@kemisten.nu> (tiny change).
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 01 Nov 2004 23:06:36 +0000 |
parents | 695cf19ef79e |
children | 6fb026ad601f 375f2633d815 |
rev | line source |
---|---|
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
34718
diff
changeset
|
1 ;;; pcmpl-linux.el --- functions for dealing with GNU/Linux completions |
29959 | 2 |
3 ;; Copyright (C) 1999, 2000 Free Software Foundation | |
4 | |
5 ;; This file is part of GNU Emacs. | |
6 | |
7 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
8 ;; it under the terms of the GNU General Public License as published by | |
9 ;; the Free Software Foundation; either version 2, or (at your option) | |
10 ;; any later version. | |
11 | |
12 ;; GNU Emacs is distributed in the hope that it will be useful, | |
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 ;; GNU General Public License for more details. | |
16 | |
17 ;; You should have received a copy of the GNU General Public License | |
18 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
19 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 ;; Boston, MA 02111-1307, USA. | |
21 | |
22 ;;; Commentary: | |
23 | |
24 ;; These functions are for use with GNU/Linux. Since they depend on a | |
25 ;; certain knowledge of the layout of such systems, they probably | |
26 ;; won't work very well on other operating systems. | |
27 | |
28 ;;; Code: | |
29 | |
30 (provide 'pcmpl-linux) | |
31 | |
32 (require 'pcomplete) | |
33 | |
34 (defgroup pcmpl-linux nil | |
35 "Functions for dealing with GNU/Linux completions." | |
36 :group 'pcomplete) | |
37 | |
38 ;; Functions: | |
39 | |
40 ;;;###autoload | |
41 (defun pcomplete/kill () | |
42 "Completion for GNU/Linux `kill', using /proc filesystem." | |
43 (if (pcomplete-match "^-\\(.*\\)" 0) | |
44 (pcomplete-here | |
45 (pcomplete-uniqify-list | |
46 (split-string | |
47 (pcomplete-process-result "kill" "-l"))) | |
48 (pcomplete-match-string 1 0))) | |
49 (while (pcomplete-here | |
50 (if (file-directory-p "/proc") | |
51 (let ((default-directory "/proc/")) | |
52 (mapcar 'directory-file-name | |
53 (pcomplete-entries "[0-9]+/$")))) | |
54 nil 'identity))) | |
55 | |
56 ;;;###autoload | |
57 (defun pcomplete/umount () | |
58 "Completion for GNU/Linux `umount'." | |
59 (pcomplete-opt "hVafrnvt(pcmpl-linux-fs-types)") | |
60 (while (pcomplete-here (pcmpl-linux-mounted-directories) | |
61 nil 'identity))) | |
62 | |
63 ;;;###autoload | |
64 (defun pcomplete/mount () | |
65 "Completion for GNU/Linux `mount'." | |
66 (pcomplete-opt "hVanfFrsvwt(pcmpl-linux-fs-types)o?L?U?") | |
67 (while (pcomplete-here (pcomplete-entries) nil 'identity))) | |
68 | |
69 (defun pcmpl-linux-fs-types () | |
70 "Return a list of available fs modules on GNU/Linux systems." | |
71 (let ((kernel-ver (pcomplete-process-result "uname" "-r"))) | |
72 (mapcar | |
73 (function | |
74 (lambda (fsobj) | |
75 (substring fsobj 0 (- (length fsobj) 2)))) | |
76 (let ((default-directory | |
77 (concat "/lib/modules/" kernel-ver "/fs/"))) | |
78 (pcomplete-entries "\\.o$"))))) | |
79 | |
80 (defun pcmpl-linux-mounted-directories () | |
81 "Return a list of mounted directory names." | |
82 (let (points) | |
83 (when (file-readable-p "/etc/mtab") | |
84 (with-temp-buffer | |
85 (insert-file-contents-literally "/etc/mtab") | |
86 (while (not (eobp)) | |
87 (let* ((line (buffer-substring (point) (line-end-position))) | |
88 (args (split-string line " "))) | |
89 (setq points (cons (nth 1 args) points))) | |
90 (forward-line))) | |
91 (pcomplete-uniqify-list points)))) | |
92 | |
93 (defun pcmpl-linux-mountable-directories () | |
94 "Return a list of mountable directory names." | |
95 (let (points) | |
96 (when (file-readable-p "/etc/fstab") | |
97 (with-temp-buffer | |
98 (insert-file-contents-literally "/etc/fstab") | |
99 (while (not (eobp)) | |
100 (let* ((line (buffer-substring (point) (line-end-position))) | |
101 (args (split-string line "\\s-+"))) | |
102 (setq points (cons (nth 1 args) points))) | |
103 (forward-line))) | |
104 (pcomplete-pare-list | |
105 (pcomplete-uniqify-list points) | |
106 (cons "swap" (pcmpl-linux-mounted-directories)))))) | |
107 | |
52401 | 108 ;;; arch-tag: bb0961a6-a623-463d-92c6-497c317293b1 |
29959 | 109 ;;; pcmpl-linux.el ends here |