annotate lisp/w3/docomp.el @ 102:a145efe76779 r20-1b3

Import from CVS: tag r20-1b3
author cvs
date Mon, 13 Aug 2007 09:15:49 +0200
parents 0d2f883870bc
children 360340f9fd5f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 (setq load-path (append (list (expand-file-name "./")
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
2 (or (getenv "WIDGETDIR")
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
3 (expand-file-name "../widget"))
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
4 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 load-path))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
7 (setq max-specpdl-size (* 10 max-specpdl-size)
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
8 max-lisp-eval-depth (* 10 max-lisp-eval-depth))
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
9
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
10 (defun hack-dot-emacs ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
11 (interactive)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
12 (let* ((args command-line-args-left)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
13 (fname (expand-file-name (nth 0 args)))
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
14 (lispdir (nth 1 args)))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
15 (setq command-line-args-left (cdr (cdr (cdr command-line-args-left))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
16 (set-buffer (get-buffer-create " *x*"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
17 (erase-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
18 (if (file-exists-p fname)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
19 (insert-file-contents fname))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
20 (goto-char (point-min))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
21 (if (search-forward ";;; Emacs-w3 configuration options" nil t)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
22 (message "No changes made.")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
23 (goto-char (point-max))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
24 (insert "\n;;; Emacs-w3 configuration options\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
25 (insert "(setq load-path (cons (expand-file-name \""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
26 lispdir "\") load-path))\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
27 (insert "(autoload 'w3-preview-this-buffer \"w3\" \"WWW Previewer\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
28 (insert "(autoload 'w3-follow-url-at-point \"w3\" \"Find document at pt\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
29 (insert "(autoload 'w3 \"w3\" \"WWW Browser\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
30 (insert "(autoload 'w3-open-local \"w3\" \"Open local file for WWW browsing\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
31 (insert "(autoload 'w3-fetch \"w3\" \"Open remote file for WWW browsing\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
32 (insert "(autoload 'w3-use-hotlist \"w3\" \"Use shortcuts to view WWW docs\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
33 (insert "(autoload 'w3-show-hotlist \"w3\" \"Use shortcuts to view WWW docs\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
34 (insert "(autoload 'w3-follow-link \"w3\" \"Follow a hypertext link.\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
35 (insert "(autoload 'w3-batch-fetch \"w3\" \"Batch retrieval of URLs\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
36 (insert "(autoload 'url-get-url-at-point \"url\" \"Find the url under the cursor\" nil)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
37 (insert "(autoload 'url-file-attributes \"url\" \"File attributes of a URL\" nil)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
38 (insert "(autoload 'url-popup-info \"url\" \"Get info on a URL\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
39 (insert "(autoload 'url-retrieve \"url\" \"Retrieve a URL\" nil)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
40 (insert "(autoload 'url-buffer-visiting \"url\" \"Find buffer visiting a URL.\" nil)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
41 (insert "(autoload 'gopher-dispatch-object \"gopher\" \"Fetch gopher dir\" t)\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
42 (insert ";;; End of Emacs-w3 configuration options\n")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
43 (write-file fname))))
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
44
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defun w3-declare-variables (&rest args)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (while args
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (eval (list 'defvar (car args) nil ""))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (setq args (cdr args))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;; For Emacs 19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (w3-declare-variables 'track-mouse 'menu-bar-help-menu 'menu-bar-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;; For XEmacs/Lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (w3-declare-variables 'current-menubar 'default-menubar 'extent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 'mode-motion-hook 'mode-popup-menu 'sound-alist
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
56 'menubar-visible-p
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 'inhibit-help-echo 'default-toolbar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 'bottom-toolbar-height 'top-toolbar-height
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 'toolbar-buttons-captioned-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 'right-toolbar-width 'left-toolbar-width
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 'top-toolbar 'bottom-toolbar 'right-toolbar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 'left-toolbar 'device-fonts-cache
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 'has-modeline-p 'baud-rate)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ;; For MULE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (w3-declare-variables '*noconv* '*autoconv* '*euc-japan* '*internal*
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
67 'w3-mime-list-for-code-conversion 'lc-ltn1
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
68 'mule-version 'enable-multibyte-characters
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
69 'charset-latin-iso8859-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 'file-coding-system-for-read 'file-coding-system)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;; For NNTP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (w3-declare-variables 'nntp-server-buffer 'nntp-server-process 'nntp/connection
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 'gnus-nntp-server 'nntp-server-name 'nntp-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 'gnus-default-nntp-server)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ;; For xpm-button
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (w3-declare-variables 'x-library-search-path)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ;; For emacspeak
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (w3-declare-variables 'dtk-voice-table 'dtk-punctuation-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
83 ;; For a few internal things
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (w3-declare-variables 'tag 'w3-working-buffer 'proxy-info 'args
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
85 'w3-image-widgets-waiting 'w3-form-info
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 'w3-last-parse-tree 'command-line-args-left
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 'standard-display-table 'w3-html-bookmarks
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
88 'browse-url-browser-function 'widget-keymap)
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
89
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
90 ;; GNUS
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
91 (w3-declare-variables 'gnus-group-buffer 'gnus-version)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (load "bytecomp" t t nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ;; Emacs 19 byte compiler complains about too much stuff by default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ;; Turn off most of the warnings here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (setq byte-compile-warnings '(free-vars))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (require 'w3-vars)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (require 'url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (require 'mm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (and w3-running-FSF19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (< emacs-minor-version 29)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (require 'font))
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 80
diff changeset
104
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
105 (require 'w3-sysdp)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (provide 'ange-ftp)