changeset 86243:4d615a83cee2

* 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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 20 Nov 2007 00:57:10 +0000
parents aab1a93c03ca
children d6eda104caa6
files lisp/ChangeLog lisp/emacs-lisp/timer.el lisp/emulation/edt-vt100.el lisp/emulation/edt.el lisp/emulation/vi.el lisp/emulation/viper-util.el lisp/progmodes/dcl-mode.el lisp/progmodes/idlw-help.el lisp/progmodes/prolog.el lisp/textmodes/fill.el lisp/textmodes/reftex-dcr.el lisp/url/ChangeLog lisp/url/url-file.el lisp/url/url-http.el lisp/url/url-mailto.el lisp/url/url-privacy.el
diffstat 16 files changed, 78 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/ChangeLog	Tue Nov 20 00:57:10 2007 +0000
@@ -1,3 +1,23 @@
+2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* 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.
+
 2007-11-19  Michael Albinus  <michael.albinus@gmx.de>
 
 	* net/tramp.el (tramp-open-connection-setup-interactive-shell):
--- a/lisp/emacs-lisp/timer.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/emacs-lisp/timer.el	Tue Nov 20 00:57:10 2007 +0000
@@ -356,6 +356,9 @@
   "Non-nil if EVENT is a timeout event."
   (and (listp event) (eq (car event) 'timer-event)))
 
+
+(declare-function diary-entry-time "../calendar/diary-lib" (s))
+
 ;;;###autoload
 (defun run-at-time (time repeat function &rest args)
   "Perform an action at time TIME.
--- a/lisp/emulation/edt-vt100.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/emulation/edt-vt100.el	Tue Nov 20 00:57:10 2007 +0000
@@ -39,6 +39,8 @@
 ;; The following functions are called by the EDT screen width commands defined
 ;; in edt.el.
 
+(declare-function vt100-wide-mode "../term/vt100" (&optional arg))
+
 (defun edt-set-term-width-80 ()
   "Set terminal width to 80 columns."
   (vt100-wide-mode -1))
--- a/lisp/emulation/edt.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/emulation/edt.el	Tue Nov 20 00:57:10 2007 +0000
@@ -166,28 +166,23 @@
 ;;;; VARIABLES and CONSTANTS
 ;;;;
 
-;; For backward compatibility to Emacs 19.
-(or (fboundp 'defgroup)
-    (defmacro defgroup (&rest rest)))
-
 (defgroup edt nil
   "Emacs emulating EDT."
   :prefix "edt-"
   :group 'emulations)
 
 ;; To silence the byte-compiler
-(eval-when-compile
-  (defvar *EDT-keys*)
-  (defvar edt-default-global-map)
-  (defvar edt-last-copied-word)
-  (defvar edt-learn-macro-count)
-  (defvar edt-orig-page-delimiter)
-  (defvar edt-orig-transient-mark-mode)
-  (defvar edt-rect-start-point)
-  (defvar edt-user-global-map)
-  (defvar rect-start-point)
-  (defvar time-string)
-  (defvar zmacs-region-stays))
+(defvar *EDT-keys*)
+(defvar edt-default-global-map)
+(defvar edt-last-copied-word)
+(defvar edt-learn-macro-count)
+(defvar edt-orig-page-delimiter)
+(defvar edt-orig-transient-mark-mode)
+(defvar edt-rect-start-point)
+(defvar edt-user-global-map)
+(defvar rect-start-point)
+(defvar time-string)
+(defvar zmacs-region-stays)
 
 ;;;
 ;;;  Version Information
@@ -198,11 +193,6 @@
 ;;;  User Configurable Variables
 ;;;
 
-;; For backward compatibility to Emacs 19.
-(or (fboundp 'defcustom)
-    (defmacro defcustom (var value doc &rest ignore)
-      `(defvar ,var ,value ,doc)))
-
 (defcustom edt-keep-current-page-delimiter nil
   "*Emacs MUST be restarted for a change in value to take effect!
 Non-nil leaves Emacs value of `page-delimiter' unchanged within EDT
@@ -1628,6 +1618,8 @@
       (indent-region (point) (mark) nil)
     (fill-region (point) (mark))))
 
+
+(declare-function c-mark-function "../progmodes/cc-cmds" ())
 ;;;
 ;;; MARK SECTION WISELY
 ;;;
--- a/lisp/emulation/vi.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/emulation/vi.el	Tue Nov 20 00:57:10 2007 +0000
@@ -1375,6 +1375,8 @@
 	   (setq char (read-char))
 	   (vi-ask-for-info char))))
 
+(declare-function c-mark-function "../progmodes/cc-cmds" ())
+
 (defun vi-mark-region (arg region)
   "Mark region appropriately.  The next char REGION is d(efun),s(-exp),b(uffer),
 p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence),
--- a/lisp/emulation/viper-util.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/emulation/viper-util.el	Tue Nov 20 00:57:10 2007 +0000
@@ -380,6 +380,8 @@
 
 
 
+(declare-function viper-forward-Word "viper-cmd" (arg))
+
 ;;; Support for :e, :r, :w file globbing
 
 ;; Glob the file spec.
--- a/lisp/progmodes/dcl-mode.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/progmodes/dcl-mode.el	Tue Nov 20 00:57:10 2007 +0000
@@ -2201,6 +2201,7 @@
           ()
         (equal start (match-end 0))))))
 
