# HG changeset patch # User Dan Nicolaescu # Date 1195520230 0 # Node ID 4d615a83cee212748494545b35600106c5dab90d # Parent aab1a93c03caf1354adedf67a7ca25250f14ea7f * 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. diff -r aab1a93c03ca -r 4d615a83cee2 lisp/ChangeLog --- 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 + + * 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 * net/tramp.el (tramp-open-connection-setup-interactive-shell): diff -r aab1a93c03ca -r 4d615a83cee2 lisp/emacs-lisp/timer.el --- 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. diff -r aab1a93c03ca -r 4d615a83cee2 lisp/emulation/edt-vt100.el --- 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)) diff -r aab1a93c03ca -r 4d615a83cee2 lisp/emulation/edt.el --- 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 ;;; diff -r aab1a93c03ca -r 4d615a83cee2 lisp/emulation/vi.el --- 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), diff -r aab1a93c03ca -r 4d615a83cee2 lisp/emulation/viper-util.el --- 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. diff -r aab1a93c03ca -r 4d615a83cee2 lisp/progmodes/dcl-mode.el --- 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 () diff -r aab1a93c03ca -r 4d615a83cee2 lisp/progmodes/idlw-help.el --- 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." diff -r aab1a93c03ca -r 4d615a83cee2 lisp/progmodes/prolog.el --- 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. diff -r aab1a93c03ca -r 4d615a83cee2 lisp/textmodes/fill.el --- 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 diff -r aab1a93c03ca -r 4d615a83cee2 lisp/textmodes/reftex-dcr.el --- 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 diff -r aab1a93c03ca -r 4d615a83cee2 lisp/url/ChangeLog --- 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 + + * 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 * url-vars.el (url-vars-unload-hook): Remove function and variable. diff -r aab1a93c03ca -r 4d615a83cee2 lisp/url/url-file.el --- 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))) diff -r aab1a93c03ca -r 4d615a83cee2 lisp/url/url-http.el --- 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) diff -r aab1a93c03ca -r 4d615a83cee2 lisp/url/url-mailto.el --- 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." diff -r aab1a93c03ca -r 4d615a83cee2 lisp/url/url-privacy.el --- 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 ()