]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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 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* 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 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 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 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* 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 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 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 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.

10 years agoMinor stylistic changes in find-gc.el.
Eli Zaretskii [Tue, 6 May 2014 10:29:37 +0000 (13:29 +0300)]
Minor stylistic changes in find-gc.el.

 lisp/emacs-lisp/find-gc.el (find-gc-unsafe, find-unsafe-funcs)
 (trace-unsafe, trace-use-tree): Make parentheses style be
 according to Emacs style.

10 years agoFix Bug#17415.
Michael Albinus [Tue, 6 May 2014 09:51:05 +0000 (11:51 +0200)]
Fix Bug#17415.

* net/tramp-sh.el (tramp-uudecode): Replace the hard-coded temporary
file name by a format specifier.
(tramp-remote-coding-commands): Enhance docstring.
(tramp-find-inline-encoding): Replace "%t" by a temporary file name.

10 years ago* tramp.texi (Frequently Asked Questions): Mention HISTFILE
Michael Albinus [Tue, 6 May 2014 08:48:52 +0000 (10:48 +0200)]
* tramp.texi (Frequently Asked Questions): Mention HISTFILE
setting in ~/.ssh/environment.

10 years agoFix Bug#17295.
Michael Albinus [Tue, 6 May 2014 08:42:53 +0000 (10:42 +0200)]
Fix Bug#17295.
* net/tramp-sh.el (tramp-remote-process-environment): Remove
HISTFILE and HISTSIZE; it's too late to set them here.  Add
:version entry.
(tramp-open-shell): Do not let-bind `tramp-end-of-output'.  Add
"HISTSIZE=/dev/null" to the shell's env arguments.  Do not send
extra "PSx=..." commands.
(tramp-maybe-open-connection): Setenv HISTFILE to /dev/null.

10 years agobrowse-url.el comment
Glenn Morris [Tue, 6 May 2014 03:55:54 +0000 (20:55 -0700)]
browse-url.el comment

10 years agofind-gc.el misc fixes
Glenn Morris [Tue, 6 May 2014 03:53:31 +0000 (20:53 -0700)]
find-gc.el misc fixes

The whole file looks obsolete and/or broken.

* lisp/emacs-lisp/find-gc.el (find-gc-source-directory): Give it a value.
(find-gc-source-files): Update some names.
(trace-call-tree): Simplify and update.  Avoid predictable temp-file names.

10 years ago* gnus-fun.el (gnus-grab-cam-face): Do not use predictable temp-file name.
Glenn Morris [Tue, 6 May 2014 03:50:51 +0000 (20:50 -0700)]
* gnus-fun.el (gnus-grab-cam-face): Do not use predictable temp-file name.

10 years ago* lisp/minibuffer.el (completion--try-word-completion): Revert fix for
Stefan Monnier [Mon, 5 May 2014 23:54:06 +0000 (19:54 -0400)]
* lisp/minibuffer.el (completion--try-word-completion): Revert fix for
Bug#15980.

Fixes: debbugs:17375
10 years ago* lisp/xt-mouse.el (xterm-mouse--read-event-sequence-1000):
Stefan Monnier [Mon, 5 May 2014 23:50:20 +0000 (19:50 -0400)]
* lisp/xt-mouse.el (xterm-mouse--read-event-sequence-1000):
Always store button numbers in the same way in xterm-mouse-last;
Don't burp is xterm-mouse-last is not set as expected.
Never return negative indices.

Fixes: debbugs:17378
10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Dmitry Gutov [Mon, 5 May 2014 23:18:18 +0000 (03:18 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Backtrack one char if the global/char-literal var matcher hits
inside a string.  The next char could be the beginning of an
expression expansion.

* test/automated/ruby-mode-tests.el
(ruby-interpolation-after-dollar-sign): New test.

10 years ago* lisp/help-fns.el (describe-function-1): Test for an autoload before a macro
Glenn Morris [Mon, 5 May 2014 21:33:07 +0000 (17:33 -0400)]
* lisp/help-fns.el (describe-function-1): Test for an autoload before a macro
since `macrop' works on autoloads.

* test/automated/help-fns.el: New file.

Fixes: debbugs:17410
10 years ago* lisp/electric.el (electric-indent-functions-without-reindent): Add yaml.
Stefan Monnier [Mon, 5 May 2014 19:04:40 +0000 (15:04 -0400)]
* lisp/electric.el (electric-indent-functions-without-reindent): Add yaml.