+(declare-function imenu-default-create-index-function "../imenu" ())
 
 ;;;-------------------------------------------------------------------------
 (defun dcl-imenu-create-index-function ()
--- a/lisp/progmodes/idlw-help.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/progmodes/idlw-help.el	Tue Nov 20 00:57:10 2007 +0000
@@ -42,13 +42,10 @@
 
 
 ;;; Code:
-(defvar idlwave-help-browse-url-available nil
+(defvar idlwave-help-browse-url-available t
   "Whether browse-url is available")
 
-(setq idlwave-help-browse-url-available
-      (condition-case nil
-	  (require 'browse-url)
-	(error nil)))
+(require 'browse-url)
 
 (defgroup idlwave-online-help nil
   "Online Help options for IDLWAVE mode."
--- a/lisp/progmodes/prolog.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/progmodes/prolog.el	Tue Nov 20 00:57:10 2007 +0000
@@ -240,6 +240,11 @@
 (defvar inferior-prolog-mode-syntax-table prolog-mode-syntax-table)
 (defvar inferior-prolog-mode-abbrev-table prolog-mode-abbrev-table)
 
+(declare-function comint-mode "../comint")
+(declare-function comint-send-string "../comint" (process string))
+(declare-function comint-send-region "../comint" (process start end))
+(declare-function comint-send-eof "../comint" ())
+
 (define-derived-mode inferior-prolog-mode comint-mode "Inferior Prolog"
   "Major mode for interacting with an inferior Prolog process.
 
--- a/lisp/textmodes/fill.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/textmodes/fill.el	Tue Nov 20 00:57:10 2007 +0000
@@ -831,6 +831,10 @@
 		   (fill-region-as-paragraph beg end justify))))))
      fill-pfx)))
 
+(declare-function comment-search-forward "../newcomment" (limit &optional noerror))
+(declare-function comment-string-strip "../newcomment" (str beforep afterp))
+
+
 (defun fill-comment-paragraph (&optional justify)
   "Fill current comment.
 If we're not in a comment, just return nil so that the caller
--- a/lisp/textmodes/reftex-dcr.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/textmodes/reftex-dcr.el	Tue Nov 20 00:57:10 2007 +0000
@@ -359,6 +359,8 @@
                             'reftex-view-crossref-when-idle 
                             reftex-idle-time nil t))))
 
+(declare-function bibtex-beginning-of-entry "bibtex" ())
+
 (defun reftex-view-crossref-from-bibtex (&optional arg)
   "View location in a LaTeX document which cites the BibTeX entry at point.
 Since BibTeX files can be used by many LaTeX documents, this function
--- a/lisp/url/ChangeLog	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/url/ChangeLog	Tue Nov 20 00:57:10 2007 +0000
@@ -1,3 +1,12 @@
+2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* 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.
+
 2007-10-31  Juanma Barranquero  <lekktu@gmail.com>
 
 	* url-vars.el (url-vars-unload-hook): Remove function and variable.
--- a/lisp/url/url-file.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/url/url-file.el	Tue Nov 20 00:57:10 2007 +0000
@@ -86,6 +86,11 @@
 	    (error nil)))
       (apply func args))))
 
+(declare-function ange-ftp-set-passwd "../net/ange-ftp" (host user passwd))
+(declare-function ange-ftp-copy-file-internal "../net/ange-ftp"
+		  (filename newname ok-if-already-exists
+			    keep-date &optional msg cont nowait))
+
 (defun url-file-build-filename (url)
   (if (not (vectorp url))
       (setq url (url-generic-parse-url url)))
--- a/lisp/url/url-http.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/url/url-http.el	Tue Nov 20 00:57:10 2007 +0000
@@ -1269,6 +1269,8 @@
            nil nil nil)          ;whether gid would change ; inode ; device.
         (kill-buffer buffer)))))
 
+(declare-function url-dav-file-attributes (url &optional id-format))
+
 ;;;###autoload
 (defun url-http-file-attributes (url &optional id-format)
   (if (url-dav-supported-p url)
--- a/lisp/url/url-mailto.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/url/url-mailto.el	Tue Nov 20 00:57:10 2007 +0000
@@ -60,6 +60,8 @@
 	(save-excursion
 	  (insert "\n"))))))
 
+(declare-function mail-send-and-exit "../mail/sendmail")
+
 ;;;###autoload
 (defun url-mailto (url)
   "Handle the mailto: URL syntax."
--- a/lisp/url/url-privacy.el	Tue Nov 20 00:40:35 2007 +0000
+++ b/lisp/url/url-privacy.el	Tue Nov 20 00:57:10 2007 +0000
@@ -27,9 +27,10 @@
 (eval-when-compile (require 'cl))
 (require 'url-vars)
 
-(if (fboundp 'device-type)
-    (defalias 'url-device-type 'device-type)
-  (defun url-device-type (&optional device) (or window-system 'tty)))
+(defun url-device-type (&optional device)
+  (if (fboundp 'device-type)
+      (url-device-type device)
+    (or window-system 'tty)))
 
 ;;;###autoload
 (defun url-setup-privacy-info ()