]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/idlw-help.el: Require browse-url unconditionally, it
authorDan Nicolaescu <dann@ics.uci.edu>
Tue, 20 Nov 2007 00:57:10 +0000 (00:57 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Tue, 20 Nov 2007 00:57:10 +0000 (00:57 +0000)
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.

16 files changed:
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

index 2aa2ba6575d59323ff947222c3421004db7a244a..784c2d09da84be4f2329bf9e22b43a6f16e96404 100644 (file)
@@ -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):
index 0fed5962fcbd45df134d9858c2555dd2b1c67603..023a4a3e4b7fe4f81cef7ecaad794bad87473cf1 100644 (file)
@@ -356,6 +356,9 @@ This function is called, by name, directly by the C code."
   "Non-nil if EVENT is a timeout event."
   (and (listp event) (eq (car event) 'timer-event)))
 \f
+
+(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.
index 4e094a5f70358e82d5908ec14dd1ef659b9c85f5..fbe56c2c341be84ef74d1832f5043822f7610676 100644 (file)
@@ -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))
index 4a68e258cb134c09dead0888a7640a5849c60e45..d61ef9725f3b5f5dd791adee3ffa38366829288a 100644 (file)
 ;;;; 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
 ;;;  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 @@ Argument NUM is the percentage into the buffer to move."
       (indent-region (point) (mark) nil)
     (fill-region (point) (mark))))
 
+
+(declare-function c-mark-function "../progmodes/cc-cmds" ())
 ;;;
 ;;; MARK SECTION WISELY
 ;;;
index 81ad04b60d9f828ff8f6a7d2d77d88845a791209..889f81e75c7d867228c6b223b6eb8d98c316f3ad 100644 (file)
@@ -1375,6 +1375,8 @@ The following CHAR will be the name for the command or macro."
           (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),
index c757eb63aef8e5e196778669fc29a93aa96dba43..6a21fa17e31da78d1fc3f51d6b0081fcc015d7fc 100644 (file)
 
 
 \f
+(declare-function viper-forward-Word "viper-cmd" (arg))
+
 ;;; Support for :e, :r, :w file globbing
 
 ;; Glob the file spec.
index 6a3e9e82d6e6a41f60f425e2ada080db4704f9ae..5df2c72b7e0dff54cec85a2ce3edd4c537f638ae 100644 (file)
@@ -2201,6 +2201,7 @@ otherwise return nil."
           ()
         (equal start (match-end 0))))))
 
+(declare-function imenu-default-create-index-function "../imenu" ())
 
 ;;;-------------------------------------------------------------------------
 (defun dcl-imenu-create-index-function ()
index 2269e17935785c515f9f31f632751a2ebc740207..b599baa28938837d92588007d55a2ba463949684 100644 (file)
 
 
 ;;; 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."
index 3583f54675451a400fa4a15ebc0ad7088af7b564..190442bf26ea50dbbea8f733cde038c3fde3d680 100644 (file)
@@ -240,6 +240,11 @@ rigidly along with this one (not yet)."
 (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.
 
index 6a0eb7a42cc0f6b71070c32a8386cf24bcb60342..cd60cf3bf34867417b8ec3b9c79d9dff8dbd1606 100644 (file)
@@ -831,6 +831,10 @@ in the active region."
                   (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
index e1ecc885f69df5a5eb9514cb1264c56bd86fb34e..86ad54a73fa7b2bb5a1d036c0901afa7c7e8f100 100644 (file)
@@ -359,6 +359,8 @@ will display info in the echo area."
                             '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
index 93552c15ea9ebaa6f9069af7fdecf62c49d6f1f8..56df401cb53461bbc279f9c50e7bfcd85006d37e 100644 (file)
@@ -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.
index c361016856b26c7d26a93c5399a224ea7b57d931..9faee051f466b2db3919b52a28797c1fd2ea30ef 100644 (file)
@@ -86,6 +86,11 @@ to them."
            (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)))
index c5931c7d877e146df1dac3ffc9b315627abcea08..c8447dab8595df2afab7f62978eb420676709838 100644 (file)
@@ -1269,6 +1269,8 @@ CBARGS as the arguments."
            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)
index 4b15d07245b0155786779c6fe169b4965da1a55c..5004c62415c358e36c016bed715f45a39650804e 100644 (file)
@@ -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."
index 6c29474752b3b248d7d7f8e1afe646ebf2695042..886e545ae7d55ae82beae5cecd604e7ce7156248 100644 (file)
 (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 ()