10 years ago* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
Jan Djärv [Mon, 5 May 2014 17:37:43 +0000 (19:37 +0200)]
* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
not initialized.

Fixes: debbugs:17398
10 years ago* autogen.sh: Check any pre-existing ACLOCAL_PATH.
Glenn Morris [Mon, 5 May 2014 17:22:32 +0000 (13:22 -0400)]
* autogen.sh: Check any pre-existing ACLOCAL_PATH.

10 years agoUse rx for `gnu' compile.el pattern
Daniel Colascione [Mon, 5 May 2014 10:59:24 +0000 (03:59 -0700)]
Use rx for `gnu' compile.el pattern

* progmodes/compile.el (compilation-error-regexp-alist-alist):
Port `gnu' pattern to rx.

10 years agoUse rx for `gnu' compile pattern
Daniel Colascione [Mon, 5 May 2014 10:58:06 +0000 (03:58 -0700)]
Use rx for `gnu' compile pattern

* progmodes/compile.el (compilation-error-regexp-alist-alist):
Port `gnu' pattern to rx.

10 years agoUpdate nt/INSTALL for the latest changes in configury.
Eli Zaretskii [Mon, 5 May 2014 10:06:04 +0000 (13:06 +0300)]
Update nt/INSTALL for the latest changes in configury.

 nt/INSTALL: Update to the effect that pkg-config is now required
 for building from the repository.

10 years agoRemove unneeded prompt "Buffer ... still has clients"
Jarek Czekalski [Mon, 5 May 2014 07:35:50 +0000 (09:35 +0200)]
Remove unneeded prompt "Buffer ... still has clients"

* server.el (server-start): Remove the only call to:
(server-kill-buffer-query-function): Remove.

Fixes: debbugs:16548
10 years ago* lisp/minibuffer.el (completion-table-with-quoting) <completion--unquote>:
Stefan Monnier [Mon, 5 May 2014 01:46:47 +0000 (21:46 -0400)]
* lisp/minibuffer.el (completion-table-with-quoting) <completion--unquote>:
Make sure the new point we return is within the new string.

Fixes: debbugs:17239
10 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 5 May 2014 01:08:54 +0000 (21:08 -0400)]
Auto-commit of loaddefs files.

10 years ago* etc/NEWS: Correct spelling.
Leo Liu [Sun, 4 May 2014 23:49:33 +0000 (07:49 +0800)]
* etc/NEWS: Correct spelling.

* lisp/calendar/diary-lib.el (calendar-chinese-month-name-array):
Defvar to pacify compiler.

10 years agoConsult libpng-config more consistently.
Paul Eggert [Sun, 4 May 2014 21:28:08 +0000 (14:28 -0700)]
Consult libpng-config more consistently.

This is mainly for simplicity, but it should also avoid
some future problems like the ones we recently had with NetBSD.
* configure.ac (LIBPNG): Configure after LIBZ.  Use libpng-config
for cflags, too.  Append -lz if we're not already doing that with
LIBZ.  Do not bother appending -lm, since we always append that.
Coalesce some duplicate code.
* src/Makefile.in (PNG_CFLAGS): New var.
(ALL_CFLAGS): Use it.
* src/image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
CFLAGS now handles this.

Fixes: debbugs:17339
10 years ago* autogen.sh: Use ‘"’ to quote a message that often contains ‘'’.
Paul Eggert [Sun, 4 May 2014 21:18:30 +0000 (14:18 -0700)]
* autogen.sh: Use ‘"’ to quote a message that often contains ‘'’.

10 years agoMerge from emacs-24; up to 2014-05-04T21:18:30Z!eggert@cs.ucla.edu
Paul Eggert [Sun, 4 May 2014 19:37:56 +0000 (12:37 -0700)]
Merge from emacs-24; up to 2014-05-04T21:18:30Z!eggert@cs.ucla.edu

10 years agoRevert recent libpng changes.
Paul Eggert [Sun, 4 May 2014 18:51:32 +0000 (11:51 -0700)]
Revert recent libpng changes.

They fix only bugs that aren't being reported, so it may be better
to do them on the trunk.
* configure.ac (PNG_CFLAGS): Remove.  All uses removed.
(LIBPNG): Don't be consistent about -lpng16 versus -lpng.
Ignore libpng-config's exit status.  Always append -lz -lm.
* src/Makefile.in (PNG_CFLAGS): Remove; all uses removed.
* src/image.c [HAVE_LIBPNG_PNG_H]: Include <libpng/png.h>, not <png.h>.

