Commit 153ef845 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

* 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.
parent ec6918a8
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):
......
......@@ -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)))
(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.
......
......@@ -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))
......
......@@ -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 @@ 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
;;;
......
......@@ -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),
......
......@@ -380,6 +380,8 @@
(declare-function viper-forward-Word "viper-cmd" (arg))
;;; Support for :e, :r, :w file globbing
;; Glob the file spec.
......
......@@ -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 ()
......
......@@ -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."
......
......@@ -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.
......
......@@ -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
......
......@@ -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
......
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.
......
......@@ -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)))
......
......@@ -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)
......
......@@ -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."
......
......@@ -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 ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment