bpt/emacs.git
10 years agoRemove dependencies on getdelim and getline.
Paul Eggert [Mon, 19 May 2014 04:56:03 +0000 (21:56 -0700)]
Remove dependencies on getdelim and getline.

Also, remove update-game-scores's limits on game scores and
simplify its file-locking code.
* configure.ac (getdelim, getline): Remove.
* lib-src/update-game-score.c (struct score_entry): Unify the username and
data members to a single user_data member, since they don't need to be
changed independently and getdelim and getline aren't helpful.
Make the score member char *, not intmax_t, so that scores are not
limited to intmax_t.  All uses changed.
(lose_syserr): A zero errno stands for invalid data in score file.
(normalize_integer): New function.
(main): Use it.  Check for invalid scores.  Omit redundant stat check.
(read_score): First arg is now a string, not a FILE *.  All uses
changed.  Do not use getdelim or getline; that's way simpler.
(read_scores): Read the whole file, and let read_score handle each
line.
(score_compare): Compare strings representing integers, not integers.
(write_scores) [DOS_NT]: Eliminate unnecessary chmod.
(lock_file): Simplify locking code, eliminating goto.
Check for unlink failure.

10 years ago* configure.ac: Do not bother testing for png in non-graphical builds.
Glenn Morris [Sun, 18 May 2014 23:02:29 +0000 (16:02 -0700)]
* configure.ac: Do not bother testing for png in non-graphical builds.
This seems to have been lost in the changes from the current emacs-24
branch version.

10 years agoTrivial simplifications due to track-mouse always being defined
Glenn Morris [Sun, 18 May 2014 22:57:37 +0000 (15:57 -0700)]
Trivial simplifications due to track-mouse always being defined

* lisp/loadup.el:
* lisp/play/gametree.el: `track-mouse' is always defined since 2012-11-24.

10 years agoPort ctags+etags build to Sun C 5.12.
Paul Eggert [Sun, 18 May 2014 18:57:04 +0000 (11:57 -0700)]
Port ctags+etags build to Sun C 5.12.

* .bzrignore: Remove lib-src/ctags.c.
* lib-src/Makefile.in (etags_args): Remove, replacing with ...
(etags_cflags, etags_libs): New macros.  All uses changed.
(ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in
parallel (once for ctags, once for etags) breaks parallel makes
with compilers that use the source file name to name temporaries,
such as Sun C 5.12.  Instead, compile ctags.c.
* lib-src/ctags.c: New file.

10 years agoPort recent libpng changes to hosts with missing png.h.
Paul Eggert [Sun, 18 May 2014 05:50:17 +0000 (22:50 -0700)]
Port recent libpng changes to hosts with missing png.h.

* configure.ac (HAVE_PNG): Port to platforms where libpng-config
succeeds but png.h is absent, by testing libpng-config's output
rather than trusting it.  I ran into this problem when building
Emacs trunk on a Solaris 10 host.

10 years agoAssume C99 or later.
Paul Eggert [Sat, 17 May 2014 08:11:31 +0000 (01:11 -0700)]
Assume C99 or later.

* lib/stdarg.in.h, lib/stdbool.in.h, m4/stdarg.m4, m4/stdbool.m4:
Remove.
* configure.ac (_AC_PROG_CC_C89): Define a dummy, to keep 'configure'
smaller.
(gl_PROG_CC_C99): Use this to get C99 or later.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Remove stdarg, stdbool.
(GNULIB_TOOL_FLAGS): Avoid stdarg, stdbool.
* doc/lispref/internals.texi (C Dialect): Document this.
* etc/NEWS: Document this.
* nt/gnulib.mk: Remove stdarg and stdbool modules.
* src/bytecode.c (B__dummy__): Remove.
* src/conf_post.h (bool_bf) [!NS_IMPL_GNUSTEP]: Use bool.
(FLEXIBLE_ARRAY_MEMBER): Now always empty.
* src/dbusbind.c (XD_DEBUG_MESSAGE) [!DBUS_DEBUG]:
* src/regex.c (DEBUG_PRINT): Assume varargs macros.
* src/lisp.h (DEFUN_FUNCTION_INIT): Remove.  All uses now assume C99.

Fixes: debbugs:17487

10 years agoAlways map new memory for buffers after dumping.
Fabrice Popineau [Sat, 17 May 2014 07:14:59 +0000 (10:14 +0300)]
Always map new memory for buffers after dumping.

 src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Always map new
 memory for every buffer that was dumped.

10 years ago* configure.ac (EMACS_CHECK_MODULES): Fix typo and simplify.
Paul Eggert [Fri, 16 May 2014 19:03:07 +0000 (12:03 -0700)]
* configure.ac (EMACS_CHECK_MODULES): Fix typo and simplify.

10 years agoDon't require pkg-config when building from repository.
Paul Eggert [Fri, 16 May 2014 15:49:13 +0000 (08:49 -0700)]
Don't require pkg-config when building from repository.

* INSTALL: Prefer './configure FOO=BAR' to 'FOO=BAR ./configure'.
* INSTALL.REPO: pkg-config is no longer required to build from
the repository.
* autogen.sh: Don't check for pkg-config.
(progs): Remove pkg-config.
(pkg_config_min, AUTORECONF_ENV, env_space, ACLOCAL_PATH):
Remove.  All uses removed.
* m4/pkg.m4: New file, built by admin/merge-pkg-config.
* configure.ac: Remove unnecessary m4_pattern_forbid of ^PKG_ and
an AC_ARG_VAR of PKG_CONFIG_PATH.  pkg.m4 does that for us.
(EMACS_CHECK_MODULES): Remove workaround for old pkg-config bug,
as we use pkg.m4 from a newer pkg-config.
* admin/merge-pkg-config: New script.
* admin/notes/copyright: Update for m4/*.m4, in particular m4/pkg.m4.
* etc/NEWS: Prefer './configure FOO=BAR' to 'FOO=BAR ./configure'.
* etc/PROBLEMS (Build-time-problems): Remove pkg-config problem
that is no longer an issue.
* nt/INSTALL: Remove no-longer-needed notes about pkg-config.

10 years ago* etc/TODO: Add entry on printing.
Glenn Morris [Fri, 16 May 2014 06:06:55 +0000 (23:06 -0700)]
* etc/TODO: Add entry on printing.

10 years agolisp/gnus/gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part): Fix last change
Katsumi Yamaoka [Thu, 15 May 2014 23:31:30 +0000 (23:31 +0000)]
lisp/gnus/gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part): Fix last change

10 years agoFix typo
Jan Djärv [Thu, 15 May 2014 16:55:18 +0000 (18:55 +0200)]
Fix typo

10 years agoFix yet another configure error on OSX.
Jan Djärv [Thu, 15 May 2014 16:54:44 +0000 (18:54 +0200)]
Fix yet another configure error on OSX.

* configure.ac (LIBONG): Do not test for libpng if NS_IMPL_COCOA.

10 years ago* src/fns.c (Fnreverse): Allow vectors and bool vectors.
Dmitry Antipov [Thu, 15 May 2014 14:59:02 +0000 (18:59 +0400)]
* src/fns.c (Fnreverse): Allow vectors and bool vectors.
* doc/lispref/lists.texi (Building Cons Cells and Lists): Remove
description of `nreverse' and generalize it...
* doc/lispref/sequences.texi (Sequences): ...for sequences here.
* tests/automated/fns-tests.el (fns-tests-nreverse)
(fns-tests-nreverse-bool-vector): New tests.