Fixes: debbugs:17339
10 years ago* configure.ac (LIBPNG): Add -lz -lm on platforms where they're needed
Paul Eggert [Sun, 4 May 2014 06:34:04 +0000 (23:34 -0700)]
* configure.ac (LIBPNG): Add -lz -lm on platforms where they're needed

but libpng-config --libs omits them.  Problem reported by Glenn
Morris.

10 years agoSupport Chinese diary entries in calendar and diary
Leo Liu [Sun, 4 May 2014 00:16:58 +0000 (08:16 +0800)]
Support Chinese diary entries in calendar and diary

* doc/emacs/cal-xtra.texi (Non-Gregorian Diary): Document new features for
Chinese calendar and diary.

* etc/NEWS: Mention support for Chinese dates in calendar and diary.

* lisp/calendar/cal-china.el (calendar-chinese-month-name-array): New var.
(calendar-chinese-from-absolute-for-diary)
(calendar-chinese-to-absolute-for-diary)
(calendar-chinese-mark-date-pattern, diary-chinese-mark-entries)
(diary-chinese-list-entries): New functions to list and mark
Chinese diary entries in the calendar window.
(diary-chinese-anniversary)
(diary-chinese-insert-anniversary-entry)
(diary-chinese-insert-entry, diary-chinese-insert-monthly-entry)
(diary-chinese-insert-yearly-entry): New commands to insert
Chinese diary entries.

* lisp/calendar/cal-menu.el (cal-menu-diary-menu): Add entries for
inserting Chinese diary entries.

* lisp/calendar/calendar.el (diary-chinese-entry-symbol): New
customizable variable.
(calendar-mode-map): Add bindings for inserting Chinese diary
entries.

* lisp/calendar/diary-lib.el (diary-font-lock-keywords): Support
font-locking Chinese dates.

Fixes: debbugs:17393
10 years agoRequire ImageMagick >= 6.3.5, due to PixelSetMagickColor.
Paul Eggert [Sat, 3 May 2014 21:06:04 +0000 (14:06 -0700)]
Require ImageMagick >= 6.3.5, due to PixelSetMagickColor.

* configure.ac (IMAGEMAGICK_MODULE): Bump prereq from 6.2.8 to 6.3.5.
A more-complicated fix would be to remove uses of PixelSetMagickColor,
introduced in ImageMagick 6.3.5 (Sept. 2007).

Fixes: debbugs:17339
10 years agoHandle systems without WCONTINUED consistently.
Paul Eggert [Sat, 3 May 2014 20:13:10 +0000 (13:13 -0700)]
Handle systems without WCONTINUED consistently.

* lib-src/emacsclient.c (WCONTINUED): Move to ../src/syswait.h.
* src/process.c (handle_child_signal): Remove WCONTINUED ifdef,
because WCONTINUED is always defined now.
* src/syswait.h (WCONTINUED): Move here from ../lib-src/emacsclient.c.

Fixes: debbugs:15110 debbugs:17339
10 years ago* autogen.sh: If all else fails, try using pkg-config to find pkg.m4.
Glenn Morris [Sat, 3 May 2014 18:24:10 +0000 (11:24 -0700)]
* autogen.sh: If all else fails, try using pkg-config to find pkg.m4.
This is an attempt to get hydra builds working again.

10 years agoGet --enable-gcc-warnings to work after touching configure.ac.
Paul Eggert [Sat, 3 May 2014 16:27:17 +0000 (09:27 -0700)]
Get --enable-gcc-warnings to work after touching configure.ac.

Preserve ACLOCAL_PATH in later builds, so that by default it has
the same value as it did in the first build after initial checkout.
* Makefile.in (ACLOCAL_PATH): New macro.
($(srcdir)/aclocal.m4): Use it.
* configure.ac (ACLOCAL_PATH): AC_SUBST it.
* autogen.sh (env_space): New var.
Tell user what variables, if any, to pass to 'configure'.

10 years agoFix ChangeLogs of 2014-05-01 commit.
Barry O'Reilly [Sat, 3 May 2014 14:42:26 +0000 (10:42 -0400)]
Fix ChangeLogs of 2014-05-01 commit.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 3 May 2014 11:21:19 +0000 (07:21 -0400)]
Auto-commit of loaddefs files.

