Karl Fogel [Fri, 7 Mar 2008 05:44:37 +0000 (05:44 +0000)]
Change a return type, for greater extensibility. See
http://lists.gnu.org/archive/html/emacs-devel/2007-12/msg01077.html
and its thread for discussion leading to this change.
* emacs-cvs/lisp/bookmark.el:
(bookmark-jump-noselect): Return an alist instead of a dotted pair.
(bookmark-jump, bookmark-jump-other-window, bookmark-insert)
(bookmark-bmenu-2-window, bookmark-bmenu-other-window)
(bookmark-bmenu-switch-other-window): Adjust accordingly.
(bookmark-make-cell-function): Adjust documentation accordingly.
* emacs-cvs/lisp/image-mode.el
(image-bookmark-jump): Adjust return type accordingly; document.
* emacs-cvs/lisp/doc-view.el
(doc-view-bookmark-jump): Adjust return type accordingly; document.
Glenn Morris [Fri, 7 Mar 2008 05:18:39 +0000 (05:18 +0000)]
Remove leading `*' from defcustom doc-strings.
(calendar-time-display-form, calendar-latitude)
(calendar-longitude, solar-equinoxes-solstices): Remove autoload cookies.
(calendar-latitude, calendar-longitude): Move functions after
variables.
(diary-sabbath-candles-minutes): Move to start.
(solar-setup): Use or rather than if.
(solar-sin-degrees, solar-cosine-degrees, solar-tangent-degrees):
Remove condition-case.
(solar-atn2): Use zerop.
(solar-equinoxes-solstices): Doc fix.
Stefan Monnier [Fri, 7 Mar 2008 05:00:18 +0000 (05:00 +0000)]
* bookmark.el (bookmark-map, bookmark-read-annotation-mode-map):
Move initialization into declaration.
(bookmark-get-info-node, bookmark-set-info-node): Remove.
(bookmark-make, bookmark-make-cell-for-text-file): Remove `info-node' arg.
(bookmark-info-current-node): Remove.
(bookmark-jump-noselect): Rename from bookmark-jump-internal.
Add relocation fallback. Set bookmark-current-bookmark.
(bookmark-default-handler): Rename from bookmark-jump-noselect.
Remove relocation fallback. Don't set bookmark-current-bookmark.
(bookmark-set): Let it be used even if there's no buffer-file-name
as long as there is a bookmark-make-cell-function.
* info.el (Info-bookmark-jump): Remove relocation fallback.
Don't set bookmark-current-bookmark.
Jason Rumney [Fri, 7 Mar 2008 00:45:44 +0000 (00:45 +0000)]
(w32_registry): Take font_type argument. Use ANSI
when charset not specified. Only translate ANSI to unicode when
font_type is truetype.
(w32font_coverage_ok): New function.
(add_font_entity_to_list): Use it to filter unsuitable fonts.
(org-export-html-style): Doc fix.
(org-get-legal-level): New obsolete alias.
(org-get-valid-level): Rename from `org-get-legal-level'.
(org-promote, org-demote, org-archive-subtree, org-remember-handler,
org-refile, org-put-clock-overlay): Use it.
(calendar-date-is-legal-p): New obsolete alias.
(calendar-date-is-valid-p): Rename from `calendar-date-is-legal-p'.
(calendar-date-is-visible-p, mark-visible-calendar-date): Use it.
Glenn Morris [Wed, 5 Mar 2008 20:02:58 +0000 (20:02 +0000)]
(USE_FONT_BACKEND): Set to "no" in absence of X.
(PKG_CONFIG): Don't set multiple times, once is enough.
(HAVE_FREETYPE, HAVE_LIBOTF, HAVE_M17N_FLT): Tweak config.in text.
Don't check for `cadr' and `last'.
(iswitchb-define-mode-map, iswitchb-default-keybindings):
Add obsolescence declaration and remove redundant info from docstring.
(iswitchb-set-common-completion, iswitchb-set-matches,
iswitchb-get-matched-buffers, iswitchb-visit-buffer): Use `let'.
(recentf-list, most-len, most-is-exact):
Don't wrap defvars within `eval-when-compile'.
Glenn Morris [Wed, 5 Mar 2008 08:53:30 +0000 (08:53 +0000)]
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
(ediff-select-lowest-window): Use when rather than if.
(ediff-setup-control-frame): Remove
ediff-cond-compile-for-xemacs-or-emacs, since it is already inside
a (featurep 'xemacs) test.
Glenn Morris [Wed, 5 Mar 2008 08:52:22 +0000 (08:52 +0000)]
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
(ediff-kill-bottom-toolbar): Place (ediff-use-toolbar-p) test inside
XEmacs test.
(ediff-make-bottom-toolbar): Place whole cond inside XEmacs test,
since it was doing nothing on Emacs.
(ediff-make-bullet-proof-overlay): Use when rather than if.
Glenn Morris [Wed, 5 Mar 2008 08:51:47 +0000 (08:51 +0000)]
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
(ediff-cond-compile-for-xemacs-or-emacs): Remove.
(top-level, ediff-frame-iconified-p): Simplify if+and to just and.
(ediff-read-event, ediff-overlayp, ediff-make-overlay, ediff-delete-overlay):
Move the XEmacs test inside the definition.
Glenn Morris [Wed, 5 Mar 2008 08:51:06 +0000 (08:51 +0000)]
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
(ediff-cond-compile-for-xemacs-or-emacs): Remove.
(ediff-window-setup-function): Don't autoload declaration for compiler.
(ediff-xemacs-init-menus): Use when rather than if.
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Define and
initialize in one step. Add :help. Use :enable to activate menu
items. Show the key binding for edebug-defun.
(lisp-interaction-mode-map): Add a menu.
* term.el (term-mode-map): Define and initialize in one step.
Jason Rumney [Tue, 4 Mar 2008 17:58:36 +0000 (17:58 +0000)]
* gmake.defs, nmake.defs (FONT_CFLAGS): New optional compiler flag.
(EMACS_EXTRA_C_FLAGS): Include it.
* configure.bat (usefontbackend): Default to Y.
(--enable-font-backend): Replace with --disable-font-backend.
(:withfont): Replace with :withoutfont.
Glenn Morris [Tue, 4 Mar 2008 03:52:22 +0000 (03:52 +0000)]
(top-level): No need to require gnus when compiling,
since unconditionally required near start of file.
(gnus-summary-display-while-building): Move definition before use.
Stefan Monnier [Mon, 3 Mar 2008 13:55:41 +0000 (13:55 +0000)]
(latex-mode): Remove % from paragraph-separate so that M-q can fill comments.
(tex-executable-exists-p, tex-compile): Extend with special syntax for
commands implemented in elisp.
(tex-compile-commands): Add an entry to use doc-view for pdf files.
(tex-format-cmd): New function.
(tex-compile): Use it to let the user specify default arguments.
(tex-cmd-bibtex-args): New var.
(tex-cmd-doc-view): New function.
Dan Nicolaescu [Mon, 3 Mar 2008 08:30:18 +0000 (08:30 +0000)]
(mode-line-column-line-number-mode-map): New variable.
(standard-mode-line-position): Use it to add a menu for toggling
column number and line number display.
Dan Nicolaescu [Mon, 3 Mar 2008 06:32:13 +0000 (06:32 +0000)]
* w32term.c: Remove unused include "gnu.h".
* makefile.w32-in (w32term.o): Don't depend on gnu.h
* gnu.h: Rename to ...
* emacs-icon.h: ... this.
* xterm.c: Use emacs-icon.h instead of gnu.h.
* Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
Stefan Monnier [Mon, 3 Mar 2008 04:06:03 +0000 (04:06 +0000)]
Use inhibit-read-only and with-current-buffer.
(gnus-summary-jump-to-group): Consider windows on other displayed frames as
well. Similar changes might be needed elsewhere, but that's the one I've
bumped into during my use.