bpt/emacs.git
13 years ago* lisp/Makefile.in (compile-clean): Use `` instead of $().
Rainer Orth [Wed, 13 Oct 2010 03:23:47 +0000 (20:23 -0700)]
* lisp/Makefile.in (compile-clean): Use `` instead of $().
(Former is more portable than the latter.)

Fixes: debbugs:7178

13 years agoTidy some nextstep README etc files.
Glenn Morris [Wed, 13 Oct 2010 03:17:59 +0000 (20:17 -0700)]
Tidy some nextstep README etc files.

* nextstep/README: Move historical information to new file ../etc/NEXTSTEP.
* nextstep/AUTHORS: Merge into ./etc/NEXTSTEP and remove file.

* etc/NEXTSTEP: New file, extracted from ../nextstep/{AUTHORS,README}.

* make-dist: No more nextstep/AUTHORS.

13 years ago* nextstep/README: Remove information duplicated in AUTHORS.
Glenn Morris [Wed, 13 Oct 2010 03:11:55 +0000 (20:11 -0700)]
* nextstep/README: Remove information duplicated in AUTHORS.

13 years ago* nextstep/AUTHORS: Remove email addresses.
Glenn Morris [Wed, 13 Oct 2010 03:11:08 +0000 (20:11 -0700)]
* nextstep/AUTHORS: Remove email addresses.

13 years agoMore make-dist simplification.
Glenn Morris [Wed, 13 Oct 2010 03:08:45 +0000 (20:08 -0700)]
More make-dist simplification.