10 years ago* lisp/dired.el (dired-check-switches, dired-switches-recursive-p): New functions.
Juri Linkov [Sat, 3 May 2014 09:22:59 +0000 (12:22 +0300)]
* 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 agoMinor fixes for comments.
Eli Zaretskii [Sat, 3 May 2014 08:47:50 +0000 (11:47 +0300)]
Minor fixes for comments.

 src/buffer.c (overlay_strings): Fix the wording of the commentary.

 lisp/mail/rmailsum.el (rmail-new-summary-1): Fix a typo in a comment.

10 years agoGet --enable-gcc-warnings working again.
Paul Eggert [Sat, 3 May 2014 08:12:06 +0000 (01:12 -0700)]
Get --enable-gcc-warnings working again.

The recent changes to configure.ac removed the transliteration of
-I to -isystem in CFLAGS, which is needed for --enable-gcc-warnings.
Bring this back while keeping the spirit of the recent changes.
* configure.ac (edit_cflags): Restore this shell var, and put it
at the top level, where it'll be useful when emacs-24 is next merged.
(EMACS_CHECK_MODULES): New macro.  All uses of PKG_CHECK_MODULES
changed to use it.

10 years agoMake it easier on maintainers who use their own Automake.
Paul Eggert [Sat, 3 May 2014 07:09:16 +0000 (00:09 -0700)]
Make it easier on maintainers who use their own Automake.

* autogen.sh (ACLOCAL_PATH, AUTORECONF_ENV): New vars.
Set them to avoid problems when maintainers prepend their own
Automake installations to their PATH.  Report an error if pkg.m4
can't be found.

10 years ago* lisp/vc/ediff-diff.el (ediff-set-fine-diff-properties-in-one-buffer):
Stefan Monnier [Sat, 3 May 2014 02:27:46 +0000 (22:27 -0400)]
* lisp/vc/ediff-diff.el (ediff-set-fine-diff-properties-in-one-buffer):
Use nil rather than `default' for the "default" appearance.
* lisp/vc/ediff-util.el (ediff-inferior-compare-regions)
(ediff-toggle-autorefine, ediff-unselect-difference): Don't use
a misleading `default' value when it's really a boolean.
* lisp/vc/ediff-init.el (ediff-set-overlay-face): Don't set help-echo if the
overlay is not visible.

Fixes: debbugs:17388
10 years ago* configure.ac (PKG_CONFIG_PATH): Declare with AC_ARG_VAR.
Glenn Morris [Fri, 2 May 2014 23:31:41 +0000 (19:31 -0400)]
* configure.ac (PKG_CONFIG_PATH): Declare with AC_ARG_VAR.

10 years agoRemove the --with-pkg-config-prog configure option
Glenn Morris [Fri, 2 May 2014 23:29:57 +0000 (19:29 -0400)]
Remove the --with-pkg-config-prog configure option

* configure.ac (--with-pkg-config-prog): Remove.
Use the PKG_CONFIG environment variable instead if you need it.

* etc/NEWS: Mention this.

10 years agoUse pkg-config's pkg.m4
Glenn Morris [Fri, 2 May 2014 23:18:11 +0000 (19:18 -0400)]
Use pkg-config's pkg.m4

* configure.ac: Use pkg-config's pkg.m4, rather than reinventing it.
Add explicit AC_SUBST's where needed.

* autogen.sh (progs): Add pkg-config.
(pkg_config_min): New variable.

* INSTALL.REPO: Mention pkg-config.

* etc/PROBLEMS: Mention a related issue that can occur with a local automake.

10 years ago* configure.ac (AC_CONFIG_MACRO_DIR): Use it.
Glenn Morris [Fri, 2 May 2014 21:57:58 +0000 (17:57 -0400)]
* configure.ac (AC_CONFIG_MACRO_DIR): Use it.

10 years ago* vhdl-mode.texi: Add "@documentencoding UTF-8",
Paul Eggert [Fri, 2 May 2014 21:22:57 +0000 (14:22 -0700)]
* vhdl-mode.texi: Add "@documentencoding UTF-8",

since this is a toplevel .texi file.

10 years agoadmin/make-tarball.txt: Misc small updates/edits
Glenn Morris [Fri, 2 May 2014 19:45:17 +0000 (15:45 -0400)]
admin/make-tarball.txt: Misc small updates/edits