10 years ago* tests/automated/fns-tests.el: New file.
Dmitry Antipov [Thu, 15 May 2014 10:06:45 +0000 (14:06 +0400)]
* tests/automated/fns-tests.el: New file.

10 years agolisp/gnus/gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part): Don't delete...
Katsumi Yamaoka [Thu, 15 May 2014 06:53:44 +0000 (06:53 +0000)]
lisp/gnus/gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part): Don't delete next part button; keep spacing between buttons

10 years ago* src/fns.c (Freverse): Allow vectors, bool vectors and strings.
Dmitry Antipov [Thu, 15 May 2014 06:01:46 +0000 (10:01 +0400)]
* src/fns.c (Freverse): Allow vectors, bool vectors and strings.
* doc/lispref/lists.texi (Building Cons Cells and Lists): Remove
description of `reverse' and generalize it...
* doc/lispref/sequences.texi (Sequences): ...for sequences here.

10 years agoavoid unnecessary questions
Sam Steingold [Wed, 14 May 2014 18:17:05 +0000 (14:17 -0400)]
avoid unnecessary questions

* lisp/progmodes/python.el (python-shell-get-or-create-process):
Do not bind `current-prefix-arg' so that C-c C-z does not talk
back unless requested.

10 years agoAdd with-file-modes macro, and use it
Glenn Morris [Wed, 14 May 2014 17:15:15 +0000 (10:15 -0700)]
Add with-file-modes macro, and use it

* lisp/subr.el (with-file-modes): New macro.

* lisp/printing.el (pr-save-file-modes):
* lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete.

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Add with-file-modes.

