aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-11-20 00:57:10 +0000
committerDan Nicolaescu2007-11-20 00:57:10 +0000
commit153ef845b8355e243c2adcf1ea52fb55636683d8 (patch)
tree6b99ed44cdb2c7375215d85698ebb115c4e24400
parentec6918a80feeee705679f5ca8b365e30a53c6a3d (diff)
downloademacs-153ef845b8355e243c2adcf1ea52fb55636683d8.tar.gz
emacs-153ef845b8355e243c2adcf1ea52fb55636683d8.zip
* progmodes/idlw-help.el: Require browse-url unconditionally, it
is available by default. (idlwave-help-browse-url-available): Change default to t. * emulation/edt.el (defgroup, defcustom): Remove definition. (eval-when-compile): Remove. (c-mark-function): * textmodes/reftex-dcr.el (bibtex-beginning-of-entry): * textmodes/fill.el (comment-search-forward) (comment-string-strip): * progmodes/prolog.el (comint-mode, comint-send-string) (comint-send-region, comint-send-eof): * progmodes/dcl-mode.el (imenu-default-create-index-function): * emulation/viper-util.el (viper-forward-Word): * emulation/vi.el (c-mark-function): * emulation/edt-vt100.el (vt100-wide-mode): * emacs-lisp/timer.el (diary-entry-time): Declare as functions. * url-mailto.el (mail-send-and-exit): * url-http.el (url-dav-file-attributes): * url-file.el (ange-ftp-set-passwd, ange-ftp-copy-file-internal): Declare as functions. * url-privacy.el (url-device-type): Define unconditionally.
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/emacs-lisp/timer.el3
-rw-r--r--lisp/emulation/edt-vt100.el2
-rw-r--r--lisp/emulation/edt.el34
-rw-r--r--lisp/emulation/vi.el2
-rw-r--r--lisp/emulation/viper-util.el2
-rw-r--r--lisp/progmodes/dcl-mode.el1
-rw-r--r--lisp/progmodes/idlw-help.el7
-rw-r--r--lisp/progmodes/prolog.el5
-rw-r--r--lisp/textmodes/fill.el4
-rw-r--r--lisp/textmodes/reftex-dcr.el2
-rw-r--r--lisp/url/ChangeLog9
-rw-r--r--lisp/url/url-file.el5
-rw-r--r--lisp/url/url-http.el2
-rw-r--r--lisp/url/url-mailto.el2
-rw-r--r--lisp/url/url-privacy.el7
16 files changed, 78 insertions, 29 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2aa2ba6575d..784c2d09da8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * progmodes/idlw-help.el: Require browse-url unconditionally, it
4 is available by default.
5 (idlwave-help-browse-url-available): Change default to t.
6
7 * emulation/edt.el (defgroup, defcustom): Remove definition.
8 (eval-when-compile): Remove.
9 (c-mark-function):
10 * textmodes/reftex-dcr.el (bibtex-beginning-of-entry):
11 * textmodes/fill.el (comment-search-forward)
12 (comment-string-strip):
13 * progmodes/prolog.el (comint-mode, comint-send-string)
14 (comint-send-region, comint-send-eof):
15 * progmodes/dcl-mode.el (imenu-default-create-index-function):
16 * emulation/viper-util.el (viper-forward-Word):
17 * emulation/vi.el (c-mark-function):
18 * emulation/edt-vt100.el (vt100-wide-mode):
19 * emacs-lisp/timer.el (diary-entry-time): Declare as functions.
20
12007-11-19 Michael Albinus <michael.albinus@gmx.de> 212007-11-19 Michael Albinus <michael.albinus@gmx.de>
2 22
3 * net/tramp.el (tramp-open-connection-setup-interactive-shell): 23 * net/tramp.el (tramp-open-connection-setup-interactive-shell):
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el
index 0fed5962fcb..023a4a3e4b7 100644
--- a/lisp/emacs-lisp/timer.el
+++ b/lisp/emacs-lisp/timer.el
@@ -356,6 +356,9 @@ This function is called, by name, directly by the C code."
356 "Non-nil if EVENT is a timeout event." 356 "Non-nil if EVENT is a timeout event."
357 (and (listp event) (eq (car event) 'timer-event))) 357 (and (listp event) (eq (car event) 'timer-event)))
358 358
359
360(declare-function diary-entry-time "../calendar/diary-lib" (s))
361
359;;;###autoload 362;;;###autoload
360(defun run-at-time (time repeat function &rest args) 363(defun run-at-time (time repeat function &rest args)
361 "Perform an action at time TIME. 364 "Perform an action at time TIME.
diff --git a/lisp/emulation/edt-vt100.el b/lisp/emulation/edt-vt100.el
index 4e094a5f703..fbe56c2c341 100644
--- a/lisp/emulation/edt-vt100.el
+++ b/lisp/emulation/edt-vt100.el
@@ -39,6 +39,8 @@
39;; The following functions are called by the EDT screen width commands defined 39;; The following functions are called by the EDT screen width commands defined
40;; in edt.el. 40;; in edt.el.
41 41
42(declare-function vt100-wide-mode "../term/vt100" (&optional arg))
43
42(defun edt-set-term-width-80 () 44(defun edt-set-term-width-80 ()
43 "Set terminal width to 80 columns." 45 "Set terminal width to 80 columns."
44 (vt100-wide-mode -1)) 46 (vt100-wide-mode -1))
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el
index 4a68e258cb1..d61ef9725f3 100644
--- a/lisp/emulation/edt.el
+++ b/lisp/emulation/edt.el
@@ -166,28 +166,23 @@
166;;;; VARIABLES and CONSTANTS 166;;;; VARIABLES and CONSTANTS
167;;;; 167;;;;
168 168
169;; For backward compatibility to Emacs 19.
170(or (fboundp 'defgroup)
171 (defmacro defgroup (&rest rest)))
172
173(defgroup edt nil 169(defgroup edt nil
174 "Emacs emulating EDT." 170 "Emacs emulating EDT."
175 :prefix "edt-" 171 :prefix "edt-"
176 :group 'emulations) 172 :group 'emulations)
177 173
178;; To silence the byte-compiler 174;; To silence the byte-compiler
179(eval-when-compile 175(defvar *EDT-keys*)
180 (defvar *EDT-keys*) 176(defvar edt-default-global-map)
181 (defvar edt-default-global-map) 177(defvar edt-last-copied-word)
182 (defvar edt-last-copied-word) 178(defvar edt-learn-macro-count)
183 (defvar edt-learn-macro-count) 179(defvar edt-orig-page-delimiter)
184 (defvar edt-orig-page-delimiter) 180(defvar edt-orig-transient-mark-mode)
185 (defvar edt-orig-transient-mark-mode) 181(defvar edt-rect-start-point)
186 (defvar edt-rect-start-point) 182(defvar edt-user-global-map)
187 (defvar edt-user-global-map) 183(defvar rect-start-point)
188 (defvar rect-start-point) 184(defvar time-string)
189 (defvar time-string) 185(defvar zmacs-region-stays)
190 (defvar zmacs-region-stays))
191 186
192;;; 187;;;
193;;; Version Information 188;;; Version Information
@@ -198,11 +193,6 @@
198;;; User Configurable Variables 193;;; User Configurable Variables
199;;; 194;;;
200 195
201;; For backward compatibility to Emacs 19.
202(or (fboundp 'defcustom)
203 (defmacro defcustom (var value doc &rest ignore)
204 `(defvar ,var ,value ,doc)))
205
206(defcustom edt-keep-current-page-delimiter nil 196(defcustom edt-keep-current-page-delimiter nil
207 "*Emacs MUST be restarted for a change in value to take effect! 197 "*Emacs MUST be restarted for a change in value to take effect!
208Non-nil leaves Emacs value of `page-delimiter' unchanged within EDT 198Non-nil leaves Emacs value of `page-delimiter' unchanged within EDT
@@ -1628,6 +1618,8 @@ Argument NUM is the percentage into the buffer to move."
1628 (indent-region (point) (mark) nil) 1618 (indent-region (point) (mark) nil)
1629 (fill-region (point) (mark)))) 1619 (fill-region (point) (mark))))
1630 1620
1621
1622(declare-function c-mark-function "../progmodes/cc-cmds" ())
1631;;; 1623;;;
1632;;; MARK SECTION WISELY 1624;;; MARK SECTION WISELY
1633;;; 1625;;;
diff --git a/lisp/emulation/vi.el b/lisp/emulation/vi.el
index 81ad04b60d9..889f81e75c7 100644
--- a/lisp/emulation/vi.el
+++ b/lisp/emulation/vi.el
@@ -1375,6 +1375,8 @@ The following CHAR will be the name for the command or macro."
1375 (setq char (read-char)) 1375 (setq char (read-char))
1376 (vi-ask-for-info char)))) 1376 (vi-ask-for-info char))))
1377 1377
1378(declare-function c-mark-function "../progmodes/cc-cmds" ())
1379
1378(defun vi-mark-region (arg region) 1380(defun vi-mark-region (arg region)
1379 "Mark region appropriately. The next char REGION is d(efun),s(-exp),b(uffer), 1381 "Mark region appropriately. The next char REGION is d(efun),s(-exp),b(uffer),
1380p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence), 1382p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence),
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index c757eb63aef..6a21fa17e31 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -380,6 +380,8 @@
380 380
381 381
382 382
383(declare-function viper-forward-Word "viper-cmd" (arg))
384
383;;; Support for :e, :r, :w file globbing 385;;; Support for :e, :r, :w file globbing
384 386
385;; Glob the file spec. 387;; Glob the file spec.
diff --git a/lisp/progmodes/dcl-mode.el b/lisp/progmodes/dcl-mode.el
index 6a3e9e82d6e..5df2c72b7e0 100644
--- a/lisp/progmodes/dcl-mode.el
+++ b/lisp/progmodes/dcl-mode.el
@@ -2201,6 +2201,7 @@ otherwise return nil."
2201 () 2201 ()
2202 (equal start (match-end 0)))))) 2202 (equal start (match-end 0))))))
2203 2203
2204(declare-function imenu-default-create-index-function "../imenu" ())
2204 2205
2205;;;------------------------------------------------------------------------- 2206;;;-------------------------------------------------------------------------
2206(defun dcl-imenu-create-index-function () 2207(defun dcl-imenu-create-index-function ()
diff --git a/lisp/progmodes/idlw-help.el b/lisp/progmodes/idlw-help.el
index 2269e179357..b599baa2893 100644
--- a/lisp/progmodes/idlw-help.el
+++ b/lisp/progmodes/idlw-help.el
@@ -42,13 +42,10 @@
42 42
43 43
44;;; Code: 44;;; Code:
45(defvar idlwave-help-browse-url-available nil 45(defvar idlwave-help-browse-url-available t
46 "Whether browse-url is available") 46 "Whether browse-url is available")
47 47
48(setq idlwave-help-browse-url-available 48(require 'browse-url)
49 (condition-case nil
50 (require 'browse-url)
51 (error nil)))
52 49
53(defgroup idlwave-online-help nil 50(defgroup idlwave-online-help nil
54 "Online Help options for IDLWAVE mode." 51 "Online Help options for IDLWAVE mode."
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index 3583f546754..190442bf26e 100644
--- a/lisp/progmodes/prolog.el
+++ b/lisp/progmodes/prolog.el
@@ -240,6 +240,11 @@ rigidly along with this one (not yet)."
240(defvar inferior-prolog-mode-syntax-table prolog-mode-syntax-table) 240(defvar inferior-prolog-mode-syntax-table prolog-mode-syntax-table)
241(defvar inferior-prolog-mode-abbrev-table prolog-mode-abbrev-table) 241(defvar inferior-prolog-mode-abbrev-table prolog-mode-abbrev-table)
242 242
243(declare-function comint-mode "../comint")
244(declare-function comint-send-string "../comint" (process string))
245(declare-function comint-send-region "../comint" (process start end))
246(declare-function comint-send-eof "../comint" ())
247
243(define-derived-mode inferior-prolog-mode comint-mode "Inferior Prolog" 248(define-derived-mode inferior-prolog-mode comint-mode "Inferior Prolog"
244 "Major mode for interacting with an inferior Prolog process. 249 "Major mode for interacting with an inferior Prolog process.
245 250
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 6a0eb7a42cc..cd60cf3bf34 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -831,6 +831,10 @@ in the active region."
831 (fill-region-as-paragraph beg end justify)))))) 831 (fill-region-as-paragraph beg end justify))))))
832 fill-pfx))) 832 fill-pfx)))
833 833
834(declare-function comment-search-forward "../newcomment" (limit &optional noerror))
835(declare-function comment-string-strip "../newcomment" (str beforep afterp))
836
837
834(defun fill-comment-paragraph (&optional justify) 838(defun fill-comment-paragraph (&optional justify)
835 "Fill current comment. 839 "Fill current comment.
836If we're not in a comment, just return nil so that the caller 840If we're not in a comment, just return nil so that the caller
diff --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el
index e1ecc885f69..86ad54a73fa 100644
--- a/lisp/textmodes/reftex-dcr.el
+++ b/lisp/textmodes/reftex-dcr.el
@@ -359,6 +359,8 @@ will display info in the echo area."
359 'reftex-view-crossref-when-idle 359 'reftex-view-crossref-when-idle
360 reftex-idle-time nil t)))) 360 reftex-idle-time nil t))))
361 361
362(declare-function bibtex-beginning-of-entry "bibtex" ())
363
362(defun reftex-view-crossref-from-bibtex (&optional arg) 364(defun reftex-view-crossref-from-bibtex (&optional arg)
363 "View location in a LaTeX document which cites the BibTeX entry at point. 365 "View location in a LaTeX document which cites the BibTeX entry at point.
364Since BibTeX files can be used by many LaTeX documents, this function 366Since BibTeX files can be used by many LaTeX documents, this function
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 93552c15ea9..56df401cb53 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,12 @@
12007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * url-mailto.el (mail-send-and-exit):
4 * url-http.el (url-dav-file-attributes):
5 * url-file.el (ange-ftp-set-passwd, ange-ftp-copy-file-internal):
6 Declare as functions.
7
8 * url-privacy.el (url-device-type): Define unconditionally.
9
12007-10-31 Juanma Barranquero <lekktu@gmail.com> 102007-10-31 Juanma Barranquero <lekktu@gmail.com>
2 11
3 * url-vars.el (url-vars-unload-hook): Remove function and variable. 12 * url-vars.el (url-vars-unload-hook): Remove function and variable.
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index c361016856b..9faee051f46 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -86,6 +86,11 @@ to them."
86 (error nil))) 86 (error nil)))
87 (apply func args)))) 87 (apply func args))))
88 88
89(declare-function ange-ftp-set-passwd "../net/ange-ftp" (host user passwd))
90(declare-function ange-ftp-copy-file-internal "../net/ange-ftp"
91 (filename newname ok-if-already-exists
92 keep-date &optional msg cont nowait))
93
89(defun url-file-build-filename (url) 94(defun url-file-build-filename (url)
90 (if (not (vectorp url)) 95 (if (not (vectorp url))
91 (setq url (url-generic-parse-url url))) 96 (setq url (url-generic-parse-url url)))
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index c5931c7d877..c8447dab859 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1269,6 +1269,8 @@ CBARGS as the arguments."
1269 nil nil nil) ;whether gid would change ; inode ; device. 1269 nil nil nil) ;whether gid would change ; inode ; device.
1270 (kill-buffer buffer))))) 1270 (kill-buffer buffer)))))
1271 1271
1272(declare-function url-dav-file-attributes (url &optional id-format))
1273
1272;;;###autoload 1274;;;###autoload
1273(defun url-http-file-attributes (url &optional id-format) 1275(defun url-http-file-attributes (url &optional id-format)
1274 (if (url-dav-supported-p url) 1276 (if (url-dav-supported-p url)
diff --git a/lisp/url/url-mailto.el b/lisp/url/url-mailto.el
index 4b15d07245b..5004c62415c 100644
--- a/lisp/url/url-mailto.el
+++ b/lisp/url/url-mailto.el
@@ -60,6 +60,8 @@
60 (save-excursion 60 (save-excursion
61 (insert "\n")))))) 61 (insert "\n"))))))
62 62
63(declare-function mail-send-and-exit "../mail/sendmail")
64
63;;;###autoload 65;;;###autoload
64(defun url-mailto (url) 66(defun url-mailto (url)
65 "Handle the mailto: URL syntax." 67 "Handle the mailto: URL syntax."
diff --git a/lisp/url/url-privacy.el b/lisp/url/url-privacy.el
index 6c29474752b..886e545ae7d 100644
--- a/lisp/url/url-privacy.el
+++ b/lisp/url/url-privacy.el
@@ -27,9 +27,10 @@
27(eval-when-compile (require 'cl)) 27(eval-when-compile (require 'cl))
28(require 'url-vars) 28(require 'url-vars)
29 29
30(if (fboundp 'device-type) 30(defun url-device-type (&optional device)
31 (defalias 'url-device-type 'device-type) 31 (if (fboundp 'device-type)
32 (defun url-device-type (&optional device) (or window-system 'tty))) 32 (url-device-type device)
33 (or window-system 'tty)))
33 34
34;;;###autoload 35;;;###autoload
35(defun url-setup-privacy-info () 36(defun url-setup-privacy-info ()