10 years agoConsult libpng-config more consistently.
Paul Eggert [Fri, 2 May 2014 19:34:03 +0000 (12:34 -0700)]
Consult libpng-config more consistently.

* configure.ac (edit_cflags): Move this up and to the top level,
so that PNG_CFLAGS can use it too.
(PNG_CFLAGS): New var.
(png_longjmp): Use PNG_CFLAGS when checking.
(LIBPNG): Be consistent about -lpng16 etc; e.g., don't use -lpng16
in some places and -lpng in others.  Test libpng-config's exit
status.  If it succeeds, use its output rather than appending -lz -lm.
* src/Makefile.in (PNG_CFLAGS): New var.
(ALL_CFLAGS): Use it.
* src/image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
CFLAGS now handles this.

Fixes: debbugs:17339
10 years agoautogen.sh: minor tweaks
Glenn Morris [Fri, 2 May 2014 17:40:09 +0000 (13:40 -0400)]
autogen.sh: minor tweaks

* autogen.sh (get_version): Handle no leading whitespace.
(check_version, main): Handle program names with hyphens.

10 years agoUpdate, improve exposition, add cross references, fix typos.
Stephen Berman [Fri, 2 May 2014 14:17:41 +0000 (16:17 +0200)]
Update, improve exposition, add cross references, fix typos.

* todo-mode.texi: Update, improve exposition, add cross
references, fix typos.
(Inserting New Items, Editing Item Headers and Text): Rewrite to
document new user interface.

10 years agoAdd a warning and a menu.
Stephen Berman [Fri, 2 May 2014 14:10:11 +0000 (16:10 +0200)]
Add a warning and a menu.

* calendar/todo-mode.el (todo-edit-file): Use display-warning.
(todo-menu): Uncomment and update.

10 years agoExtend todo item insertion UI to item editing.
Stephen Berman [Fri, 2 May 2014 13:58:23 +0000 (15:58 +0200)]
Extend todo item insertion UI to item editing.

* calendar/todo-mode.el: Reimplement item editing to have the same
basic user interface as item insertion, and make small UI and
larger internal improvements to the latter.
(todo-insert-item): Add reference to the Todo mode user manual to
the documentation string.
(todo-insert-item--basic): Rename from todo-basic-insert-item and
adjust all callers.  Change signature to combine diary and
nonmarking arguments.  Incorporate functionality of deleted item
copying command and add error checking.  Remove detailed
descriptions of the arguments from the documentation string, since
this is treated in the Todo mode user manual.
(todo-copy-item, todo-edit-multiline-item)
(todo-edit-done-item-comment, todo-edit-item-header)
(todo-edit-item-time, todo-edit-item-date-from-calendar)
(todo-edit-item-date-to-today, todo-edit-item-date-day-name)
(todo-edit-item-date-year, todo-edit-item-date-month)
(todo-edit-item-date-day, todo-edit-item-diary-nonmarking):
Remove.
(todo-edit-item): Reimplement as wrapper command for
todo-edit-item--next-key and make it distinguish done and not done
todo items.
(todo-edit-item--text): New function, replacing old command
todo-edit-item and incorporating deleted commands
todo-edit-multiline-item and todo-edit-done-item-comment.
(todo-edit-item--header): Rename from todo-basic-edit-item-header.
Use only numeric value of prefix argument.  Remove detailed
descriptions of the arguments from the documentation string, since
this is treated in the Todo mode user manual.
(todo-edit-item--diary-inclusion): New function, replacing old
command todo-edit-item-diary-inclusion and incorporating and fixing
functionality of deleted command todo-edit-item-diary-nonmarking,
making sure to remove todo-nondiary-marker when adding
diary-nonmarking-symbol.
(todo-edit-category-diary-inclusion): Make sure to delete
diary-nonmarking-symbol when adding todo-nondiary-marker.
(todo-edit-category-diary-nonmarking): Fix indentation.
(todo-insert-item--parameters): Group diary and nonmarking
parameters together.
(todo-insert-item--apply-args): Adjust to signature of
todo-insert-item--basic and incorporate copy parameter.
Make small code improvements.
(todo-insert-item--next-param): Improve prompt and adjust it to
new parameter grouping.  Remove obsolete code.
(todo-edit-item--param-key-alist)
(todo-edit-item--date-param-key-alist)
(todo-edit-done-item--param-key-alist): New defconsts.
(todo-edit-item--prompt): New variable.
(todo-edit-item--next-key): New function.
(todo-key-bindings-t): Bind "e" to todo-edit-item.  Remove
bindings of deleted commands.