* lisp/doc-view.el (doc-view-make-safe-dir):
* lisp/epg.el (epg--start):
* lisp/files.el (locate-user-emacs-file, make-temp-file)
(backup-buffer-copy, move-file-to-trash):
* printing.el (pr-despool-print, pr-call-process, pr-text2ps):
* eshell/esh-util.el (eshell-with-private-file-modes)
(eshell-make-private-directory):
* lisp/net/browse-url.el (browse-url-mosaic):
* lisp/obsolete/mailpost.el (post-mail-send-it):
* lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region):
* lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region):
* lisp/url/url-util.el (url-make-private-file):
Use with-file-modes.

* doc/lispref/files.texi (Changing Files): Mention with-file-modes.

* etc/NEWS: Mention this.

10 years ago* lisp/vc/emerge.el (emerge-make-temp-file): Simplify.
Glenn Morris [Wed, 14 May 2014 17:05:16 +0000 (10:05 -0700)]
* lisp/vc/emerge.el (emerge-make-temp-file): Simplify.

10 years agoMerge from emacs-24; up to 2014-05-15T16:55:18Z!jan.h.d@swipnet.se
Glenn Morris [Wed, 14 May 2014 17:01:29 +0000 (10:01 -0700)]
Merge from emacs-24; up to 2014-05-15T16:55:18Z!jan.h.d@swipnet.se

10 years ago* lisp/minibuffer.el (completion-pcm--merge-try): Merge trailing / with
Stephen Berman [Wed, 14 May 2014 16:21:13 +0000 (12:21 -0400)]
* lisp/minibuffer.el (completion-pcm--merge-try): Merge trailing / with
suffix.

Fixes: debbugs:15419

10 years agoMinor cleanup for terminal setup.
Dmitry Antipov [Wed, 14 May 2014 13:55:37 +0000 (17:55 +0400)]
Minor cleanup for terminal setup.
* termhooks.h (create_terminal): Adjust prototype.
* terminal.c (create_terminal): Pass output method and RIF as args.
(init_initial_terminal):
* nsterm.m (ns_create_terminal):
* term.c (init_tty):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal): Adjust users.
Avoid redundant NULL initializers and add comments.

10 years agognus-art.el, mm-uu.el: Misc improvements for displaying MIME parts
Katsumi Yamaoka [Wed, 14 May 2014 08:50:51 +0000 (08:50 +0000)]
gnus-art.el, mm-uu.el: Misc improvements for displaying MIME parts

* gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part):
Work for the last MIME part in an article.
(gnus-mime-display-single): Suppress excessive newlines between parts.

* mm-uu.el (mm-uu-dissect): Assume that separators may be accompanied
by leading or trailing newline.

10 years agoMake some pointless/useless emerge.el options obsolete
Glenn Morris [Wed, 14 May 2014 06:59:12 +0000 (23:59 -0700)]
Make some pointless/useless emerge.el options obsolete

* vc/emerge.el (emerge-temp-file-prefix): Make pointless option obsolete.
(emerge-temp-file-mode): Make non-functional option obsolete.

10 years agoOptimize away some compat-cruft in printing.el
Glenn Morris [Wed, 14 May 2014 06:35:36 +0000 (23:35 -0700)]
Optimize away some compat-cruft in printing.el

* lisp/printing.el (subst-char-in-string, make-temp-file, pr-get-symbol):
Optimize on Emacs, which has the relevant functions for ages.

10 years ago* texinfo.tex: Update from gnulib.
Paul Eggert [Tue, 13 May 2014 23:15:48 +0000 (16:15 -0700)]
* texinfo.tex: Update from gnulib.

10 years ago* merge-gnulib: Defer to autogen.sh for ACLOCAL_PATH computation.
Paul Eggert [Tue, 13 May 2014 23:15:01 +0000 (16:15 -0700)]
* merge-gnulib: Defer to autogen.sh for ACLOCAL_PATH computation.

10 years ago* keyboard.c (Qdeactivate_mark): Now static.
Paul Eggert [Tue, 13 May 2014 22:59:36 +0000 (15:59 -0700)]
* keyboard.c (Qdeactivate_mark): Now static.

10 years ago* lisp/simple.el (undo-make-selective-list): Obey undo-no-redo.
Stefan Monnier [Tue, 13 May 2014 20:34:12 +0000 (16:34 -0400)]
* lisp/simple.el (undo-make-selective-list): Obey undo-no-redo.

10 years agoIf available, use Xfixes extension to do pointer blanking.
Dmitry Antipov [Tue, 13 May 2014 14:18:54 +0000 (18:18 +0400)]
If available, use Xfixes extension to do pointer blanking.

