bpt/emacs.git
13 years agoMerge: Import crypto/md5 and stdint modules from gnulib.
Paul Eggert [Sun, 20 Feb 2011 08:48:52 +0000 (00:48 -0800)]
Merge: Import crypto/md5 and stdint modules from gnulib.

13 years agonnimap.el (nnimap-wait-for-response): Ensure that we get the entire line we're waitin...
Gnus developers [Sun, 20 Feb 2011 04:08:04 +0000 (04:08 +0000)]
nnimap.el (nnimap-wait-for-response): Ensure that we get the entire line we're waiting for.
gnus-art.el (gnus-article-next-page-1): Because customized mode-line face with line-width greater than zero will cause RET in gnus summary buffer to scroll down article page-wise because auto vscroll happens, it should be temporalily disabled when doing a scroll-up.

13 years agoedmacro.el trivia.
Glenn Morris [Sun, 20 Feb 2011 00:16:54 +0000 (16:16 -0800)]
edmacro.el trivia.

* lisp/edmacro.el: Remove old header comment.
(edmacro-eight-bits): Make it a defcustom.  Don't autoload it.

13 years agoautorevert.el trivia.
Glenn Morris [Sun, 20 Feb 2011 00:09:28 +0000 (16:09 -0800)]
autorevert.el trivia.

* lisp/autorevert.el (auto-revert-mode, auto-revert-tail-mode)
(global-auto-revert-ignore-buffer): Remove leading "*" from docs.
It makes zero sense to use it with these variables.