10 years agoImprove indexing in trouble-related sections of Emacs User manual.
Eli Zaretskii [Fri, 2 May 2014 12:28:10 +0000 (15:28 +0300)]
Improve indexing in trouble-related sections of Emacs User manual.

 doc/emacs/trouble.texi (Lossage, DEL Does Not Delete, Stuck Recursive)
 (Screen Garbled, Text Garbled, After a Crash, Emergency Escape)
 (Bug Criteria, Understanding Bug Reporting, Checklist, Service):
 Improve indexing.

10 years ago* emacs-lisp/cl-macs.el (cl-deftype): Fix indentation.
Leo Liu [Fri, 2 May 2014 11:11:35 +0000 (19:11 +0800)]
* emacs-lisp/cl-macs.el (cl-deftype): Fix indentation.

10 years agoGnus: Make gnus-mime-inline-part and gnus-mm-display-part work similarly
Katsumi Yamaoka [Fri, 2 May 2014 09:49:11 +0000 (09:49 +0000)]
Gnus: Make gnus-mime-inline-part and gnus-mm-display-part work similarly

(The last commit message was mistaken, sorry.)

10 years agoGnus: Make gnus-mime-inline-part and gnus-mime-inline-part work similarly
Katsumi Yamaoka [Fri, 2 May 2014 09:44:34 +0000 (09:44 +0000)]
Gnus: Make gnus-mime-inline-part and gnus-mime-inline-part work similarly

* gnus-art.el (gnus-mime-inline-part): Redisplay a button so as to show
the displaying state of a part.
(gnus-mime-inline-part): Don't insert a newline in the beginning of
a part like gnus-mime-inline-part doesn't; work for XEmacs.

* mm-decode.el (mm-display-part): Don't insert a newline in the top.
(mm-shr): Make undisplayer unbreakable.