* configure.ac (HAVE_XFIXES): Define if available.
(XFIXES_CFLAGS, XFIXES_LIBS): New AC_SUBSTs.
* src/Makefile.in (XFIXES_CFLAGS, XFIXES_LIBS): New var.
* src/xfns.c (x_set_mouse_color): Do not call make_invisible_cursor here.
(make_invisible_cursor): Move to...
* src/xterm.c (make_invisible_cursor): ...here.
(x_probe_xfixes_extension, xfixes_toggle_visible_pointer)
(x_toggle_visible_pointer, x_setup_pointer_blanking): New functions.
(x_term_init): Call to x_setup_pointer_blanking.
(XTtoggle_invisible_pointer): Use blanking specific to this display.
* src/xterm.h (struct x_display_info): New member toggle_visible_pointer.

10 years ago* configure.ac (--enable-link-time-optimization): Add clang support.
Dmitry Antipov [Tue, 13 May 2014 11:12:05 +0000 (15:12 +0400)]
* configure.ac (--enable-link-time-optimization): Add clang support.
* INSTALL: Mention it.
* etc/PROBLEMS: Mention potential problems with
--enable-link-time-optimization and clang on Fedora 20.

10 years ago* net/browse-url.el (browse-url):
Michael Albinus [Tue, 13 May 2014 08:54:08 +0000 (10:54 +0200)]
* net/browse-url.el (browse-url):
Use `unhandled-file-name-directory' when setting `default-directory',
in order to circumvent stalled remote connections.

Fixes: debbugs:17425

10 years agoavoid function from `cl'
Sam Steingold [Mon, 12 May 2014 23:56:22 +0000 (19:56 -0400)]
avoid function from `cl'

10 years agoA better fix for bug #17479.
Eli Zaretskii [Mon, 12 May 2014 19:10:59 +0000 (22:10 +0300)]
A better fix for bug #17479.

 doc/emacs/mule.texi (Language Environments): Remove unused @anchor.

10 years agoFix bug #17479 with spliced paragraphs in User manual.
Eli Zaretskii [Mon, 12 May 2014 18:51:58 +0000 (21:51 +0300)]
Fix bug #17479 with spliced paragraphs in User manual.

 doc/emacs/mule.texi (Language Environments): Fix @anchor placement.

10 years ago(seconds-to-string): New function to pretty print time delay in seconds.
Sam Steingold [Mon, 12 May 2014 16:14:24 +0000 (12:14 -0400)]
(seconds-to-string): New function to pretty print time delay in seconds.

10 years ago* lisp/net/rcirc.el (rcirc-reconnect-delay): Add :version.
Glenn Morris [Mon, 12 May 2014 16:06:13 +0000 (09:06 -0700)]
* lisp/net/rcirc.el (rcirc-reconnect-delay): Add :version.
Defcustoms docs do not need leading "*", for some years.

10 years ago* lisp/mpc.el (mpc-format): Trim Date to the year.
Stefan Monnier [Mon, 12 May 2014 13:25:53 +0000 (09:25 -0400)]
* lisp/mpc.el (mpc-format): Trim Date to the year.
(mpc-songs-hashcons): Shorten the Date field.

10 years ago* xdisp.c (draw_glyphs): Set clipping to highlight boundaries.
YAMAMOTO Mitsuharu [Mon, 12 May 2014 08:57:59 +0000 (17:57 +0900)]
* xdisp.c (draw_glyphs): Set clipping to highlight boundaries.

10 years agoMerge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.org
Glenn Morris [Mon, 12 May 2014 06:59:30 +0000 (23:59 -0700)]
Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.org

10 years agoRegenerate AUTHORS and ldefs-boot.el
Glenn Morris [Mon, 12 May 2014 06:15:47 +0000 (23:15 -0700)]
Regenerate AUTHORS and ldefs-boot.el

10 years agoBump version to 24.3.91
Glenn Morris [Mon, 12 May 2014 06:11:08 +0000 (23:11 -0700)]
Bump version to 24.3.91

10 years agoob-screen tempfile fixes
Eric Schulte [Mon, 12 May 2014 06:09:43 +0000 (23:09 -0700)]
ob-screen tempfile fixes

* lisp/org/ob-screen.el (org-babel-screen-session-write-temp-file)
(org-babel-screen-test): Use unpredictable names for temporary files.

Fixes: debbugs:17416

10 years ago* configure.ac (EMACS_CHECK_MODULES): Fix typo in previous change.
Katsumi Yamaoka [Mon, 12 May 2014 06:09:27 +0000 (23:09 -0700)]
* configure.ac (EMACS_CHECK_MODULES): Fix typo in previous change.