* make-dist: Remove --compress.  Check for the appropriate
gzip-like executable, and if not found, don't compress.
Check version number in README, don't change it.
Use find for nt/inc/*.h.

13 years agognus-gravatar.el (gnus-gravatar-transform-address): Adjust avatars' position when...
Katsumi Yamaoka [Wed, 13 Oct 2010 02:19:11 +0000 (02:19 +0000)]
gnus-gravatar.el (gnus-gravatar-transform-address): Adjust avatars' position when (X-)Faces exist.
gnus-gravatar.el (gnus-treat-from-gravatar, gnus-treat-mail-gravatar): Force displaying avatars when called interactively.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 12 Oct 2010 22:18:24 +0000 (22:18 +0000)]
Merge changes made in Gnus trunk.

gnus-gravatar.el (gnus-art): Required.
shr.el (shr-tag-img): Add align attribute support for <img>.
gnus-gravatar.el (gnus-gravatar-insert): Check if buffer is alive.
shr.el (shr-tag-img): Encode URL properly when retrieving.
shr.el (shr-get-image-data): Encode URL properly when fetching from cache.
shr.el (shr-tag-img): Use aligned-to spaces to align correctly images.
nnimap.el (nnimap-request-rename-group): Unselect by selecting a mailbox that doesn't exist.
rfc2231.el (rfc2231-parse-string): Ignore repeated parts.
gnus-gravatar.el (gnus-gravatar-too-ugly): Don't test if gnus-article-x-face-too-ugly is bound.

13 years agoRemove trailing / from directory names.
Dan Nicolaescu [Tue, 12 Oct 2010 21:03:09 +0000 (14:03 -0700)]
Remove trailing / from directory names.

* configure (ns_appdir, OLDXMENU, TOOLTIP_SUPPORT): Remove
trailing / from directory names.

13 years agoAdd some default custom themes.
Chong Yidong [Tue, 12 Oct 2010 20:06:20 +0000 (16:06 -0400)]
Add some default custom themes.

* cus-theme.el (custom-theme--listed-faces): Add cursor face.
(describe-theme-1): Extract doc from unloaded themes.

* custom.el (custom-theme-name-valid-p): Don't list color-themes.

* themes/tango-theme.el:
* themes/tango-dark-theme.el:
* themes/wheatgrass-theme.el: New files.

13 years agoAvoid using trailing / in directory variables.
Dan Nicolaescu [Tue, 12 Oct 2010 14:37:33 +0000 (07:37 -0700)]
Avoid using trailing / in directory variables.

* src/Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
(lispdir): Remove trailing /, update all uses.

13 years agognus-sum.el: Remove long obsoleted functions.
Lars Magne Ingebrigtsen [Tue, 12 Oct 2010 14:17:15 +0000 (14:17 +0000)]
gnus-sum.el: Remove long obsoleted functions.

13 years ago* make-dist: Replace grep with sed when determining $version.
Glenn Morris [Tue, 12 Oct 2010 08:05:28 +0000 (01:05 -0700)]
* make-dist: Replace grep with sed when determining $version.

13 years ago* make-dist: Remove the unnecessary $shortversion.
Glenn Morris [Tue, 12 Oct 2010 08:01:11 +0000 (01:01 -0700)]
* make-dist: Remove the unnecessary $shortversion.

13 years ago* make-dist: Remove comment that no longer applies.
Glenn Morris [Tue, 12 Oct 2010 07:46:57 +0000 (00:46 -0700)]
* make-dist: Remove comment that no longer applies.

13 years ago* make-dist: Simplify trap handling.
Glenn Morris [Tue, 12 Oct 2010 07:44:12 +0000 (00:44 -0700)]
* make-dist: Simplify trap handling.

13 years ago* make-dist: Use find for the whole etc/ directory.
Glenn Morris [Tue, 12 Oct 2010 07:31:58 +0000 (00:31 -0700)]
* make-dist: Use find for the whole etc/ directory.

13 years ago* make-dist: Use find for etc/image files.
Glenn Morris [Tue, 12 Oct 2010 07:27:07 +0000 (00:27 -0700)]
* make-dist: Use find for etc/image files.

13 years ago* make-dist: Use find to handle the etc and lisp directories.
Glenn Morris [Tue, 12 Oct 2010 07:09:39 +0000 (00:09 -0700)]
* make-dist: Use find to handle the etc and lisp directories.

13 years ago* make-dist: Simplify creation of lisp/MANIFEST.
Glenn Morris [Tue, 12 Oct 2010 06:38:34 +0000 (23:38 -0700)]
* make-dist: Simplify creation of lisp/MANIFEST.

13 years ago* make-dist: Update and simplify.
Glenn Morris [Tue, 12 Oct 2010 04:32:20 +0000 (21:32 -0700)]
* make-dist: Update and simplify.
Eg: there are no symlinks in the tree for a long time
Check for version in emacsver.texi.
Clean up *~ etc files using a find at the end.
Add etc/srecode.

13 years agoMerge nextstep/FOR-RELEASE outstanding issues into etc/TODO.
Glenn Morris [Tue, 12 Oct 2010 04:01:55 +0000 (21:01 -0700)]
Merge nextstep/FOR-RELEASE outstanding issues into etc/TODO.

13 years agoMove nextstep/DEV-NOTES to admin/notes/nextstep.
Glenn Morris [Tue, 12 Oct 2010 03:55:21 +0000 (20:55 -0700)]
Move nextstep/DEV-NOTES to admin/notes/nextstep.

13 years ago* doc/lispref/book-spine.texinfo: Rename to book-spine.texi.
Glenn Morris [Tue, 12 Oct 2010 03:52:07 +0000 (20:52 -0700)]
* doc/lispref/book-spine.texinfo: Rename to book-spine.texi.

13 years ago* etc/BABYL: Remove file.
Glenn Morris [Tue, 12 Oct 2010 03:50:06 +0000 (20:50 -0700)]
* etc/BABYL: Remove file.

13 years agoPlaceholder entry for Custom theme changes.
Chong Yidong [Tue, 12 Oct 2010 03:12:33 +0000 (23:12 -0400)]
Placeholder entry for Custom theme changes.

13 years agoNew interface for choosing Custom themes.
Chong Yidong [Tue, 12 Oct 2010 03:10:21 +0000 (23:10 -0400)]
New interface for choosing Custom themes.

* lisp/cus-edit.el (custom--initialize-widget-variables): New function.
(Custom-mode): Use it.

* lisp/cus-face.el (custom-theme-set-faces): Remove dead code.  Obey
custom--inhibit-theme-enable.

* lisp/cus-theme.el (describe-theme, customize-themes)
(custom-theme-save): New commands.
(custom-new-theme-mode-map): Bind C-x C-s.
(custom-new-theme-mode): Use custom--initialize-widget-variables.
(customize-create-theme): New optional arg THEME.
(custom-theme-revert): Use it.
(custom-theme-visit-theme): Remove dead code.
(custom-theme-merge-theme): Use custom-available-themes.
(custom-theme-write): Make interactive.
(custom-theme-write): Use custom-theme-name-valid-p.
(describe-theme-1, custom-theme-choose-revert)
(custom-theme-checkbox-toggle, custom-theme-selections-toggle):
New funs.
(custom-theme-allow-multiple-selections): New option.
(custom-theme-choose-mode): New major mode.

* lisp/custom.el (custom-theme-set-variables): Remove dead code.  Obey
custom--inhibit-theme-enable.
(custom--inhibit-theme-enable): New var.
(provide-theme): Obey it.
(load-theme): Replace load with manual read/eval, in order to
check for correctness.  Use custom-theme-name-valid-p.
(custom-theme-name-valid-p): New function.
(custom-available-themes): Use it.

* lisp/help-mode.el (help-theme-def, help-theme-edit): New buttons.

13 years agolisp/net/telnet.el: "Fix" commented code.
Juanma Barranquero [Tue, 12 Oct 2010 02:45:24 +0000 (04:45 +0200)]
lisp/net/telnet.el: "Fix" commented code.

13 years agolisp/cedet/ChangeLog: Move entries for emacs-lisp/ files back to lisp/ChangeLog.
Juanma Barranquero [Tue, 12 Oct 2010 02:31:16 +0000 (04:31 +0200)]
lisp/cedet/ChangeLog: Move entries for emacs-lisp/ files back to lisp/ChangeLog.

13 years agolisp/ChangeLog: Add missing bug reference.
Juanma Barranquero [Tue, 12 Oct 2010 01:51:31 +0000 (03:51 +0200)]
lisp/ChangeLog: Add missing bug reference.

13 years agolisp/net/telnet.el (telnet-mode-map): Fix previous change.
Juanma Barranquero [Tue, 12 Oct 2010 01:48:58 +0000 (03:48 +0200)]
lisp/net/telnet.el (telnet-mode-map): Fix previous change.

13 years agoClarify the doc about caching passphrases.
Daiki Ueno [Tue, 12 Oct 2010 01:49:05 +0000 (10:49 +0900)]
Clarify the doc about caching passphrases.

* epa.texi (Caching Passphrases):
* auth.texi (GnuPG and EasyPG Assistant Configuration): Clarify
some configurations require to set up gpg-agent.

13 years agoFix last change.
Katsumi Yamaoka [Tue, 12 Oct 2010 00:25:50 +0000 (00:25 +0000)]
Fix last change.

13 years agoMerge changes from emacs-23 branch.
Juanma Barranquero [Mon, 11 Oct 2010 23:57:49 +0000 (01:57 +0200)]
Merge changes from emacs-23 branch.

13 years agonnimap.el (gnutls-negotiate): Silence the byte compiler.
Katsumi Yamaoka [Mon, 11 Oct 2010 23:29:33 +0000 (23:29 +0000)]
nnimap.el (gnutls-negotiate): Silence the byte compiler.
*.el: Fix comment for declare-function.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 11 Oct 2010 22:27:28 +0000 (22:27 +0000)]
Merge changes made in Gnus trunk.

shr.el (shr-tag-hr): Use shr-hr-line to specify which character to use to display hr lines.
shr.el (shr-max-columns): Do not change state to nil if we just inserting spaces.
sieve-manage.el (sieve-manage-open): Allow port names as well as port numbers.
shr.el (shr-current-column, shr-find-fill-point): New functions; start thinking about breaking CJVK text.
nnimap.el (nnimap-transform-split-mail): Not all articles have bodies.  Protect against this.
shr.el (shr-insert): Fix up the white space only regexp.
nnimap.el (nnimap-request-rename-group): Select group read-only before renaming it.

13 years agoBug#7150: Distinguishing between left and right Alt keys on NextStep/OSX.
Jan Djärv [Mon, 11 Oct 2010 19:18:08 +0000 (21:18 +0200)]
Bug#7150: Distinguishing between left and right Alt keys on NextStep/OSX.

* lisp/cus-start.el (all): ns-right-alternate-modifier is new.

* lisp/term/ns-win.el (ns-right-alternate-modifier): New defvar.
(ns-right-option-modifier): New alias for ns-right-alternate-modifier.
(mac-right-option-modifier): New alias for ns-right-option-modifier.

* src/nsterm.m (Qleft): Declare.
(ns_right_alternate_modifier): New variable
(NSRightAlternateKeyMask): New define.
(EV_MODIFIERS): Parse NSRightAlternateKeyMask if
ns_right_alternate_modifier isn't Qleft.
(keyDown): If ns_right_alternate_modifier isn't Qleft, use it
as emacs modifier for NSRightAlternateKeyMask.
(syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.

13 years agognus-topic.el (gnus-topic-read-group): If after the last group, select the last group.
Lars Magne Ingebrigtsen [Mon, 11 Oct 2010 11:02:17 +0000 (11:02 +0000)]
gnus-topic.el (gnus-topic-read-group): If after the last group, select the last group.

13 years agognus-int.el (gnus-run-hook-with-args): Autoload from gnus-util.el.
Teodor Zlatanov [Mon, 11 Oct 2010 10:03:07 +0000 (10:03 +0000)]
gnus-int.el (gnus-run-hook-with-args): Autoload from gnus-util.el.

13 years agoMore cleanups and minor fixes for Customize.
Chong Yidong [Mon, 11 Oct 2010 04:49:59 +0000 (00:49 -0400)]
More cleanups and minor fixes for Customize.

* cus-edit.el (custom-face-edit-fix-value): Use
custom-fix-face-spec.

* custom.el (custom-push-theme): Cleanup (use cond).
(disable-theme): Recompute the saved-face property.
(custom-theme-recalc-face): Follow face alias before setting prop.

* custom.el (custom-fix-face-spec): New function; code moved from
custom-face-edit-fix-value.
(custom-push-theme): Use it when checking if a face has been
changed outside customize.
(custom-available-themes): New function.
(load-theme): Use it.

* image.el (image-checkbox-checked, image-checkbox-unchecked): New
variables, containing checkbox images.

* startup.el (fancy-startup-tail):
* wid-edit.el (checkbox): Use them.

13 years agoAdd explicit -I$srcdir to makeinfo in some doc/ Makefiles.
Glenn Morris [Mon, 11 Oct 2010 01:57:48 +0000 (18:57 -0700)]
Add explicit -I$srcdir to makeinfo in some doc/ Makefiles.

* doc/emacs/Makefile.in (MAKEINFO): Add explicit -I$srcdir.
* doc/lispintro/Makefile.in (MAKEINFO): Add explicit -I$srcdir.
* doc/lispref/Makefile.in (MAKEINFO): Add explicit -I$srcdir.

13 years agoAdd html targets for some doc/ Makefiles.
Glenn Morris [Mon, 11 Oct 2010 00:43:27 +0000 (17:43 -0700)]
Add html targets for some doc/ Makefiles.

* doc/lispref/Makefile.in (.PHONY): Add html.
(html, elisp.html): New targets.
(clean): Delete html files.
($(infodir)/elisp): Remove unnecessary includes.

* doc/lispintro/Makefile.in (MAKEINFO): Use --force like the other
doc/ Makefiles do.

* doc/emacs/Makefile.in (.PHONY): Add html.
(html, emacs.html): New targets.
(clean): Delete html files.

13 years agoAdd ps rules for some doc/ Makefiles.
Glenn Morris [Mon, 11 Oct 2010 00:30:34 +0000 (17:30 -0700)]
Add ps rules for some doc/ Makefiles.

* doc/misc/Makefile.in (.texi.dvi): Remove unnecessary suffix rule.

* dos/lispref/Makefile.in (DVIPS): New variable.
(.PHONY): Add ps.
(ps, elisp.ps): New targets.
(clean): Delete ps file.

* doc/lispintro/Makefile.in (.dvi.ps): Remove unnecessary suffix rule.
(.PHONY): Add ps.
(ps, emacs-lisp-intro.ps): New targets.
(clean): Delete ps file.

* doc/emacs/Makefile.in (.texi.dvi): Remove unnecessary suffix rule.
(DVIPS): New variable.
(.PHONY): Add ps.
(ps, emacs.ps, emacs-xtra.ps): New targets.
(clean): Delete ps files.

13 years ago* lisp/erc/erc-list.el (erc-list-menu-mode-map): Declare and define in one step.
Dan Nicolaescu [Sun, 10 Oct 2010 23:13:58 +0000 (16:13 -0700)]
* lisp/erc/erc-list.el (erc-list-menu-mode-map): Declare and define in one step.

13 years agoDeclare and define in one step various mode maps.
Dan Nicolaescu [Sun, 10 Oct 2010 23:12:30 +0000 (16:12 -0700)]
Declare and define in one step various mode maps.

* lisp/shell.el (shell-mode-map):
* lisp/progmodes/modula2.el (m2-mode-map):
* lisp/progmodes/inf-lisp.el (inferior-lisp-mode-map):
* lisp/play/mpuz.el (mpuz-mode-map):
* lisp/play/landmark.el (lm-mode-map):
* lisp/play/decipher.el (decipher-mode-map):
* lisp/play/5x5.el (5x5-mode-map):
* lisp/net/telnet.el (telnet-mode-map):
* lisp/net/quickurl.el (quickurl-list-mode-map):
* lisp/net/mairix.el (mairix-searches-mode-map):
* lisp/net/eudc-hotlist.el (eudc-hotlist-mode-map):
* lisp/net/dig.el (dig-mode-map):
* lisp/mail/mspools.el (mspools-mode-map):
* lisp/hexl.el (hexl-mode-map):
* lisp/emulation/ws-mode.el (wordstar-C-k-map, wordstar-mode-map)
(wordstar-C-o-map, wordstar-C-q-map):
* lisp/emacs-lisp/edebug.el (edebug-eval-mode-map):
* lisp/emacs-lisp/chart.el (chart-map):
* lisp/edmacro.el (edmacro-mode-map):
* lisp/array.el (array-mode-map): Declare and define in one step.

* lisp/erc/erc-list.el (erc-list-menu-mode-map): Declare and define in one step.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 10 Oct 2010 22:48:40 +0000 (22:48 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-wait-for-response): If the user hits `C-g', kill the process, too.
nnir.el (gnus-summary-nnir-goto-thread): Modify to work with imap.
nnimap.el (nnimap-update-info): If the server doesn't return any useful info, just use the previous info.
nnimap.el (nnimap-update-info): Prefer old info over start-article.
nnimap.el (nnimap-update-qresync-info): Finish implementing QRESYNC.
auth-source.el (auth-source-create): Use (user-login-name) for the user name default.
nnimap.el (nnimap-open-connection): Use gnutls STARTTLS, if available.
nnimap.el (nnimap-update-info): Rely more on the current active than the param active to avoid marking articles as read too much.
gnus-sum.el (gnus-summary-set-local-parameters): Ignore the `active' non-variable, too.
nnimap.el (nnimap-update-qresync-info): \Flagged messages are read for Gnus.
nnimap.el (nnimap-retrieve-group-data-early): utf7-encode the group parameters.
nnimap.el (nnimap-update-qresync-info): Mark \Seen articles as read.

13 years ago* Makefile.in (ELCFILES): Update.
Andreas Schwab [Sun, 10 Oct 2010 19:31:40 +0000 (21:31 +0200)]
* Makefile.in (ELCFILES): Update.

13 years agoFix gnutls write-before-negotiation case.
Lars Magne Ingebrigtsen [Sun, 10 Oct 2010 18:47:45 +0000 (20:47 +0200)]
Fix gnutls write-before-negotiation case.

* gnutls.c (emacs_gnutls_write): If we're trying to write before
gnutls is ready, return EAGAIN as the errno.

13 years agoRemove #ifdef emacs / #ifndef emacs code, unused.
Dan Nicolaescu [Sun, 10 Oct 2010 15:49:31 +0000 (08:49 -0700)]
Remove #ifdef emacs / #ifndef emacs code, unused.

* src/vm-limit.c:
* src/unexhp9k800.c:
* src/unexelf.c:
* src/unexaix.c:
* src/termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.

13 years agoPass CFLAGS to the linker.
Dan Nicolaescu [Sun, 10 Oct 2010 15:35:04 +0000 (08:35 -0700)]
Pass CFLAGS to the linker.

* configure.in (PROFILING_LDFLAGS): Do not define, remove all uses.

* lib-src/Makefile.in (PROFILING_LDFLAGS): Remove, not needed.

* msdos/sed1v2.inp (PROFILING_LDFLAGS):
* msdos/sed3v2.inp (PROFILING_LDFLAGS): Remove, not defined anymore.

* src/Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
(PROFILING_LDFLAGS): Remove, not needed anymore.

13 years ago* src/Makefile.in (CRT_DIR): Move near potential user.
Dan Nicolaescu [Sun, 10 Oct 2010 14:47:43 +0000 (07:47 -0700)]
* src/Makefile.in (CRT_DIR): Move near potential user.
(START_FILE): Move near CRT_DIR, it might use it.

13 years ago* src/Makefile.in: Use $(...) everywhere instead of ${...}
Dan Nicolaescu [Sun, 10 Oct 2010 14:43:05 +0000 (07:43 -0700)]
* src/Makefile.in: Use $(...) everywhere instead of ${...}

13 years agoSmall sysdep.c cleanups.
Dan Nicolaescu [Sun, 10 Oct 2010 13:44:22 +0000 (06:44 -0700)]
Small sysdep.c cleanups.

* src/sysdep.c (LPASS8): Remove, unused.
(emacs_ospeed): Change from being a global to a local in the only
user: init_baud_rate.

13 years agoRearrange an entry (test commit to bzr++ssh).
Eli Zaretskii [Sun, 10 Oct 2010 13:39:03 +0000 (09:39 -0400)]
Rearrange an entry (test commit to bzr++ssh).

13 years ago* lisp/vc/log-view.el (log-view-mode-map): Bind revert-buffer.
Dan Nicolaescu [Sun, 10 Oct 2010 03:40:58 +0000 (20:40 -0700)]
* lisp/vc/log-view.el (log-view-mode-map): Bind revert-buffer.

13 years agoSimplify 2010-10-09T13:27:24Z!larsi@gnus.org.
Daiki Ueno [Sun, 10 Oct 2010 01:45:45 +0000 (10:45 +0900)]
Simplify 2010-10-09T13:27:24Z!larsi@gnus.org.

* epa.el (epa-passphrase-callback-function): Display filename
passed as the 3rd arg.
* epa-file.el (epa-file-passphrase-callback-function): Pass
filename to epa-passphrase-callback-function.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 10 Oct 2010 00:15:21 +0000 (00:15 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-open-connection): If we have gnutls loaded, then try to use that for the tls stream.
nnimap.el (nnimap-retrieve-group-data-early): Rework the marks code to heed UIDVALIDITY and find out which groups are read-only and not.
nnimap.el (nnimap-get-flags): Use the same marks parsing code as the rest of nnimap.
nnimap.el (nnmail-expiry-target-group): Say that every expiry target group is the "last".
nnir.el (nnir-engines): Fix too many arguments.
nnimap.el: Start implementing QRESYNC support.
gnus.el (gnus-group-set-parameter): Fix typo.
shr.el: Rework the way things are indented by <li> slightly.
spam.el (gnus-summary-mode-map): Bind to "$".

13 years ago* doc/man/emacs.1: Small fixes.
Glenn Morris [Sun, 10 Oct 2010 00:05:14 +0000 (17:05 -0700)]
* doc/man/emacs.1: Small fixes.

13 years ago* doc/misc/Makefile.in: Missed a few spots in the earlier $< change.
Glenn Morris [Sat, 9 Oct 2010 22:40:30 +0000 (15:40 -0700)]
* doc/misc/Makefile.in: Missed a few spots in the earlier $< change.

13 years agoInterface improvements to cus-theme.el.
Chong Yidong [Sat, 9 Oct 2010 21:54:20 +0000 (17:54 -0400)]
Interface improvements to cus-theme.el.

* cus-edit.el (custom-face-widget-to-spec)
(custom-face-get-current-spec, custom-face-state): New functions.
(custom-face-set, custom-face-mark-to-save)
(custom-face-value-create, custom-face-state-set): Use them.

* cus-theme.el (custom-theme--listed-faces): New var.
(customize-create-theme): Use *Custom Theme* as the buffer name.
Set revert-buffer-function.  Optional arg BUFFER.  Insert all
faces listed in custom-theme--listed-faces.
(custom-theme-revert): New function.
(custom-theme-add-variable, custom-theme-add-face): Insert at the
bottom of the list.
(custom-theme-write): Prompt for theme name if empty.
(custom-theme-write-variables): Use dolist.
(custom-theme-write-faces): Handle hidden (collapsed) widgets.

13 years agoFix building manuals on MS-Windows using emacsver.texi.
Eli Zaretskii [Sat, 9 Oct 2010 21:38:04 +0000 (23:38 +0200)]
Fix building manuals on MS-Windows using emacsver.texi.

 misc/makefile.w32-in (emacsdir): New variable.
 ($(infodir)/efaq, faq.dvi): Depend on emacsver.texi.
 (ENVADD, $(infodir)/efaq): Add -I$(emacsdir).
 emacs/makefile.w32-in (EMACSSOURCES): Add emacsver.texi.
 lispref/makefile.w32-in (emacsdir): New variable.
 (srcs): Add emacsver.texi.
 ($(infodir)/elisp, elisp.dvi): Add -I$(emacsdir).

13 years agoReplace use of VPATH in most doc/ Makefiles.
Glenn Morris [Sat, 9 Oct 2010 21:19:09 +0000 (14:19 -0700)]
Replace use of VPATH in most doc/ Makefiles.

* doc/lispref/Makefile.in (VPATH): Remove.
(infodir): Make it absolute.
(mkinfodir, $(infodir)/elisp, infoclean): No need to cd $srcdir.

* doc/lispintro/Makefile.in (VPATH): Remove.
(infodir): Make it absolute.
(mkinfodir, $(infodir)/eintr, infoclean): No need to cd $srcdir.

* doc/emacs/Makefile.in (VPATH): Remove.
(infodir): Make it absolute.
(mkinfodir, $(infodir)/emacs, infoclean): No need to cd $srcdir.

* doc/misc/Makefile.in: Comment.

13 years agoAnchor regexps in doc/ `make dist' rules.
Glenn Morris [Sat, 9 Oct 2010 20:36:14 +0000 (13:36 -0700)]
Anchor regexps in doc/ `make dist' rules.

* doc/emacs/Makefile.in (dist): Anchor regexps.

* doc/lispintro/Makefile.in (dist): Anchor regexps.

* doc/lsipref/Makefile.in (dist): Anchor regexps.

13 years ago* doc/lispref/Makefile.in (dist): Also copy emacsver.texi, and edit $emacsdir.
Glenn Morris [Sat, 9 Oct 2010 20:28:34 +0000 (13:28 -0700)]
* doc/lispref/Makefile.in (dist): Also copy emacsver.texi, and edit $emacsdir.

13 years agoRemove references to emacsver.texi.in in doc/ `make dist' rules.
Glenn Morris [Sat, 9 Oct 2010 20:22:11 +0000 (13:22 -0700)]
Remove references to emacsver.texi.in in doc/ `make dist' rules.

* doc/emacs/Makefile.in (dist): Remove reference to emacsver.texi.in.

* doc/lispref/Makefile.in (dist): Remove reference to emacsver.texi.in.

13 years ago* doc/misc/Makefile.in (mostlyclean): Delete *.toc.
Glenn Morris [Sat, 9 Oct 2010 20:14:43 +0000 (13:14 -0700)]
* doc/misc/Makefile.in (mostlyclean): Delete *.toc.

13 years ago* doc/misc/Makefile.in: Use $< in rules.
Glenn Morris [Sat, 9 Oct 2010 20:12:18 +0000 (13:12 -0700)]
* doc/misc/Makefile.in: Use $< in rules.

13 years agoEnhance fontification of declarators to take account of the
Alan Mackenzie [Sat, 9 Oct 2010 19:58:28 +0000 (19:58 +0000)]
Enhance fontification of declarators to take account of the
presence/absence of "typedef".

cc-engine.el (c-forward-type): New &optional param "brace-block-too".
(c-forward-decl-or-cast-1): cdr of return value now indicates the
presence of either or both of a "struct"-like keyword and "typedef".

cc-fonts.el (c-complex-decl-matchers): Remove the heuristic fontification
of declarators which follow a "}".
(c-font-lock-declarations): Fontify declarators according to the
presence/absence of "typedef".

cc-langs.el (c-typedef-kwds c-typedef-key): New lang variable for
"typedef".
(c-typedef-decl-key): New lang variable built from c-typedef-decl-kwds.

13 years agoUse $< in some doc/*/Makefile rules.
Glenn Morris [Sat, 9 Oct 2010 19:39:42 +0000 (12:39 -0700)]
Use $< in some doc/*/Makefile rules.

* doc/lispref/Makefile.in (srcs): Put elisp.texi first.
($(infodir)/elisp, elisp.dvi, elisp.pdf): Use $<.

* doc/lispintro/Makefile.in (${infodir}/eintr, emacs-lisp-intro.dvi)
(emacs-lisp-intro.pdf, emacs-lisp-intro.html): Use $<.

* doc/emacs/Makefile.in (EMACSSOURCES): Put emacs.texi first.
($(infodir)/emacs, emacs.dvi, emacs.pdf, emacs-xtra.dvi)
(emacs-xtra.pdf): Use $<.

13 years agoFix previous doc/*/Makefile.in change.
Glenn Morris [Sat, 9 Oct 2010 19:27:22 +0000 (12:27 -0700)]
Fix previous doc/*/Makefile.in change.

13 years ago* doc/man/b2m.1: Remove file.
Glenn Morris [Sat, 9 Oct 2010 18:51:21 +0000 (11:51 -0700)]
* doc/man/b2m.1: Remove file.

13 years ago* make-dist: No more doc/emacs/*.texi.in.
Glenn Morris [Sat, 9 Oct 2010 18:46:57 +0000 (11:46 -0700)]
* make-dist: No more doc/emacs/*.texi.in.

13 years agoQuieten emacs-devel.
Glenn Morris [Sat, 9 Oct 2010 18:39:01 +0000 (11:39 -0700)]
Quieten emacs-devel.

* doc/misc/Makefile.in (maintainer-clean): Remove harmless, long-standing error.

* doc/lispref/Makefile.in (infoclean): Remove harmless, long-standing error.

* doc/lispintro/Makefile.in (infoclean): Remove harmless, long-standing error.

* doc/emacs/Makefile.in (infoclean): Remove harmless, long-standing error.

13 years agoAvoid having a directory as a prerequisite in doc Makefiles.
Glenn Morris [Sat, 9 Oct 2010 18:31:12 +0000 (11:31 -0700)]
Avoid having a directory as a prerequisite in doc Makefiles.
It does not play well with time-stamping.

* doc/misc/Makefile.in ($(infodir)): Delete rule.
(mkinfodir): New.  Use it in all the info rules, rather than depending
on infodir.

* doc/lispref/Makefile.in ($(infodir)): Delete rule.
(mkinfodir): New.
($(infodir)/elisp): Use $mkinfodir instead of infodir.

* doc/lispintro/Makefile.in ($(infodir)): Delete rule.
(mkinfodir): New.
($(infodir)/eintr): Use $mkinfodir instead of infodir.

* doc/emacs/Makefile.in ($(infodir)): Delete rule.
(mkinfodir): New.
($(infodir)/emacs): Use $mkinfodir instead of infodir.

13 years ago* configure.in (AC_OUTPUT): Remove doc/emacs/emacsver.texi.
Glenn Morris [Sat, 9 Oct 2010 17:59:55 +0000 (10:59 -0700)]
* configure.in (AC_OUTPUT): Remove doc/emacs/emacsver.texi.
* configure: Regenerate.

* .bzrignore: Remove doc/emacs/emacsver.texi.

* doc/emacs/Makefile.in (distclean): Do not delete emacsver.texi.
* doc/emacs/emacsver.texi: New file, replacing emacsver.texi.in.

* admin/admin.el (set-version): Add doc/emacs/emacsver.texi.

13 years ago(ibuffer-mode-map): Don't redefine the cursor keys, since that's too annoying.
Lars Magne Ingebrigtsen [Sat, 9 Oct 2010 15:44:44 +0000 (17:44 +0200)]
(ibuffer-mode-map): Don't redefine the cursor keys, since that's too annoying.

Move the filter groups commands to TAB/backtab.

13 years ago* lisp/emacs-lisp/lisp.el (lisp-completion-at-point):
Stefan Monnier [Sat, 9 Oct 2010 15:43:43 +0000 (17:43 +0200)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point):
Use emacs-lisp-mode-syntax-table for the whole function.

13 years agoDon't use foo() to talk about functions.
Lars Magne Ingebrigtsen [Sat, 9 Oct 2010 14:31:56 +0000 (16:31 +0200)]
Don't use foo() to talk about functions.

13 years ago(emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
Lars Magne Ingebrigtsen [Sat, 9 Oct 2010 13:54:57 +0000 (15:54 +0200)]
(emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.

According to the documentation, this is correct, and it seems to
make things work.

13 years ago(epa-passphrase-callback-function): Say what we're querying the password for.
Lars Magne Ingebrigtsen [Sat, 9 Oct 2010 13:27:24 +0000 (15:27 +0200)]
(epa-passphrase-callback-function): Say what we're querying the password for.

13 years ago* ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers
Lars Magne Ingebrigtsen [Sat, 9 Oct 2010 13:23:29 +0000 (15:23 +0200)]
* ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers
behaviour, don't bury the ibuffer buffer when visiting other
buffers.

13 years agoMake emacs_gnutls_read() return the expected on errors.
Lars Magne Ingebrigtsen [Sat, 9 Oct 2010 13:19:30 +0000 (15:19 +0200)]
Make emacs_gnutls_read() return the expected on errors.

Also interface cleanups.

13 years ago(gdb-mouse-toggle-breakpoint-margin)
Nick Roberts [Sat, 9 Oct 2010 10:51:42 +0000 (23:51 +1300)]
(gdb-mouse-toggle-breakpoint-margin)
(gdb-mouse-toggle-breakpoint-fringe): Correct regexp to work when
breakpoint number exceeds nine.

13 years agonnir.el (nnir-read-parm): Fix call to gnus-completing-read.
Julien Danjou [Sat, 9 Oct 2010 09:14:46 +0000 (09:14 +0000)]
nnir.el (nnir-read-parm): Fix call to gnus-completing-read.

13 years agoshr,el: Allow shr table char to be customized.
Julien Danjou [Sat, 9 Oct 2010 08:44:12 +0000 (08:44 +0000)]
shr,el: Allow shr table char to be customized.
gnus-gravatar.el (gnus-gravatar-transform-address): Error errors when retrieving gravatars.

13 years agognus.texi: untabify.
Katsumi Yamaoka [Sat, 9 Oct 2010 04:22:17 +0000 (04:22 +0000)]
gnus.texi: untabify.

13 years agoFix hi-lock-mode interactions with font-lock.
David Koppelman [Sat, 9 Oct 2010 04:09:19 +0000 (00:09 -0400)]
Fix hi-lock-mode interactions with font-lock.
* hi-lock.el (hi-lock-font-lock-hook): Check font-lock-fontified
instead of font-lock-mode before adding keywords. Removed
hi-lock-mode off code. Removed inhibit hack.
(hi-lock-set-pattern): Only add keywords if font-lock-fontified
non-nil; removed hook inhibit hack.

13 years ago* xterm.c (x_draw_relief_rect): Clear corner pixels.
Chong Yidong [Sat, 9 Oct 2010 03:30:31 +0000 (23:30 -0400)]
* xterm.c (x_draw_relief_rect): Clear corner pixels.

13 years agoMore face customization cleanups.
Chong Yidong [Sat, 9 Oct 2010 03:23:38 +0000 (23:23 -0400)]
More face customization cleanups.

* cus-edit.el (custom-commands, custom-buffer-create-internal)
(custom-magic-value-create): Pad button tags with spaces.
(custom-face-edit): New variable.
(custom-face-value-create): Determine whether to use the usual
face editor here, instead of using custom-face-selected.  Pass
face defaults to custom-face-edit widget.
(custom-face-selected, custom-display-unselected): Delete widgets.
(custom-display-unselected-match): Function removed.
(custom-face-set, custom-face-mark-to-save): Accept
custom-face-edit widgets as the direct widget child.

* wid-edit.el (widget--completing-widget): New var.
(widget-default-complete): Bind it when doing completion.
(widget-string-complete, widget-file-complete): Use it.

13 years agoSmall simplifications for some cal-hebrew calculations.
Glenn Morris [Sat, 9 Oct 2010 02:25:38 +0000 (19:25 -0700)]
Small simplifications for some cal-hebrew calculations.

* lisp/calendar/cal-hebrew.el (holiday-hebrew-rosh-hashanah)
(holiday-hebrew-passover, holiday-hebrew-tisha-b-av)
(holiday-hebrew-misc): Small simplifications.

13 years ago* configure.in: Combine some conditionals.
Glenn Morris [Sat, 9 Oct 2010 02:16:38 +0000 (19:16 -0700)]
* configure.in: Combine some conditionals.

13 years agoAdd doc/ dependencies on emacsver.texi.
Glenn Morris [Sat, 9 Oct 2010 02:09:46 +0000 (19:09 -0700)]
Add doc/ dependencies on emacsver.texi.

* doc/misc/Makefile.in ($(infodir)/efaq): Depend on emacsver.texi.

* doc/lispref/Makefile.in (srcs): Add emacsver.texi.

* doc/emacs/Makefile.in (EMACSSOURCES): Add emacsver.texi.

13 years agoRegenerate configure, src/config.in.
Glenn Morris [Sat, 9 Oct 2010 01:59:50 +0000 (18:59 -0700)]
Regenerate configure, src/config.in.

13 years ago* doc/misc/gnus.texi (Article Washing): Fix previous change.
Glenn Morris [Sat, 9 Oct 2010 01:49:20 +0000 (18:49 -0700)]
* doc/misc/gnus.texi (Article Washing): Fix previous change.

13 years agoSet the version number in the texinfo manuals using configure.
Glenn Morris [Sat, 9 Oct 2010 01:41:21 +0000 (18:41 -0700)]
Set the version number in the texinfo manuals using configure.

* doc/misc/Makefile.in (emacsdir): New variable.
($(infodir)/efaq): Pass -I $(emacsdir) to makeinfo.
* doc/misc/faq.texi (VER): Replace with EMACSVER from emacsver.texi.

* doc/lispref/Makefile.in (emacsdir): New variable.
(MAKEINFO): Add -I $emacsdir.
(dist): Copy emacsver.texi.
* doc/lispref/book-spine.texinfo, doc/lispref/elisp.texi:
* doc/lispref/vol2.texi, doc/lispref/vol1.texi:
Set EMACSVER by including emacsver.texi.

* doc/emacs/emacsver.texi.in: New file.
* doc/emacs/emacs.texi: Set EMACSVER by including emacsver.texi.
* doc/emacs/Makefile.in (distclean): Delete emacsver.texi.
(dist): Copy emacsver.texi.

* admin/admin.el (set-version): No need to act on doc/ files any more.

* configure.in (AC_OUTPUT): Add doc/emacs/emacsver.texi.
* make-dist: Include doc/emacs/*.texi.in.

13 years agoRemove lib-src/b2m.c and b2m.pl.
Glenn Morris [Sat, 9 Oct 2010 01:15:15 +0000 (18:15 -0700)]
Remove lib-src/b2m.c and b2m.pl.
Emacs does not use Babyl files since 23.1, and you can use M-x unrmail.

* msdos/mainmake.v2 (install): Remove b2m.

* lisp/emacs-lisp/authors.el (authors-valid-file-names): Add b2m.c.

* lib-src/b2m.c, lib-src/b2m.pl: Remove files.
* lib-src/Makefile.in (INSTALLABLES): Remove b2m.
* lib-src/makefile.w32-in ($(BLD)/b2m.$(O)): Remove.

* doc/emacs/ack.texi (Acknowledgments): No more b2m.c.

* admin/quick-install-emacs (PUBLIC_LIBSRC_BINARIES): Remove b2m.

* INSTALL, make-dist: Remove references to b2m.
* Makefile.in (MAN_PAGES): Remove b2m.1.

13 years agoMark some doc/ rules as PHONY.
Glenn Morris [Sat, 9 Oct 2010 01:02:21 +0000 (18:02 -0700)]
Mark some doc/ rules as PHONY.

* doc/misc/Makefile.in (.PHONY): Declare info, dvi, pdf and the clean rules.

* doc/lispref/Makefile.in (.PHONY): Declare info, dvi, pdf, dist.

* doc/lispintro/Makefile.in (.PHONY): Declare info, dvi, html, pdf, dist.

* doc/emacs/Makefile.in (.PHONY): Declare info, dvi, pdf, dist.
(emacs): Remove rule.
(dist): No need to deal with the emacs rule any more.

13 years agobrowse-url.el trivia.
Glenn Morris [Sat, 9 Oct 2010 00:52:12 +0000 (17:52 -0700)]
browse-url.el trivia.

* lisp/net/browse-url.el: Don't require thingatpt, term, dired,
executable, or w3-auto when compiling.
(dired-get-filename, term-char-mode, term-send-down, term-send-string):
Declare.
(browse-url-text-emacs): Require term.

13 years agoRename another shadow.el function.
Glenn Morris [Sat, 9 Oct 2010 00:44:53 +0000 (17:44 -0700)]
Rename another shadow.el function.

* lisp/emacs-lisp/shadow.el (find-emacs-lisp-shadows): Rename it...
(load-path-shadows-find): ... to this.
(list-load-path-shadows): Update for above change.

13 years ago* lisp/mail/mail-utils.el (mail-mbox-from): Also try return-path.
Glenn Morris [Sat, 9 Oct 2010 00:41:03 +0000 (17:41 -0700)]
* lisp/mail/mail-utils.el (mail-mbox-from): Also try return-path.

(Per 8-year old observation:
http://lists.gnu.org/archive/html/bug-gnu-emacs/2002-06/msg00176.html )

13 years ago* doc/man/emacs.1: Update license description.
Ulrich Mueller [Sat, 9 Oct 2010 00:37:11 +0000 (17:37 -0700)]
* doc/man/emacs.1: Update license description.