13 years agoPrevent hideshow from parsing braces inside comments (Bug#8036).
Dmitry Bolshakov [Sat, 19 Feb 2011 22:20:35 +0000 (17:20 -0500)]
Prevent hideshow from parsing braces inside comments (Bug#8036).

* progmodes/hideshow.el (hs-find-block-beginning)
(hs-hide-level-recursive): Ignore comments when parsing braces.

13 years agoImprovements to vc-bzr conffile handling and pull/merge support.
Chong Yidong [Sat, 19 Feb 2011 21:23:51 +0000 (16:23 -0500)]
Improvements to vc-bzr conffile handling and pull/merge support.

* vc/vc-bzr.el (vc-bzr--branch-conf): Function deleted.
(vc-bzr-branch-conf): New function, similar to vc-bzr--branch-conf
but returning an alist.  Ignore comments in bzr conffile.
(vc-bzr-pull, vc-bzr-merge-branch): Use vc-bzr-branch-conf.
(vc-bzr-error-regex-alist): New var.
(vc-bzr-merge-branch): Use it to highlight the pull/merge buffer.

* progmodes/compile.el (compilation--flush-directory-cache):
Handle the case where cdr of compilation--flush-directory-cache
points to no buffer, which can occur if we previously switched to
compilation-mode in a pregenerated buffer.

* vc/vc-dispatcher.el (vc-do-async-command): Bind
inhibit-read-only to t.

13 years agodired-x no longer requires dired-aux.
Glenn Morris [Sat, 19 Feb 2011 20:44:34 +0000 (12:44 -0800)]
dired-x no longer requires dired-aux.

* lisp/dired-x.el: Don't require dired-aux.
(dired-do-create-files, dired-mark-read-regexp)
(dired-do-create-files-regexp): Autoload from dired-aux.

13 years agoMerge dired-x's dired-find-buffer-nocreate into dired.el.
Glenn Morris [Sat, 19 Feb 2011 20:36:54 +0000 (12:36 -0800)]
Merge dired-x's dired-find-buffer-nocreate into dired.el.

* lisp/dired-x.el (dired-find-buffer-nocreate): Merge into dired.el.

* lisp/dired.el (dired-find-buffer-nocreate): Merge dired-x version.

* doc/misc/dired-x.texi (Technical Details):
No longer redefines dired-find-buffer-nocreate.

13 years agoAdapt and fix the MS-DOS port due to gnulib imports.
Eli Zaretskii [Sat, 19 Feb 2011 19:56:29 +0000 (21:56 +0200)]
Adapt and fix the MS-DOS port due to gnulib imports.

 msdos/depfiles.bat: New file.
 msdos/sedlibmk.inp: New file.
 msdos/sedlibcf.inp: New file.
 msdos/sedleim.inp (RUN_EMACS): Rename from RUN-EMACS.
 (BUILT_EMACS): Rename from BUILT-EMACS.
 msdos/sed6.inp (MAKEINFO): Edit to "makeinfo".
 (ENVADD): Adjust to MAKEINFO_OPTS.
 (texinputdir): Don't edit.
 msdos/sed3v2.inp (-DVERSION): Edit out.
 (LOADLIBES): Don't edit to empty.
 msdos/sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME ||
 BROKEN_MKTIME" stuff -- it's no longer in src/config.in.
 (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
 (HAVE__BOOL): Edit to 1.
 (VERSION, inline, restrict): Edit for DJGPP.
 (my_strftime): Edit to nstrftime.
 msdos/sed1v2.inp (NS_OBJC_OBJ): Edit to empty.
 (@true): Edit to "@rem".
 (move-if-change): Edit to "update".
 (echo): Edit to "djecho".
 (cd $(lib) && ...): Edit to "$(MAKE) -C ...".
 (LIBOBJS): Edit to empty.
 ($(libsrc)/make-docfile): Two new edits, one each for every
 invocation of make-docfile.
 (move-if-change): Fix edit.
 Remove some unused switches from $(ALL_CFLAGS), to make the GCC
 command line shorter.
 msdos/mainmake.v2 (version): Remove, no longer needed (config.in
 defines VERSION).
 (all): Add lib.
 (lib): New target and recipe.
 (lib-src): Depend on lib.
 (src): Depend on lib and lib-src.
 (clean, mostlyclean, distclean, maintainer-clean, extraclean)
 (bootstrap-clean): Recurse into lib.
 (lib, lib-src, src): Specify "all" as an explicit target.
 .bzrignore: Ignore cxxdefs.h and lib/*.in-h files.
 Add lib/deps/.
 config.bat: Configure in `lib'.
 Generate *.Po files in lib/deps.
 src/termcap.c (tputs): Don't declare baud_rate.
 src/s/msdos.h (strtold): Define to _strtold.

13 years agoFix MS-DOS build in src/: delete gl-tmp.
Eli Zaretskii [Sat, 19 Feb 2011 19:49:10 +0000 (21:49 +0200)]
Fix MS-DOS build in src/: delete gl-tmp.

 msdos/sed1v2.inp: Delete gl-tmp after updating globals.h

13 years agoFinish fixing the MS-DOS build. Everything builds and works.
Eli Zaretskii [Sat, 19 Feb 2011 19:41:00 +0000 (21:41 +0200)]
Finish fixing the MS-DOS build.  Everything builds and works.

 src/termcap.c (tputs): Don't declare baud_rate.
 msdos/sedlibmk.inp (gl_LIBOBJS): Add getloadavg.o.
 msdos/sedleim.inp (RUN_EMACS): Rename from RUN-EMACS.
 (BUILT_EMACS): Rename from BUILT-EMACS.
 msdos/sed6.inp (MAKEINFO): Edit to "makeinfo".
 (ENVADD): Adjust to MAKEINFO_OPTS.
 (texinputdir): Don't edit.
 msdos/sed2v2.inp (my_strftime): Edit to nstrftime.
 msdos/sed1v2.inp (LIBOBJS): Edit to empty.
 ($(libsrc)/make-docfile): Two new edits, one each for every
 invocation of make-docfile.
 (move-if-change): Fix edit.
 Remove some unused switches from $(ALL_CFLAGS), to make the GCC
 command line shorter.

13 years agoMerge from emacs-23; up to 2010-06-01T01:49:15Z!monnier@iro.umontreal.ca
Glenn Morris [Sat, 19 Feb 2011 19:40:59 +0000 (11:40 -0800)]
Merge from emacs-23; up to 2010-06-01T01:49:15Z!monnier@iro.umontreal.ca

13 years agoFix typo in auth.texi (Bug#8068).
Chong Yidong [Sat, 19 Feb 2011 19:26:37 +0000 (14:26 -0500)]
Fix typo in auth.texi (Bug#8068).

13 years agoMerge dired-x's dired-read-shell-command into dired-aux's version.
Glenn Morris [Sat, 19 Feb 2011 19:20:38 +0000 (11:20 -0800)]
Merge dired-x's dired-read-shell-command into dired-aux's version.

* lisp/dired-x.el (dired-read-shell-command): Merge into dired-aux's version.

* lisp/dired-aux.el (dired-read-shell-command): Merge dired-x's version.

* doc/misc/dired-x.texi (Technical Details):
No longer redefines dired-read-shell-command.

13 years agoMerge dired-x's dired-clean-up-after-deletion into dired's version.
Glenn Morris [Sat, 19 Feb 2011 18:55:15 +0000 (10:55 -0800)]
Merge dired-x's dired-clean-up-after-deletion into dired's version.

* lisp/dired-x.el (dired-clean-up-after-deletion): Merge into dired.el.

* lisp/dired.el (dired-clean-up-after-deletion): Merge dired-x's version.
(dired-clean-up-buffers-too): Declare.

* doc/misc/dired-x.texi (Technical Details):
No longer redefine dired-clean-up-after-deletion.

13 years agoFix msdos/sed3v2.inp. lib-src/ now builds.
Eli Zaretskii [Sat, 19 Feb 2011 17:54:18 +0000 (19:54 +0200)]
Fix msdos/sed3v2.inp.  lib-src/ now builds.

 sed3v2.inp (-DVERSION): Edit out.
 (LOADLIBES): Don't edit to empty.
 mainmake.v2 (lib, lib-src, src): Specify "all" as an explicit target.

13 years agoFix msdos/sedlibmk.inp. lib/ builds now.
Eli Zaretskii [Sat, 19 Feb 2011 17:35:11 +0000 (19:35 +0200)]
Fix msdos/sedlibmk.inp.  lib/ builds now.

 sedlibmk.inp (HAVE_GETOPT_H, PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS): Fix
 editing.
 (DEFS): Edit to -DHAVE_CONFIG_H.
 (Makefile, &&): Fix removal.

13 years ago* Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
Chong Yidong [Sat, 19 Feb 2011 17:34:50 +0000 (12:34 -0500)]
* Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.

See http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00715.html

13 years agoFix generation of auto-dependency files in lib/.
Eli Zaretskii [Sat, 19 Feb 2011 16:53:10 +0000 (18:53 +0200)]
Fix generation of auto-dependency files in lib/.

 .bzrignore: Add lib/deps/.
 config.bat: Generate *.Po files in lib/deps.
 msdos/sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Fix editing of *-clean
 rules.
 msdos/depfiles.bat: New file.

13 years agoUpdate .bzrignore for files produced by the MS-DOS build.
Eli Zaretskii [Sat, 19 Feb 2011 16:12:18 +0000 (18:12 +0200)]
Update .bzrignore for files produced by the MS-DOS build.

 .bzrignore: Ignore cxxdefs.h and lib/*.in-h files.

13 years agoCommit new Sed scripts in msdos/.
Eli Zaretskii [Sat, 19 Feb 2011 16:05:27 +0000 (18:05 +0200)]
Commit new Sed scripts in msdos/.

13 years agoInitial version of fix for the MS-DOS build, not yet tested.
Eli Zaretskii [Sat, 19 Feb 2011 15:57:35 +0000 (17:57 +0200)]
Initial version of fix for the MS-DOS build, not yet tested.

 config.bat: Configure in `lib'.
 msdos/sedlibmk.inp: New file.
 msdos/sedlibcf.inp: New file.
 msdos/sed1v2.inp (NS_OBJC_OBJ): Edit to empty.
 (@true): Edit to "@rem".
 (move-if-change): Edit to "update".
 (echo): Edit to "djecho".
 (cd $(lib) && ...): Edit to "$(MAKE) -C ...".
 msdos/mainmake.v2 (version): Remove, no longer needed (config.in
 defines VERSION).
 (all): Add lib.
 (lib): New target and recipe.
 (lib-src): Depend on lib.
 (src): Depend on lib and lib-src.
 (clean, mostlyclean, distclean, maintainer-clean, extraclean)
 (bootstrap-clean): Recurse into lib.
 msdos/sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME ||
 BROKEN_MKTIME" stuff -- it's no longer in src/config.in.
 (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
 (HAVE__BOOL): Edit to 1.
 (VERSION, inline, restrict): Edit for DJGPP.
 src/s/msdos.h (strtold): Define to _strtold.
 admin/admin.el (set-version): Add msdos/sed2v2.inp.

13 years agomerge emacs-23
Kenichi Handa [Sat, 19 Feb 2011 10:46:49 +0000 (19:46 +0900)]
merge emacs-23

13 years ago* deps.mk (fns.o): Depend on ../lib/md5.h.
Paul Eggert [Sat, 19 Feb 2011 09:51:59 +0000 (01:51 -0800)]
* deps.mk (fns.o): Depend on ../lib/md5.h.

13 years agonnimap.el (nnimap-parse-copied-articles): Allow for "<foo> OK" outputs from the server.
Gnus developers [Sat, 19 Feb 2011 09:45:07 +0000 (09:45 +0000)]
nnimap.el (nnimap-parse-copied-articles): Allow for "<foo> OK" outputs from the server.
gnus-art.el (gnus-article-prepare): Run gnus-article-prepare-hook later so that bbdb can hook in easier.

13 years agodired.el: Update autoloads.
Eli Zaretskii [Sat, 19 Feb 2011 09:35:15 +0000 (04:35 -0500)]
dired.el: Update autoloads.

13 years agoFix setting of buffer-file-coding-system for MIME message.
Kenichi Handa [Sat, 19 Feb 2011 09:22:24 +0000 (18:22 +0900)]
Fix setting of buffer-file-coding-system for MIME message.

13 years agoImport simpler crypto/md5 module from gnulib, plus stdint module.
Paul Eggert [Sat, 19 Feb 2011 07:28:29 +0000 (23:28 -0800)]
Import simpler crypto/md5 module from gnulib, plus stdint module.

* aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
* src/config.in: Regenerate.
* lib/md5.c, lib/md5.h: Regenerate with simpler version, which
assumes C99-style <stdint.h>, supplied by the stdint module.
* lib/stdint.in.h, m4/longlong.m4, m4/stdint.m4: New files,
generated from gnulib.
* src/deps.mk (fns.o): Do not depend on md5.h, fixing a typo in
the earlier patch.

13 years agoMerge from mainline.
Paul Eggert [Sat, 19 Feb 2011 06:25:05 +0000 (22:25 -0800)]
Merge from mainline.

13 years agoMerge dired-x's redefinition of dired-initial-position into the main version.
Glenn Morris [Sat, 19 Feb 2011 04:12:23 +0000 (20:12 -0800)]
Merge dired-x's redefinition of dired-initial-position into the main version.

* lisp/dired-x.el (dired-initial-position): Merge into dired.el's version.

* lisp/dired.el (dired-initial-position): Merge dired-x's version here.
(dired-find-subdir): Declare.

* doc/misc/dired-x.texi (Technical Details):
No longer redefines dired-initial-position.

13 years ago* doc/emacs/dired.texi (Dired): Dired-X version number was dropped.
Glenn Morris [Sat, 19 Feb 2011 04:06:40 +0000 (20:06 -0800)]
* doc/emacs/dired.texi (Dired): Dired-X version number was dropped.

13 years agoMerge dired-x's dired-add-entry modifications into the main definition.
Glenn Morris [Sat, 19 Feb 2011 03:53:35 +0000 (19:53 -0800)]
Merge dired-x's dired-add-entry modifications into the main definition.

* lisp/dired-aux.el (dired-add-entry): Give it a doc-string.
Merge dired-x's dired-omit handling here.
(dired-omit-mode, dired-omit-regexp, dired-omit-localp): Declare.

* lisp/dired-x.el (dired-omit-new-add-entry): Merge into dired-add-entry.

* doc/misc/dired-x.texi (Technical Details): No longer redefines
dired-add-entry.

13 years agomule-diag.el fix for bug#8066.
Glenn Morris [Sat, 19 Feb 2011 03:38:45 +0000 (19:38 -0800)]
mule-diag.el fix for bug#8066.

* lisp/international/mule-diag.el (list-input-methods-1):
Indent all lines of multi-line doc-strings.

13 years agoauth-source.el (auth-source-search): If we don't find a match, don't bug out on non...
Lars Ingebrigtsen [Fri, 18 Feb 2011 23:15:24 +0000 (23:15 +0000)]
auth-source.el (auth-source-search): If we don't find a match, don't bug out on non-bound variables.
 (auth-source-search): Only ask a single backend to create the credentials.

13 years agoFix incorrect changes introduced in 2011-02-02T17:59:44Z!sds@gnu.org.
Chong Yidong [Fri, 18 Feb 2011 22:52:58 +0000 (17:52 -0500)]
Fix incorrect changes introduced in 2011-02-02T17:59:44Z!sds@gnu.org.

* lisp/apropos.el (apropos-print): Call apropos-mode before setting up
buffer variables.  Use inhibit-read-only.

* lisp/emacs-lisp/package.el (package--list-packages): Call
package-menu-mode before setting up buffer variables.

* lisp/play/solitaire.el (solitaire): Call solitaire-mode before
setting up buffer variables.  Use inhibit-read-only.

13 years ago* lib-src/emacsclient.c (main): Loop while `recv' return EINTR.
Karl Chen [Fri, 18 Feb 2011 22:28:09 +0000 (17:28 -0500)]
* lib-src/emacsclient.c (main): Loop while `recv' return EINTR.

13 years ago* lisp/progmodes/sh-script.el (sh-syntax-propertize-here-doc):
Lawrence Mitchell [Fri, 18 Feb 2011 21:46:08 +0000 (16:46 -0500)]
* lisp/progmodes/sh-script.el (sh-syntax-propertize-here-doc):
Bind case-fold-search to nil when looking for end of here-doc.

Fixes: debbugs:8053

13 years agoStill more followup for bug #7942.
Eli Zaretskii [Fri, 18 Feb 2011 19:11:04 +0000 (21:11 +0200)]
Still more followup for bug #7942.

13 years agodoc/misc/eieio.texi: More followup for bug #7942.
Eli Zaretskii [Fri, 18 Feb 2011 19:07:44 +0000 (21:07 +0200)]
doc/misc/eieio.texi: More followup for bug #7942.

13 years agoFollowup for fixing bug #7942.
Eli Zaretskii [Fri, 18 Feb 2011 19:03:59 +0000 (21:03 +0200)]
Followup for fixing bug #7942.

 doc/lispref/elisp.texi: Sync @dircategory with ../../info/dir.
 doc/lispintro/emacs-lisp-intro.texi: Sync @dircategory with ../../info/dir.
 doc/misc/ede.texi: Sync letter-case with ../../info/dir.

13 years agoFix bug #8047 with require-final-newline in binary image buffers.
Eli Zaretskii [Fri, 18 Feb 2011 17:59:06 +0000 (19:59 +0200)]
Fix bug #8047 with require-final-newline in binary image buffers.

 image-mode.el (image-toggle-display-image): Set
 find-file-literally non-nil in buffers visiting binary image
 files.

13 years agoFix bug #8047 with require-final-newline and image file display.
Eli Zaretskii [Fri, 18 Feb 2011 17:51:15 +0000 (19:51 +0200)]
Fix bug #8047 with require-final-newline and image file display.

 image-mode.el (image-toggle-display-image): Disable
 require-final-newline in buffers visiting binary image files.

13 years ago* alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
Stefan Monnier [Fri, 18 Feb 2011 17:37:30 +0000 (12:37 -0500)]
* alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
* process.c (Fstart_process, Fmake_serial_process)
(Fmake_network_process, server_accept_connection):
Use empty_unibyte_string.

13 years ago* lisp/files.el (cd): Make completion obey cd-path.
Stefan Monnier [Fri, 18 Feb 2011 17:18:16 +0000 (12:18 -0500)]
* lisp/files.el (cd): Make completion obey cd-path.
* lread.c (Qdir_ok): New constant.
(syms_of_lread): Initialize it.
(openp): Don't ignore directories if the predicate returns dir-ok.

Fixes: debbugs:7924

13 years agoDocument *SUBSTRING completion for Unicode character names.
Eli Zaretskii [Fri, 18 Feb 2011 15:43:22 +0000 (17:43 +0200)]
Document *SUBSTRING completion for Unicode character names.

 international/mule-cmds.el (read-char-by-name, ucs-insert):
 Document completion with asterisk and a substring.

13 years agoxdisp.c (display_line): Fix the change made for bug#7939.
Eli Zaretskii [Fri, 18 Feb 2011 15:11:10 +0000 (17:11 +0200)]
xdisp.c (display_line): Fix the change made for bug#7939.

13 years agoFix bug #7840 with default terminal and keyboard encodings.
Eli Zaretskii [Fri, 18 Feb 2011 14:48:28 +0000 (16:48 +0200)]
Fix bug #7840 with default terminal and keyboard encodings.

 terminal.c (create_terminal): Use default-keyboard-coding-system
 and default-terminal-coding-system to initialize coding systems of
 the new terminal.

13 years agoSynchronize @dircategory directives in doc/misc with info/dir.
Eli Zaretskii [Fri, 18 Feb 2011 13:57:53 +0000 (15:57 +0200)]
Synchronize @dircategory directives in doc/misc with info/dir.

 ada-mode.texi: Sync @dircategory with ../../info/dir.
 auth.texi: Sync @dircategory with ../../info/dir.
 autotype.texi: Sync @dircategory with ../../info/dir.
 calc.texi: Sync @dircategory with ../../info/dir.
 cc-mode.texi: Sync @dircategory with ../../info/dir.
 cl.texi: Sync @dircategory with ../../info/dir.
 dbus.texi: Sync @dircategory with ../../info/dir.
 dired-x.texi: Sync @dircategory with ../../info/dir.
 ebrowse.texi: Sync @dircategory with ../../info/dir.
 ede.texi: Sync @dircategory with ../../info/dir.
 ediff.texi: Sync @dircategory with ../../info/dir.
 edt.texi: Sync @dircategory with ../../info/dir.
 eieio.texi: Sync @dircategory with ../../info/dir.
 emacs-mime.texi: Sync @dircategory with ../../info/dir.
 epa.texi: Sync @dircategory with ../../info/dir.
 erc.texi: Sync @dircategory with ../../info/dir.
 eshell.texi: Sync @dircategory with ../../info/dir.
 eudc.texi: Sync @dircategory with ../../info/dir.
 flymake.texi: Sync @dircategory with ../../info/dir.
 forms.texi: Sync @dircategory with ../../info/dir.
 gnus.texi: Sync @dircategory with ../../info/dir.
 idlwave.texi: Sync @dircategory with ../../info/dir.
 mairix-el.texi: Sync @dircategory with ../../info/dir.
 message.texi: Sync @dircategory with ../../info/dir.
 mh-e.texi: Sync @dircategory with ../../info/dir.
 newsticker.texi: Sync @dircategory with ../../info/dir.
 nxml-mode.texi: Sync @dircategory with ../../info/dir.
 org.texi: Sync @dircategory with ../../info/dir.
 pcl-cvs.texi: Sync @dircategory with ../../info/dir.
 pgg.texi: Sync @dircategory with ../../info/dir.
 rcirc.texi: Sync @dircategory with ../../info/dir.
 reftex.texi: Sync @dircategory with ../../info/dir.
 remember.texi: Sync @dircategory with ../../info/dir.
 sasl.texi: Sync @dircategory with ../../info/dir.
 sc.texi: Sync @dircategory with ../../info/dir.
 semantic.texi: Sync @dircategory with ../../info/dir.
 ses.texi: Sync @dircategory with ../../info/dir.
 sieve.texi: Sync @dircategory with ../../info/dir.
 smtpmail.texi: Sync @dircategory with ../../info/dir.
 speedbar.texi: Sync @dircategory with ../../info/dir.
 trampver.texi [emacs]: Set emacsname to "Emacs".
 tramp.texi: Sync @dircategory with ../../info/dir.
 url.texi: Sync @dircategory with ../../info/dir.
 vip.texi: Sync @dircategory with ../../info/dir.
 viper.texi: Sync @dircategory with ../../info/dir.
 widget.texi: Sync @dircategory with ../../info/dir.
 woman.texi: Sync @dircategory with ../../info/dir.

13 years agoDocument find-file-literally in the ELisp manual.
Eli Zaretskii [Fri, 18 Feb 2011 10:23:51 +0000 (12:23 +0200)]
Document find-file-literally in the ELisp manual.

 files.texi (Visiting Functions): Document find-file-literally,
 both the command and the variable.

13 years agoImprove documentation of permanent local variables.
Eli Zaretskii [Fri, 18 Feb 2011 10:04:48 +0000 (12:04 +0200)]
Improve documentation of permanent local variables.

 variables.texi (Creating Buffer-Local): Explain the meaning of
 permanent local variables.

13 years agoSilence prolog.el compilation.
Glenn Morris [Fri, 18 Feb 2011 08:42:21 +0000 (00:42 -0800)]
Silence prolog.el compilation.

* lisp/progmodes/prolog.el: Don't require compile when compiling.
  -- not using any macros from it, it's just a cheap way to silence the
  compiler that actually produces one warning.
(compilation-shell-minor-mode, compilation-error-regexp-alist)
(compilation-forget-errors, compilation-fake-loc)
(compilation-parse-errors-function, compilation-error-list): Declare.
(prolog-inferior-mode): Require 'compile.

13 years ago* lisp/emulation/cua-base.el (pc-selection-mode): Declare.
Glenn Morris [Fri, 18 Feb 2011 08:17:20 +0000 (00:17 -0800)]
* lisp/emulation/cua-base.el (pc-selection-mode): Declare.

13 years agoImport crypto/md5 module from gnulib.
Paul Eggert [Fri, 18 Feb 2011 08:07:03 +0000 (00:07 -0800)]
Import crypto/md5 module from gnulib.

* Makefile.in (MAKEFILE_MODULES): Add crypto/md5.
* admin/notes/copyright: Remove src/md5.c and src/md5.h as
special cases.
* src/Makefile.in (base_obj): Remove md5.o, since this file
is in lib now.
* src/deps.mk (md5.o): Remove.
* aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
Regenerate.
* lib/md5.c: Regenerate.  This renames the file from src/md5.c,
and adds some porting improvements from gnulib.
* lib/md5.h: Regenerate, likwise; rename from src/md5.h.
* m4/md5.m4: New file, from gnulib.

2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>

13 years agoUse generated-autoload-file for internal eieio autoloads.
Glenn Morris [Fri, 18 Feb 2011 08:00:08 +0000 (00:00 -0800)]
Use generated-autoload-file for internal eieio autoloads.

* lisp/emacs-lisp/eieio-custom.el: Set generated-autoload-file.
(customize-object): Add autoload cookie.

* lisp/emacs-lisp/eieio-opt.el: Set generated-autoload-file.
(eieio-browse, describe-class, eieio-describe-class)
(eieio-describe-constructor, describe-generic, eieio-describe-generic)
(eieio-help-mode-augmentation-maybee): Add autoload cookies.

* lisp/emacs-lisp/eieio.el: Regenerate with automatic autoloads.

* lisp/Makefile.in (autoloads): Make eieio.el writable.

13 years ago* doc/misc/dired-x.texi (Optional Installation File At Point): Simplify.
Glenn Morris [Fri, 18 Feb 2011 07:54:28 +0000 (23:54 -0800)]
* doc/misc/dired-x.texi (Optional Installation File At Point): Simplify.

13 years agodired-x largely cosmetic changes.
Glenn Morris [Fri, 18 Feb 2011 07:48:40 +0000 (23:48 -0800)]
dired-x largely cosmetic changes.

* lisp/dired-x.el (dired-clean-up-after-deletion, dired-do-relsymlink)
(dired-do-relsymlink-regexp, dired-find-buffer-nocreate): Use #'.
(dired-hack-local-variables): Use inhibit-read-only.
(dired-guess-default): Simplify.
(dired-make-relative-symlink): Use dotimes.
(dired-simultaneous-find-file): Use dolist.
(dired-mark-sexp): Remove unneeded `if'.  Use line-end-position.
(dired-x-hands-off-my-keys): Doc fix.
(dired-x-bind-find-file): Doc fix.  Use remapping.
(after-init-hook): No need to add dired-x-bind-find-file.
(dired-x-find-file, dired-x-find-file-other-window): Doc fixes.
No need to call expand-file-name.
(dired-filename-at-point): Remove unused locals `end', `filename'.

13 years agoMerge from mainline.
Paul Eggert [Fri, 18 Feb 2011 07:44:39 +0000 (23:44 -0800)]
Merge from mainline.

13 years agoImport IRIX 6.5 getloadavg fixes from gnulib.
Paul Eggert [Fri, 18 Feb 2011 07:41:43 +0000 (23:41 -0800)]
Import IRIX 6.5 getloadavg fixes from gnulib.

* configure, lib/getloadavg.c, m4/getloadavg.m4: Regenerate.

13 years ago* lisp/.gitignore: Remove arch-tag.
Glenn Morris [Fri, 18 Feb 2011 05:21:57 +0000 (21:21 -0800)]
* lisp/.gitignore: Remove arch-tag.

13 years ago* lisp/gnus.el (gnus-meta): Doc fix.
Glenn Morris [Fri, 18 Feb 2011 05:17:10 +0000 (21:17 -0800)]
* lisp/gnus.el (gnus-meta): Doc fix.

13 years ago* lisp/files.el (find-file-literally): Doc fix.
Glenn Morris [Fri, 18 Feb 2011 05:15:22 +0000 (21:15 -0800)]
* lisp/files.el (find-file-literally): Doc fix.

13 years ago* doc/lispref/keymaps.texi (Remapping Commands): Mention how to undo it.
Glenn Morris [Fri, 18 Feb 2011 05:11:26 +0000 (21:11 -0800)]
* doc/lispref/keymaps.texi (Remapping Commands): Mention how to undo it.

13 years ago* lisp/emacs-lisp/pcase.el (pcase--u1): Understand non-linear patterns.
Stefan Monnier [Fri, 18 Feb 2011 04:58:21 +0000 (23:58 -0500)]
* lisp/emacs-lisp/pcase.el (pcase--u1): Understand non-linear patterns.

13 years agoFix ERT.
Christian Ohler [Fri, 18 Feb 2011 04:20:36 +0000 (15:20 +1100)]
Fix ERT.

* lisp/emacs-lisp/ert.el (ert--setup-results-buffer)
(ert-results-pop-to-backtrace-for-test-at-point)
(ert-results-pop-to-messages-for-test-at-point)
(ert-results-pop-to-should-forms-for-test-at-point)
(ert-results-pop-to-timings): Revert parts of 2011-02-02T17:59:44Z!sds@gnu.org that
were incorrect and unnecessary.  This should make `make check'
pass again.

13 years agoDon't GC-scan stack data redundantly.
Stefan Monnier [Fri, 18 Feb 2011 02:07:36 +0000 (21:07 -0500)]
Don't GC-scan stack data redundantly.
* src/alloc.c (Fgarbage_collect): When using stack scanning, don't
redundantly scan byte-code stacks, catchlist, and handlerlist.
* src/bytecode.c (BYTE_MAINTAIN_TOP): New macros.
(struct byte_stack): Only define `top' and `bottom' if used.
(mark_byte_stack): Only define if used.
(BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
is not set.
(Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
* src/lisp.h (BYTE_MARK_STACK): New macro.
(mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
* src/term.c (OUTPUT_IF): Use OUTPUT.

13 years agoauth-source.el (auth-source-search): Don't try to create credentials if the caller...
Lars Ingebrigtsen [Fri, 18 Feb 2011 01:48:21 +0000 (01:48 +0000)]
auth-source.el (auth-source-search): Don't try to create credentials if the caller doesn't want that.

13 years agonnimap.el (nnimap-log-command): Add a newline to the inhibited logging.
Lars Ingebrigtsen [Fri, 18 Feb 2011 00:41:50 +0000 (00:41 +0000)]
nnimap.el (nnimap-log-command): Add a newline to the inhibited logging.
 (nnimap-credentials): Protect against auth-source-search returning nil.
 (nnimap-request-list): Protect against not being able to open the server.

13 years agoauth-source.el (auth-source-search): Do a two-phase search, one with no :create to...
Lars Ingebrigtsen [Thu, 17 Feb 2011 23:48:59 +0000 (23:48 +0000)]
auth-source.el (auth-source-search): Do a two-phase search, one with no :create to get the responses from all backends.

13 years agoMerge chagnes made in Gnus trunk.
Gnus developers [Thu, 17 Feb 2011 23:46:18 +0000 (23:46 +0000)]
Merge chagnes made in Gnus trunk.

auth.texi (GnuPG and EasyPG Assistant Configuration): Mention the default now is to have two files in `auth-sources'.
nnimap.el (nnimap-open-connection-1): Delete duplicate server names when getting credentials.
gnus-util.el (gnus-delete-duplicates): New function.
nnimap.el (nnimap-credentials): Instead of picking the first port as a creation default, pass the whole port list down.  It will be completed.
auth-source.el (auth-source-search): Updated docs to talk about multiple creation choices.
 (auth-source-netrc-create): Accept a list as a value (from the search parameters) and do completion on that list.  Keep a separate netrc line with the password obscured for showing the user.
nnimap.el (nnimap-open-connection-1): Make the `nnimap-address' the first choice to `auth-source-search' so it will be used for entry creation instead of the server's Gnus-specific name.
 (nnimap-credentials): Rely on the auth-source library to select which port is actually wanted in the new netrc entry, so don't override `auth-source-creation-defaults'.

13 years ago(allout-encrypt-string): Recognize epg failure to decrypt gpg2 armored text
Ken Manheimer [Thu, 17 Feb 2011 22:57:38 +0000 (17:57 -0500)]
(allout-encrypt-string): Recognize epg failure to decrypt gpg2 armored text
using gpg1, and add indication the gpg version *might* be the problem in
the error message.

13 years ago* lisp/allout-widgets.el: (allout-widgets-icons-light-subdir)
Ken Manheimer [Thu, 17 Feb 2011 21:47:18 +0000 (16:47 -0500)]
* lisp/allout-widgets.el: (allout-widgets-icons-light-subdir)
(allout-widgets-icons-dark-subdir): Track relocations of icons
* lisp/allout.el: Remove commentary about remove encryption passphrase
mnemonic support and verification.
* etc/images/icons/allout-widgets/dark-bg,
etc/images/icons/allout-widgets/light-bg,
encrypted-locked.{xpm,png}, unlocked-encrypted.{xpm,png}: Reorganize icon
directories and files to reconcile against windows short-filename clashes.

13 years agoauth-source.el (auth-source-debug): Default to off.
Teodor Zlatanov [Thu, 17 Feb 2011 12:50:01 +0000 (12:50 +0000)]
auth-source.el (auth-source-debug): Default to off.

13 years agoauth.texi (Help for users): Use :port instead of :protocol for all auth-source docs.
Teodor Zlatanov [Thu, 17 Feb 2011 12:08:48 +0000 (12:08 +0000)]
auth.texi (Help for users): Use :port instead of :protocol for all auth-source docs.
auth-source.el (auth-source-netrc-parse): Use :port instead of :protocol and accept a missing user, host, or port as a wildcard match.
 (auth-source-netrc-search, auth-source-netrc-create)
 (auth-source-secrets-search, auth-source-secrets-create)
 (auth-source-user-or-password, auth-source-backend, auth-sources)
 (auth-source-backend-parse-parameters, auth-source-search): Use :port instead of :protocol.
nnimap.el (nnimap-credentials): Pass a port default to `auth-source-search' in case an entry needs to be created.
 (nnimap-open-connection-1): Use :port instead of :protocol.

13 years ago* lisp/net/rcirc.el (rcirc-float-time): New function.
Deniz Dogan [Thu, 17 Feb 2011 11:41:49 +0000 (12:41 +0100)]
* lisp/net/rcirc.el (rcirc-float-time): New function.
(rcirc-keepalive, rcirc-handler-ctcp-KEEPALIVE)
(rcirc-ctcp-sender-PING): Use it.

13 years agoFix KVAR/BVAR,
Jan Djärv [Thu, 17 Feb 2011 10:19:29 +0000 (11:19 +0100)]
Fix KVAR/BVAR,

* nsfns.m (Fx_create_frame, ns_set_name_as_filename)
(Fns_read_file_name): Replace B_ with BVAR.

* nsterm.m (ns_term_init): Use KVAR.

13 years ago* lisp/simple.el (rfc822-goto-eoh): Give it a doc-string.
Glenn Morris [Thu, 17 Feb 2011 07:43:53 +0000 (23:43 -0800)]
* lisp/simple.el (rfc822-goto-eoh): Give it a doc-string.

13 years agolog-edit.el fix for bug#8057.
Glenn Morris [Thu, 17 Feb 2011 07:27:37 +0000 (23:27 -0800)]
log-edit.el fix for bug#8057.

* lisp/log-edit.el (log-edit-insert-changelog):
Fix `log-edit-strip-single-file-name' functionality.

13 years ago* lisp/progmodes/prolog.el: Header comment fix.
Glenn Morris [Thu, 17 Feb 2011 05:16:12 +0000 (21:16 -0800)]
* lisp/progmodes/prolog.el: Header comment fix.

13 years agoConvert some defvars to defcustoms.
Glenn Morris [Thu, 17 Feb 2011 05:13:17 +0000 (21:13 -0800)]
Convert some defvars to defcustoms.

* lisp/speedbar.el (speedbar-ignored-modes, speedbar-file-unshown-regexp)
(speedbar-update-flag, speedbar-fetch-etags-command)
(speedbar-fetch-etags-arguments):
* lisp/term.el (term-buffer-maximum-size, term-input-chunk-size)
(term-completion-autolist, term-completion-addsuffix)
(term-completion-recexact, term-completion-fignore):
* lisp/term/sup-mouse.el (sup-mouse-fast-select-window):
* lisp/term/x-win.el (x-select-request-type):
Convert some defvars with "*" to defcustoms.

13 years agoauth-source.el (auth-source-secrets-search): Use mm-delete-duplicates instead of...
Katsumi Yamaoka [Thu, 17 Feb 2011 05:09:02 +0000 (05:09 +0000)]
auth-source.el (auth-source-secrets-search): Use mm-delete-duplicates instead of delete-dups that is not available in XEmacs 21.4.

13 years agoshell.el fix for bug#8027 and friends.
Glenn Morris [Thu, 17 Feb 2011 05:02:02 +0000 (21:02 -0800)]
shell.el fix for bug#8027 and friends.

* lisp/shell.el (shell-delimiter-argument-list): Set it to nil.

This is a test, to see if causes any issues.

13 years agovc.el fix for bug#4496.
Glenn Morris [Thu, 17 Feb 2011 04:57:22 +0000 (20:57 -0800)]
vc.el fix for bug#4496.

* lisp/vc/vc.el (vc-default-previous-version):
Remove broken alias that points nowhere.

13 years agoMore dired-x cleanup.
Glenn Morris [Thu, 17 Feb 2011 04:50:47 +0000 (20:50 -0800)]
More dired-x cleanup.

* lisp/dired-x.el (dired-clean-up-after-deletion):
kill-buffer does not need save-excursion.
(dired-do-run-mail): Doc fix.
(dired-filename-at-point): Doc fix.
Use looking-at, and skip-chars rather than re search.
(skip-chars were used prior to 2003-01-27T11:36:08Z!fx@gnu.org, and are ok to use again
since Emacs 22.1, because char-classes are supported.)

13 years agoFix copyright, standardize header and licence.
Glenn Morris [Thu, 17 Feb 2011 04:41:29 +0000 (20:41 -0800)]
Fix copyright, standardize header and licence.

13 years ago* lisp/dired-x.el (dired-filename-at-point): Fix 8-year old typo.
Glenn Morris [Thu, 17 Feb 2011 04:38:23 +0000 (20:38 -0800)]
* lisp/dired-x.el (dired-filename-at-point): Fix 8-year old typo.
Introduced in 2003-01-27T11:36:08Z!fx@gnu.org, 2003/01/27.

13 years agoDon't let-bind copyright-update in nnfolder-save-buffer.
Chong Yidong [Thu, 17 Feb 2011 01:46:55 +0000 (20:46 -0500)]
Don't let-bind copyright-update in nnfolder-save-buffer.

See:
http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00284.html
http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00651.html

* nnfolder.el (nnfolder-save-buffer): Don't let-bind copyright-update,
in case it's not yet loaded.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 16 Feb 2011 23:12:47 +0000 (23:12 +0000)]
Merge changes made in Gnus trunk.

gnus-sum.el (gnus-propagate-marks): Change default to t again, since nil means that nnimap doesn't get updated.
auth-source.el (auth-source-netrc-create): Return a synthetic search result when the user doesn't want to write to the file.
 (auth-source-netrc-search): Expect a synthetic result and proceed accordingly.
 (auth-source-cache-expiry): New variable to override `password-cache-expiry'.
 (auth-source-remember): Use it.
nnimap.el (nnimap-credentials): Remove the `inhibit-create' parameter.  Create entry if necessary by using :create t.
 (nnimap-open-connection-1): Don't pass `inhibit-create'.

13 years ago* lisp/allout-widgets.el: New allout extension that shows allout outline
Ken Manheimer [Wed, 16 Feb 2011 22:10:43 +0000 (17:10 -0500)]
* lisp/allout-widgets.el: New allout extension that shows allout outline
structure with graphical widgets.  'allout-widgets' customize group is an
'allout' subgroup, for easy discovery.
* etc/images/icons/allout-widgets-dark-bg,
etc/images/icons/allout-widgets-light-bg: Icons for new allout-widgets.el.
* etc/images/icons/README: Include coypright and GPL 3 license for new
icons.

13 years agoInclude PGP and GnuPG in Keywords, and other commentary refinements.
Ken Manheimer [Wed, 16 Feb 2011 21:29:32 +0000 (16:29 -0500)]
Include PGP and GnuPG in Keywords, and other commentary refinements.
(allout-abbreviate-flattened-numbering): Rename to
allout-flattened-numbering-abbreviation, and define-obsolete-variable-alias
the old name.
(allout-flattened-numbering-abbreviation): Rename from
allout-abbreviate-flattened-numbering.
(allout-mode-p): Include among autoloads, for use by other modes with impunity.
(allout-listify-exposed): Use allout-flattened-numbering-abbreviation.
(allout-encrypt-string): Use set-buffer-multibyte directly.
(allout-set-buffer-multibyte): Remove.

13 years ago* lisp/simple.el (just-one-space): Remove useless `or' call.
Deniz Dogan [Wed, 16 Feb 2011 21:06:23 +0000 (22:06 +0100)]
* lisp/simple.el (just-one-space): Remove useless `or' call.

13 years ago* soap-client.el (soap-well-known-xmlns, soap-local-xmlns)
Michael Albinus [Wed, 16 Feb 2011 19:56:31 +0000 (20:56 +0100)]
* soap-client.el (soap-well-known-xmlns, soap-local-xmlns)
(soap-default-xmlns, soap-target-xmlns, soap-multi-refs)
(soap-decoded-multi-refs, soap-current-wsdl)
(soap-encoded-namespaces): Rename CL-style *...* variables.

13 years ago* NEWS: Add soap-client.el and soap-inspect.el.
Michael Albinus [Wed, 16 Feb 2011 19:41:31 +0000 (20:41 +0100)]
* NEWS: Add soap-client.el and soap-inspect.el.

13 years ago* net/soap-client.el: Add "comm" and "hypermedia" to the
Michael Albinus [Wed, 16 Feb 2011 19:33:35 +0000 (20:33 +0100)]
* net/soap-client.el: Add "comm" and "hypermedia" to the
keywords.  Reflow too long lines.

* net/soap-inspect.el: Ditto.  Require 'cl.

13 years agoUse KVAR in the MS-DOS build.
Eli Zaretskii [Wed, 16 Feb 2011 19:09:20 +0000 (21:09 +0200)]
Use KVAR in the MS-DOS build.

 msdos.c (internal_terminal_init): Use KVAR.

13 years agoFix formatting of src/ChangeLog entries.
Eli Zaretskii [Wed, 16 Feb 2011 18:49:57 +0000 (20:49 +0200)]
Fix formatting of src/ChangeLog entries.

13 years agosrc/s/ms-w32.h (getloadavg): Declare prototype which was removed from lisp.h.
Eli Zaretskii [Wed, 16 Feb 2011 18:47:21 +0000 (20:47 +0200)]
src/s/ms-w32.h (getloadavg): Declare prototype which was removed from lisp.h.

13 years agoUse KVAR in MS-Windows build, remove buffer-file-type.
Eli Zaretskii [Wed, 16 Feb 2011 18:39:46 +0000 (20:39 +0200)]
Use KVAR in MS-Windows build, remove buffer-file-type.

 w32fns.c (Fx_create_frame): Use KVAR.
 w32term.c (w32_create_terminal): Use KVAR.
 s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
 xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
 fileio.c (Finsert_file_contents, Fwrite_region): Remove
 references to buffer_file_type.
 (syms_of_fileio): Don't intern and staticpro
 find-buffer-file-type.
 callproc.c (syms_of_callproc): Remove references to
 buffer_file_type.
 buffer.c (reset_buffer_local_variables): Don't set
 buffer_file_type.
 (init_buffer_once): Likewise.
 (syms_of_buffer): Don't define buffer-file-type.
 buffer.h (struct buffer): Remove buffer_file_type.

13 years agoplay/doctor.el: bugfix for `doctor-mode'.
Bastien Guerry [Wed, 16 Feb 2011 16:55:21 +0000 (17:55 +0100)]
play/doctor.el: bugfix for `doctor-mode'.

* play/doctor.el (doctor-mode): Bugfix: escape the "," character
in a `doctor-type' argument.

13 years agoHide implementation of `struct kboard'
Tom Tromey [Wed, 16 Feb 2011 16:35:16 +0000 (09:35 -0700)]
Hide implementation of `struct kboard'
* callint.c (Fcall_interactively): Update.
* doc.c (Fsubstitute_command_keys): Update.
* cmds.c (Fself_insert_command): Update.
* keymap.c (Fcurrent_active_maps, Fkey_binding)
(Fdescribe_buffer_bindings): Update.
* macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
(store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
Update.
* keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
(echo_length, echo_truncate, cmd_error, command_loop_1)
(read_char, kbd_buffer_store_event_hold, make_lispy_event)
(menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
(read_key_sequence, Fcommand_execute, Fexecute_extended_command)
(Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
Update.
* xfns.c (Fx_create_frame): Update.
* xterm.c (x_connection_closed, x_term_init): Update.
* term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
Update.
* window.c (window_scroll_pixel_based, window_scroll_line_based):
Update.
* frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
(delete_frame): Update.
* lisp.h (DEFVAR_KBOARD): Update for change to field names.
* keyboard.h (struct kboard): Rename all Lisp_Object fields.
(KBOARD_INTERNAL_FIELD, KVAR): New macros.

13 years ago* lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
Tom Tromey [Wed, 16 Feb 2011 15:20:08 +0000 (08:20 -0700)]
* lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.