10 years ago* lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled
Stefan Monnier [Mon, 12 May 2014 05:25:34 +0000 (01:25 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled
into autoloading just because of a silly indirection.

10 years agoWork around bug in pkg-config before 0.26.
Paul Eggert [Sun, 11 May 2014 19:14:12 +0000 (12:14 -0700)]
Work around bug in pkg-config before 0.26.

* configure.ac (EMACS_CHECK_MODULES): Check for failed exit status
of pkg-config, on older pkg-config versions that don't do it
properly.

Fixes: debbugs:17438

10 years ago* lisp/mouse.el: Use the normal toplevel loop while dragging.
Stefan Monnier [Sun, 11 May 2014 05:49:14 +0000 (01:49 -0400)]
* lisp/mouse.el: Use the normal toplevel loop while dragging.
(mouse-set-point): Handle multi-clicks.
(mouse-set-region): Handle multi-clicks for drags.
(mouse-drag-region): Update call accordingly.
(mouse-drag-track): Remove `do-mouse-drag-region-post-process' hack.
Use the normal event loop instead of a local while/read-event loop.
(global-map): Remove redundant bindings for double/triple-mouse-1.
* lisp/xt-mouse.el (xterm-mouse-translate-1): Only process one event at a time.
Generate synthetic down events when the protocol only sends up events.
(xterm-mouse-last): Remove.
(xterm-mouse--read-event-sequence-1000): Use xterm-mouse-last-down
terminal parameter instead.
(xterm-mouse--set-click-count): New function.
(xterm-mouse-event): Detect/generate double/triple clicks.
* lisp/reveal.el (reveal-close-old-overlays): Don't close while dragging.

10 years ago* lisp/info.el (Info-quoted): New face.
Stefan Monnier [Sun, 11 May 2014 03:49:53 +0000 (23:49 -0400)]
* lisp/info.el (Info-quoted): New face.
(Info-mode-font-lock-keywords): New var.
(Info-mode): Use it.

10 years ago* lisp/emacs-lisp/lisp-mode.el (preceding-sexp): Exclude leading "," which
Stefan Monnier [Sun, 11 May 2014 03:48:15 +0000 (23:48 -0400)]
* lisp/emacs-lisp/lisp-mode.el (preceding-sexp): Exclude leading "," which
are a hindrance for C-x C-e.

10 years agoRevert last two changes.
Paul Eggert [Sun, 11 May 2014 02:52:00 +0000 (19:52 -0700)]
Revert last two changes.

Fixes: debbugs:17438

10 years agoRequire pkg-config 0.26 or later in autogen.sh only.
Paul Eggert [Sun, 11 May 2014 02:47:57 +0000 (19:47 -0700)]
Require pkg-config 0.26 or later in autogen.sh only.

* autogen.sh (pkg_config_min): Make this at least 0.26.
* configure.ac (PKG_PROG_PKG_CONFIG): Revert back to 0.9.0.

Fixes: debbugs:17438

10 years ago* src/fileio.c (Ffile_executable_p): Doc tweak.
Glenn Morris [Sun, 11 May 2014 02:30:57 +0000 (19:30 -0700)]
* src/fileio.c (Ffile_executable_p): Doc tweak.

10 years agoRequire pkg-config 0.26 or later.
Paul Eggert [Sun, 11 May 2014 02:27:53 +0000 (19:27 -0700)]
Require pkg-config 0.26 or later.

Earlier versions are buggy, as pkg-config --libs can output
nothing, which causes xrandr link failures.
* configure.ac (PKG_PROG_PKG_CONFIG): Bump from 0.9.0 to 0.26.

Fixes: debbugs:17438

10 years ago* lisp/vc/vc-hg.el (vc-hg-unregister): New function (tiny change)
Santiago Payà i Miralta [Sun, 11 May 2014 02:01:08 +0000 (19:01 -0700)]
* lisp/vc/vc-hg.el (vc-hg-unregister): New function (tiny change)

Fixes: debbugs:17454

10 years agoMove lisp/emacs-lisp/find-gc.el to admin/
Glenn Morris [Sun, 11 May 2014 01:53:42 +0000 (18:53 -0700)]
Move lisp/emacs-lisp/find-gc.el to admin/

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00118.html

10 years ago* net/rcirc.el (rcirc-sentinel): Fix last change.
Leo Liu [Sun, 11 May 2014 01:39:49 +0000 (09:39 +0800)]
* net/rcirc.el (rcirc-sentinel): Fix last change.

10 years agoFix ChangeLog typo
Glenn Morris [Sat, 10 May 2014 22:09:03 +0000 (15:09 -0700)]
Fix ChangeLog typo

10 years agoadmin.el tweaks
Glenn Morris [Sat, 10 May 2014 21:59:05 +0000 (14:59 -0700)]
admin.el tweaks

* admin/admin.el (set-version-in-file): Don't set identical version.
(set-version): Provide default version number.
(set-version, set-copyright): Give start/end messages.

10 years agoAlso mention bug-gnu-emacs in (ps-)print.el version strings
Glenn Morris [Sat, 10 May 2014 21:41:12 +0000 (14:41 -0700)]
Also mention bug-gnu-emacs in (ps-)print.el version strings

* printing.el (pr-version):
* ps-print.el (ps-print-version): Also mention bug-gnu-emacs.

10 years ago* browse-url.el (browse-url-mosaic): Create /tmp/Mosaic.PID as a private file.
Glenn Morris [Sat, 10 May 2014 20:48:36 +0000 (13:48 -0700)]
* browse-url.el (browse-url-mosaic): Create /tmp/Mosaic.PID as a private file.

10 years ago* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
Stefan Monnier [Sat, 10 May 2014 20:07:01 +0000 (16:07 -0400)]
* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
(advice--member-p): If name is given, only compare the name.
(advice--remove-function): Don't stop at the first match.
(advice--normalize-place): New function.
(add-function, remove-function): Use it.
(advice--add-function): Pass the name, if any, to
advice--remove-function.

10 years ago* xsettings.c (init_gsettings): Use g_settings_schema_source_lookup
Jan Djärv [Sat, 10 May 2014 10:42:08 +0000 (12:42 +0200)]
* xsettings.c (init_gsettings): Use g_settings_schema_source_lookup
instead of deprecated g_settings_list_schemas if possible.

Fixes: debbugs:17434

10 years ago* lisp/electric.el (electric-indent-post-self-insert-function): Don't use
Philipp Rumpf [Fri, 9 May 2014 18:03:21 +0000 (14:03 -0400)]
* lisp/electric.el (electric-indent-post-self-insert-function): Don't use
`pos' after modifying the buffer.

Fixes: debbugs:17449

10 years agoOptionally auto-reconnect depending on `rcirc-reconnect-delay'.
Sam Steingold [Fri, 9 May 2014 17:04:46 +0000 (13:04 -0400)]
Optionally auto-reconnect depending on `rcirc-reconnect-delay'.

* net/rcirc.el (rcirc-reconnect-delay): New user option.
(rcirc-sentinel): Auto-reconnect to the server if `rcirc-reconnect-delay'
is non-0 (but not more often than its value in case the host is off-line).

10 years ago* lisp/subr.el (function-put): Add function.
Stefan Monnier [Fri, 9 May 2014 16:51:17 +0000 (12:51 -0400)]
* lisp/subr.el (function-put): Add function.

10 years ago* url-handlers.el (url-file-handler-load-in-progress): New defvar.
Michael Albinus [Fri, 9 May 2014 12:49:30 +0000 (14:49 +0200)]
* url-handlers.el (url-file-handler-load-in-progress): New defvar.
(url-file-handler): Use it, in order to avoid recursive load.

10 years agognus-art.el: Misc improvements for displaying MIME parts
Katsumi Yamaoka [Fri, 9 May 2014 09:50:14 +0000 (09:50 +0000)]
gnus-art.el: Misc improvements for displaying MIME parts

* gnus-art.el (gnus-mm-display-part): Don't put article out of sight
while prompting a user for a file name, etc.
(gnus-mime-display-single): Display part with a common appearance no
matter whether MIME button is omitted or not; don't add duplicate entry
to gnus-article-mime-handle-alist.
(gnus-mime-buttonize-attachments-in-header): Use copied buttons.

10 years agolisp/progmodes/grep.el (lgrep): Fix a typo in last commit.
Eli Zaretskii [Fri, 9 May 2014 09:10:56 +0000 (12:10 +0300)]
lisp/progmodes/grep.el (lgrep): Fix a typo in last commit.

10 years ago* calendar/todo-mode.el (todo-insert-item-from-calendar):
Stephen Berman [Fri, 9 May 2014 07:50:42 +0000 (09:50 +0200)]
* calendar/todo-mode.el (todo-insert-item-from-calendar):
Correct argument list to conform to todo-insert-item--basic.

10 years agoUse file-accessible-directory-p in some more places
Glenn Morris [Fri, 9 May 2014 07:02:00 +0000 (00:02 -0700)]
Use file-accessible-directory-p in some more places

* lisp/files.el (file-expand-wildcards):
* lisp/man.el (Man-support-local-filenames):
* lisp/printing.el (pr-i-directory, pr-interface-directory):
* lisp/progmodes/grep.el (lgrep, rgrep):
* lisp/textmodes/ispell.el (ispell-call-process)
(ispell-call-process-region, ispell-start-process)
(ispell-init-process):
* lisp/mh-e/mh-e.el (mh-variants):
Use file-accessible-directory-p.

10 years ago* files.el (cd-absolute): Test if directory is accessible
Glenn Morris [Fri, 9 May 2014 06:53:30 +0000 (23:53 -0700)]
* files.el (cd-absolute): Test if directory is accessible
rather than executable.

This can't be any worse, and may be better in some situations.
It may or may not fix bug#17330.

10 years ago* gnus/mml2015.el (mml2015-display-key-image): Fix :version tag in previous.
Glenn Morris [Fri, 9 May 2014 06:43:52 +0000 (23:43 -0700)]
* gnus/mml2015.el (mml2015-display-key-image): Fix :version tag in previous.

10 years ago* compile.el (recompile): Handle C-u M-x recompile from non-compilation buffer
Glenn Morris [Fri, 9 May 2014 06:42:39 +0000 (23:42 -0700)]
* compile.el (recompile): Handle C-u M-x recompile from non-compilation buffer

Fixes: debbugs:17444

10 years agolisp/gnus/mml2015.el (mml2015-display-key-image): New variable
Adam Sjøgren [Thu, 8 May 2014 22:42:13 +0000 (22:42 +0000)]
lisp/gnus/mml2015.el (mml2015-display-key-image): New variable

10 years agoBackport dired-check-switches from trunk.
Juri Linkov [Thu, 8 May 2014 19:22:43 +0000 (22:22 +0300)]
Backport dired-check-switches from trunk.
* lisp/dired.el (dired-check-switches, dired-switches-recursive-p): New functions.
(dired-switches-escape-p, dired-move-to-end-of-filename):
Use `dired-check-switches'.
(dired-insert-old-subdirs, dired-build-subdir-alist)
(dired-sort-R-check): Use `dired-switches-recursive-p'.

Fixes: debbugs:17218

10 years agoAdd CVE numbers for recent issues to ChangeLogs
Glenn Morris [Thu, 8 May 2014 18:12:34 +0000 (14:12 -0400)]
Add CVE numbers for recent issues to ChangeLogs

10 years ago* browse-url.el (browse-url-mosaic): Be careful when writing /tmp/Mosaic.PID.
Glenn Morris [Thu, 8 May 2014 18:10:36 +0000 (14:10 -0400)]
* browse-url.el (browse-url-mosaic): Be careful when writing /tmp/Mosaic.PID.
This is CVE-2014-3423.

Fixes: debbugs:17428

10 years agont/INSTALL: Minor rearrangement of text for clarity.
Eli Zaretskii [Thu, 8 May 2014 16:22:35 +0000 (19:22 +0300)]
nt/INSTALL: Minor rearrangement of text for clarity.

10 years agont/INSTALL: More details about creating the build environment.
Eli Zaretskii [Thu, 8 May 2014 15:38:02 +0000 (18:38 +0300)]
nt/INSTALL: More details about creating the build environment.

10 years ago* test/automated/vc-bzr.el: Tweak previous to use BZR_HOME rather than HOME
Glenn Morris [Thu, 8 May 2014 07:23:40 +0000 (00:23 -0700)]
* test/automated/vc-bzr.el: Tweak previous to use BZR_HOME rather than HOME

10 years agoFix comment typo in previous
Glenn Morris [Thu, 8 May 2014 07:14:15 +0000 (00:14 -0700)]
Fix comment typo in previous

10 years agoMerge from emacs-24; up to 2014-05-08T06:58:46Z!rgm@gnu.org
Glenn Morris [Thu, 8 May 2014 07:02:08 +0000 (00:02 -0700)]
Merge from emacs-24; up to 2014-05-08T06:58:46Z!rgm@gnu.org

10 years agotest/automated/vc-bzr.el: revise previous change
Glenn Morris [Thu, 8 May 2014 06:58:46 +0000 (23:58 -0700)]
test/automated/vc-bzr.el: revise previous change

* test/automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781)
(vc-bzr-test-faulty-bzr-autoloads):
Give bzr a temporary home-directory, in case the real one is missing.
Simply disabling logging wasn't enough.

10 years agoMerge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.org
Glenn Morris [Thu, 8 May 2014 03:41:21 +0000 (20:41 -0700)]
Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.org

10 years agotest/automated/vc-bzr.el: disable bzr's logging
Glenn Morris [Thu, 8 May 2014 03:34:20 +0000 (20:34 -0700)]
test/automated/vc-bzr.el: disable bzr's logging

This is for systems like hydra, where HOME can be read-only/absent.
See e.g. <http://hydra.nixos.org/build/10870893>.

* test/automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781)
(vc-bzr-test-faulty-bzr-autoloads): Disable bzr logging.

10 years ago* lisp/xt-mouse.el: Drop spurious/oddly shaped events.
Stefan Monnier [Thu, 8 May 2014 01:46:15 +0000 (21:46 -0400)]
* lisp/xt-mouse.el: Drop spurious/oddly shaped events.
(xterm-mouse--read-event-sequence-1000): Return nil if something looks fishy.
(xterm-mouse-event): Propagate it.
(xterm-mouse-translate-1): Handle it.

Fixes: debbugs:17378

10 years ago* internals.texi (C Dialect): New section.
Paul Eggert [Wed, 7 May 2014 20:51:35 +0000 (13:51 -0700)]
* internals.texi (C Dialect): New section.

(C Integer Types): Mention bool_bf.

10 years ago* minibuf.c (read_minibuf): Avoid C99ism in previous patch.
Paul Eggert [Wed, 7 May 2014 19:28:09 +0000 (12:28 -0700)]
* minibuf.c (read_minibuf): Avoid C99ism in previous patch.

Fixes: debbugs:17430

10 years ago* image.c: Include <png.h> before <setjmp.h>.
Paul Eggert [Wed, 7 May 2014 18:20:18 +0000 (11:20 -0700)]
* image.c: Include <png.h> before <setjmp.h>.

Fixes: debbugs:17429

10 years agoStandardize case of "Front-Cover Texts" in texi file permissions notices.
Glenn Morris [Wed, 7 May 2014 17:34:53 +0000 (13:34 -0400)]
Standardize case of "Front-Cover Texts" in texi file permissions notices.

Ref: http://lists.gnu.org/archive/html/bug-texinfo/2014-05/msg00015.html

10 years ago* autogen.sh: Check for failing aclocal.
Glenn Morris [Wed, 7 May 2014 16:56:34 +0000 (12:56 -0400)]
* autogen.sh: Check for failing aclocal.

10 years agoFix initialization of minibuffer history variable, bug #17430.
Jarek Czekalski [Wed, 7 May 2014 15:03:47 +0000 (17:03 +0200)]
Fix initialization of minibuffer history variable, bug #17430.

* minibuf.c (read_minibuf): Initialize histval to Qnil if unbound.
Move the initialization up to prevent any "value void" message.

10 years agotodo-mode.el: Don't drop full parameter list.
Stephen Berman [Wed, 7 May 2014 09:31:27 +0000 (11:31 +0200)]
todo-mode.el: Don't drop full parameter list.

* calendar/todo-mode.el (todo-insert-item--apply-args): When all
four slots of the parameter list are filled, make sure to pass it
to the argument list of todo-insert-item--basic.

10 years ago* image.c: Do not use libpng if HAVE_NS, as NS does its own thing.
Paul Eggert [Tue, 6 May 2014 21:13:37 +0000 (14:13 -0700)]
* image.c: Do not use libpng if HAVE_NS, as NS does its own thing.

[HAVE_NS]: Do not include png.h.
(x_query_frame_background_color): New function.
(png_load_body, imagemagick_load_image, svg_load_image): Use it.
(png_load_body): Coalesce duplicate code.

10 years ago* configure.ac: Comment.
Glenn Morris [Tue, 6 May 2014 20:36:40 +0000 (16:36 -0400)]
* configure.ac: Comment.

10 years ago* lisp/emacs-lisp/package.el (package-compute-transaction): Topological sort.
Stefan Monnier [Tue, 6 May 2014 18:11:16 +0000 (14:11 -0400)]
* lisp/emacs-lisp/package.el (package-compute-transaction): Topological sort.
Add optional `seen' argument to detect and break infinite loops.

Fixes: debbugs:16994

10 years ago* src/keyboard.c (Frecursive_edit): Ensure inc&dec of command_loop_level
Samuel Bronson [Tue, 6 May 2014 16:16:57 +0000 (12:16 -0400)]
* src/keyboard.c (Frecursive_edit): Ensure inc&dec of command_loop_level
are matched.

Fixes: debbugs:17413

10 years ago* etc/MACHINES: Misc small edits.
Glenn Morris [Tue, 6 May 2014 16:02:45 +0000 (09:02 -0700)]
* etc/MACHINES: Misc small edits.
Update Irix info.  Remove details of obsoleted platforms.

10 years agoFix tooltips pulling Emacs window to front on windows-nt, bug #17408.
Jarek Czekalski [Tue, 6 May 2014 16:00:30 +0000 (18:00 +0200)]
Fix tooltips pulling Emacs window to front on windows-nt, bug #17408.

  * w32fns.c (Fx_show_tip): Add SWP_NOOWNERZORDER flag to
  SetWindowPos invocations.