* mm-view.el (mm-inline-image-emacs, mm-inline-image-xemacs): Don't
insert excessive newline.
(mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Make undisplayer unbreakable.

10 years agoDoc fixes
Glenn Morris [Thu, 1 May 2014 23:55:25 +0000 (19:55 -0400)]
Doc fixes

* doc/misc/autotype.texi (Skeleton Language):
* doc/misc/message.texi (Header Commands):
* lisp/allout-widgets.el (allout-widgets-tally)
(allout-decorate-item-guides):
* lisp/menu-bar.el (menu-bar-positive-p):
* lisp/minibuffer.el (completion-pcm-complete-word-inserts-delimiters):
* lisp/cedet/ede.el (ede-project-directories, ede-check-project-directory):
* lisp/cedet/semantic/ia-sb.el (semantic-ia-sb-show-doc):
* lisp/cedet/semantic/tag.el (semantic-tag-in-buffer-p):
* lisp/cedet/semantic/bovine/c.el (semantic-tag-abstract-p):
* lisp/gnus/gnus-registry.el (gnus-registry-install-p): Doc fix.
* lisp/progmodes/gdb-mi.el (gdbmi-same-start, gdbmi-is-number):
* lisp/progmodes/js.el (js--inside-param-list-p)
(js--inside-dojo-class-list-p, js--forward-destructuring-spec):
* lisp/progmodes/prolog.el (region-exists-p):
* lisp/progmodes/verilog-mode.el (verilog-scan-cache-ok-p):
* lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p):
* lisp/url/url-parse.el (url-generic-parse-url):
* src/floatfns.c (Fisnan):
* src/profiler.c (Fprofiler_cpu_running_p):
Doc fixes (replace `iff').

Fixes: debbugs:17309
10 years agoChange algorithm used to adjust positions for undo in region
Barry O'Reilly [Thu, 1 May 2014 23:25:28 +0000 (19:25 -0400)]
Change algorithm used to adjust positions for undo in region

* simple.el (undo-make-selective-list): New algorithm fixes
incorrectness of position adjustments when undoing in region.
(Bug#17235)
(undo-elt-crosses-region): Make obsolete.
(undo-adjust-elt, undo-adjust-beg-end, undo-adjust-pos): New
functions to adjust positions using undo-deltas.
* automated/undo-tests.el (undo-test-region-deletion): New test to
demonstrate bug#17235.
(undo-test-region-example): New test to verify example given in
comments for undo-make-selective-list.

Fixes: debbugs:17325
10 years ago* configure.ac (LIBPNG): Consult libpng-config
Glenn Morris [Thu, 1 May 2014 21:57:27 +0000 (17:57 -0400)]
* configure.ac (LIBPNG): Consult libpng-config
for the precise form of "-lpng" to use.

Fixes: debbugs:17339
10 years ago* lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): Only highlight past
Stefan Monnier [Thu, 1 May 2014 16:14:03 +0000 (12:14 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): Only highlight past
the last consecutive closing paren.

Fixes: debbugs:17345
10 years agosrc/term.c (tty_menu_activate): A better initialization for cursor coordinates.
Eli Zaretskii [Thu, 1 May 2014 15:59:42 +0000 (18:59 +0300)]
src/term.c (tty_menu_activate): A better initialization for cursor coordinates.

10 years ago* src/intervals.c: Tighten assertions.
Stefan Monnier [Thu, 1 May 2014 15:15:46 +0000 (11:15 -0400)]
* src/intervals.c: Tighten assertions.
(create_root_interval): Make sure the interval is not empty.
(intervals_equal): Use booleans.
(rotate_right, rotate_left): Check LENGTHs rather than TOTAL_LENGTH.
(balance_an_interval): Sanity check LENGTHs and TOTAL_LENGTHs.
(balance_possible_root_interval): Simplify and use booleans.
(split_interval_right, split_interval_left): Check LENGTH, and remove
now redundant assertion.
(adjust_intervals_for_insertion): Remove now redundant assertions.
(delete_node, interval_deletion_adjustment)
(adjust_intervals_for_deletion, merge_interval_right)
(merge_interval_left): Check LENGTH rather than TOTAL_LENGTH.
(reproduce_interval): Make sure the interval is not empty.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 1 May 2014 11:18:18 +0000 (07:18 -0400)]
Auto-commit of loaddefs files.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 1 May 2014 10:21:17 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

10 years agolisp/gnus/gnus-art.el (gnus-mm-display-part): Highlight header attachment buttons
Katsumi Yamaoka [Thu, 1 May 2014 07:59:33 +0000 (07:59 +0000)]
lisp/gnus/gnus-art.el (gnus-mm-display-part): Highlight header attachment buttons

10 years ago* lisp/mpc.el (mpc-volume-mouse-set): Don't burp at the boundaries.
Stefan Monnier [Thu, 1 May 2014 01:08:08 +0000 (21:08 -0400)]
* lisp/mpc.el (mpc-volume-mouse-set): Don't burp at the boundaries.

10 years ago* lisp/dired.el (dired-mode): make terminology for eXpunge command
Reuben Thomas [Wed, 30 Apr 2014 21:39:57 +0000 (22:39 +0100)]
* lisp/dired.el (dired-mode): make terminology for eXpunge command
consistent.

Fixes: debbugs:17276
10 years agoMerge from emacs-24; up to 2014-05-01T10:21:17Z!rgm@gnu.org
Juanma Barranquero [Wed, 30 Apr 2014 19:54:52 +0000 (21:54 +0200)]
Merge from emacs-24; up to 2014-05-01T10:21:17Z!rgm@gnu.org

10 years agoSpelling fix, plus try to fix grammar in doc string.
Paul Eggert [Wed, 30 Apr 2014 18:01:36 +0000 (11:01 -0700)]
Spelling fix, plus try to fix grammar in doc string.

10 years ago* term.c (tty_menu_activate): Don't assume row and col are initialized.
Paul Eggert [Wed, 30 Apr 2014 17:54:27 +0000 (10:54 -0700)]
* term.c (tty_menu_activate): Don't assume row and col are initialized.

GCC 4.9.0 warned about this, and I couldn't easily prove to my own
satisfaction that they would always be initialized.

10 years agoMinor fixes for dired.el doc strings.
Eli Zaretskii [Wed, 30 Apr 2014 16:59:03 +0000 (19:59 +0300)]
Minor fixes for dired.el doc strings.

 lisp/dired.el (dired-initial-position-hook, dired-initial-position):
 Doc string fixes.

10 years agolisp/gnus/gnus-art.el (gnus-mm-display-part): Fix previous commit (again)
Katsumi Yamaoka [Wed, 30 Apr 2014 09:21:09 +0000 (09:21 +0000)]
lisp/gnus/gnus-art.el (gnus-mm-display-part): Fix previous commit (again)