]> code.delx.au - gnu-emacs/log
gnu-emacs
10 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 26 May 2014 10:21:18 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

10 years agoMerge from emacs-24; up to 2014-05-26T10:21:18Z!rgm@gnu.org
Glenn Morris [Mon, 26 May 2014 02:28:09 +0000 (19:28 -0700)]
Merge from emacs-24; up to 2014-05-26T10:21:18Z!rgm@gnu.org

10 years ago* admin/mac/uvs.el: New file. Generates ../src/macuvs.h. (Backport from trunk)
YAMAMOTO Mitsuharu [Mon, 26 May 2014 02:17:24 +0000 (19:17 -0700)]
* admin/mac/uvs.el: New file.  Generates ../src/macuvs.h.  (Backport from trunk)

10 years agoImprove reftex-format-special
Tassilo Horn [Sun, 25 May 2014 17:40:54 +0000 (19:40 +0200)]
Improve reftex-format-special

* lisp/textmodes/reftex-ref.el (reftex-format-special): Make it work
also for AMS Math's \eqref macro.

10 years agoArrange to never byte-compile the generated -pkg.el file.
Thien-Thi Nguyen [Sun, 25 May 2014 16:53:28 +0000 (18:53 +0200)]
Arrange to never byte-compile the generated -pkg.el file.

* lisp/emacs-lisp/package.el (package-generate-description-file):
Output first-line comment to set buffer-local var `no-byte-compile'.
Suggested by Dmitry Gutov:
<http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00401.html>.

10 years agoFix bug: Properly quote args to generated -pkg.el `define-package'.
Thien-Thi Nguyen [Sun, 25 May 2014 16:32:08 +0000 (18:32 +0200)]
Fix bug: Properly quote args to generated -pkg.el `define-package'.

* lisp/emacs-lisp/package.el (package-generate-description-file):
Inline `package--alist-to-plist'; rewrite to selectively
quote alist values that are not self-quoting.
(package--alist-to-plist): Delete func.

10 years agoFix bug #17585 with incorrect vertical motion when linum-mode is on.
Eli Zaretskii [Sun, 25 May 2014 14:18:46 +0000 (17:18 +0300)]
Fix bug #17585 with incorrect vertical motion when linum-mode is on.

 src/xdisp.c (move_it_in_display_line_to): Don't record wrap position
 if we are iterating over an object that generates glyphs for
 marginal areas.

10 years ago* admin/mac/uvs.el: New file from Mac port. src/macuvs.h is generated by it.
Jan Djärv [Sun, 25 May 2014 13:44:14 +0000 (15:44 +0200)]
* admin/mac/uvs.el: New file from Mac port.  src/macuvs.h is generated by it.

10 years ago* cus-face.el (custom-face-attributes): Add :distant-foreground.
Andreas Schwab [Sun, 25 May 2014 11:47:34 +0000 (13:47 +0200)]
* cus-face.el (custom-face-attributes): Add :distant-foreground.

10 years agoSimplify NS font driver draw, merge from Macport.
Jan Djärv [Sun, 25 May 2014 10:28:52 +0000 (12:28 +0200)]
Simplify NS font driver draw, merge from Macport.

* macfont.m (macfont_draw): Merge changes from Macport.

* nsterm.m (ns_draw_glyph_string): Move isComposite and end from
macfont.m, call draw with adjusted arguments so font drivers
don't need to do that.

* nsfont.m (nsfont_draw): Simplify as arguments are adjusted in
nsterm.m now.

10 years agoRemove interactive specification from window--dump-frame.
Martin Rudalics [Sun, 25 May 2014 10:06:35 +0000 (12:06 +0200)]
Remove interactive specification from window--dump-frame.

* window.el (window--dump-frame): Remove interactive
specification.

10 years agoSupport shifted keypad keys in xterm
Andreas Schwab [Sun, 25 May 2014 08:08:24 +0000 (10:08 +0200)]
Support shifted keypad keys in xterm

* term/xterm.el (xterm-function-map): Add mapping for shifted
keypad keys.

10 years ago* NEWS addition
Glenn Morris [Sun, 25 May 2014 01:18:16 +0000 (18:18 -0700)]
* NEWS addition

10 years agoNEWS markup fix
Glenn Morris [Sun, 25 May 2014 00:31:06 +0000 (17:31 -0700)]
NEWS markup fix

10 years agoSpecify coding if Latin-1 Emacs would misinterpret.
Paul Eggert [Sat, 24 May 2014 22:23:47 +0000 (15:23 -0700)]
Specify coding if Latin-1 Emacs would misinterpret.

* doc/misc/htmlfontify.texi, doc/misc/org.texi:
* etc/ETAGS.EBNF, etc/NEWS, etc/ORG-NEWS: Add "coding: utf-8".

Fixes: debbugs:17575
10 years ago* xdisp.c (safe__call1, safe__eval): Now static.
Paul Eggert [Sat, 24 May 2014 21:28:43 +0000 (14:28 -0700)]
* xdisp.c (safe__call1, safe__eval): Now static.

10 years agoFix subword-mode motion
Daniel Colascione [Sat, 24 May 2014 20:43:40 +0000 (13:43 -0700)]
Fix subword-mode motion

* lisp/progmodes/subword.el (subword-find-word-boundary): Move point to
correct spot before search.

Fixes: debbugs:17580
10 years agoUnbreak the build
Daniel Colascione [Sat, 24 May 2014 19:51:52 +0000 (12:51 -0700)]
Unbreak the build

* lisp/emacs-lisp/nadvice.el (defun): Write in eval-and-compile to avoid
breaking the build.

10 years agoFix last commits in xdisp.c, which caused a crash at startup on w32.
Eli Zaretskii [Sat, 24 May 2014 19:19:27 +0000 (22:19 +0300)]
Fix last commits in xdisp.c, which caused a crash at startup on w32.

 src/xdisp.c (safe__call): Accept va_list argument instead of '...'.
 (safe_call, safe__call1): Construct a va_list argument for safe_call.
 (safe_call1): Call safe_call instead of safe__call directly.

Fixes: debbugs:17577
10 years agoFix bug#17510 with a pointer freed more than once (Cygwin-w32-build).
Ken Brown [Sat, 24 May 2014 17:59:22 +0000 (13:59 -0400)]
Fix bug#17510 with a pointer freed more than once (Cygwin-w32-build).

* src/w32term.c (x_delete_display) [CYGWIN]: Don't free
dpyinfo->w32_id_name, to make sure it doesn't get freed more than
once.

10 years ago* src/xdisp.c: Bind inhibit-quit during pre-redisplay-function.
Stefan Monnier [Sat, 24 May 2014 15:50:05 +0000 (11:50 -0400)]
* src/xdisp.c: Bind inhibit-quit during pre-redisplay-function.
(safe__call, safe__call1, safe__eval): New functions.
(safe_call): Use it.
(prepare_menu_bars): Use it for pre-redisplay-function.
(display_mode_element): Same for `:eval'.

Fixes: debbugs:17577
10 years ago* calc/calc.el (math-bignum): Handle most-negative-fixnum.
Leo Liu [Sat, 24 May 2014 15:14:47 +0000 (23:14 +0800)]
* calc/calc.el (math-bignum): Handle most-negative-fixnum.

Fixes: debbugs:17556
10 years agoAvoid marking too deep portions of stack in mark_stack.
Eli Zaretskii [Sat, 24 May 2014 12:02:25 +0000 (15:02 +0300)]
Avoid marking too deep portions of stack in mark_stack.

 src/alloc.c (garbage_collect_1): New function, with all of the guts
 of Fgarbage_collect.
 (mark_stack): Accept an argument END and don't mark Lisp objects
 on the stack beyond the address given by END.  Calculation of END
 was moved to Fgarbage_collect.
 (Fgarbage_collect): Calculate the end address of the stack portion
 that needs to be examined by mark_stack, and pass that address to
 garbage_collect_1, which will pass it to mark_stack. See
 http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00270.html
 for more details about the underlying problems.  In particular,
 this avoids dumping Emacs with the large hash-table whose value is
 held in purify-flag for most of the time loadup.el runs.

10 years ago* xfns.c (x_window_property_intern): New function (code from
Jan Djärv [Sat, 24 May 2014 08:41:19 +0000 (10:41 +0200)]
* xfns.c (x_window_property_intern): New function (code from
x_window_property).
(Fx_window_property): Call x_window_property_intern.  If property
not found and NILP (source) and outer window != inner window,
check outer window for property.

Fixes: debbugs:17537
10 years agoSmall fix for he-line-search-regexp
Glenn Morris [Fri, 23 May 2014 18:14:24 +0000 (14:14 -0400)]
Small fix for he-line-search-regexp

* lisp/hippie-exp.el (he-line-search-regexp):
Handle comint-prompt-regexp containing subgroups.

Fixes: debbugs:17529
10 years agotodo-mode.el: Remove dependence on auto-mode-alist.
Stephen Berman [Fri, 23 May 2014 16:54:35 +0000 (18:54 +0200)]
todo-mode.el: Remove dependence on auto-mode-alist.

* calendar/todo-mode.el: Remove dependence on auto-mode-alist,
to avoid errors when trying to create or visit a file foo.todo
located outside to todo-directory, and to allow having such files
without them being tied to Todo mode.
(todo-show, todo-move-category, todo-merge-category, todo-find-archive)
(todo-archive-done-item, todo-find-filtered-items-file)
(todo-filter-items, todo-find-item, todo-diary-goto-entry)
(todo-category-completions, todo-read-category): When visiting a
Todo file, make sure we're in the right mode and the buffer local
variables are set.
(todo-make-categories-list, todo-reset-nondiary-marker)
(todo-reset-done-string, todo-reset-comment-string): After
processing all Todo files, kill the buffers of those files that
weren't being visited before the processing.
(todo-display-as-todo-file, todo-add-to-buffer-list)
(todo-visit-files-commands): Comment out.
(todo-modes-set-3, todo-mode): Comment out additions to find-file-hook.
(auto-mode-alist): Remove add-to-list calls making Todo file
extensions unrestrictedly tied to Todo modes.

* doc/misc/todo-mode.texi: Update in light of changes due to bug#17482.
Replace numerous mistaken uses of literal quotes with proper
Texinfo markup.
(Todo Mode Entry Points): Comment out reference to using find-file
or Dired to visit Todo files, since this has been disabled (bug#17482).

10 years ago* lisp/emacs-lisp/nadvice.el (advice--member-p): Change second arg.
Stefan Monnier [Fri, 23 May 2014 16:17:14 +0000 (12:17 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--member-p): Change second arg.
(advice-function-member-p): Tell it to check both names and functions.
(advice--add-function): Adjust call accordingly.

Fixes: debbugs:17531
10 years ago* lisp/minibuffer.el (completion--sreverse): Remove.
Stefan Monnier [Fri, 23 May 2014 15:54:44 +0000 (11:54 -0400)]
* lisp/minibuffer.el (completion--sreverse): Remove.
(completion--common-suffix): Use `reverse' instead.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-group): Use `reverse' on strings.

10 years ago* calendar/todo-mode.el: Miscellaneous bug fixes.
Stephen Berman [Fri, 23 May 2014 12:10:50 +0000 (14:10 +0200)]
* calendar/todo-mode.el: Miscellaneous bug fixes.
(todo-delete-file): When deleting an archive but not its todo
file, make sure to update the todo file's category sexp.
(todo-move-category): Keep the moved category's name unless the
file moved to already has a category with that name.  If the
numerically last category of the source file was moved, make the
first category current to avoid selecting a nonexisting category.
(todo-merge-category): Fix implementation to make merging to a
category in another file work as documented.  Eliminate now
insufficient and unnecessary renaming of archive category, correct
document string accordingly, and clarify it.  If the numerically
last category of the source file was merged, make the first
category current to avoid selecting a nonexisting category.
(todo-archive-done-item): When there are marked items and point
happens to be on an unmarked item, ignore the latter.  Don't leave
point below last item after archiving marked items.
(todo-unarchive-items): Fix logic to ensure unarchiving an item
from an archive with only one category deletes the archive only
when the category is empty after unarchiving.  Make sure the todo
file's category sexp is updated.
(todo-read-file-name): Allow an existing file name even when it is
not required (todo-move-category needs this to work as documented).
(todo-add-file): Call todo-validate-name to reject the name of an
existing todo file (needed due to fix in todo-read-file-name).
(todo-reset-nondiary-marker): Also reset in filtered items files.
(todo-reset-done-string, todo-reset-comment-string): Also reset in
regexp filtered items files.
(todo-reset-highlight-item): Also reset in filtered items files.
Fix incorrect variable reference in document string.

10 years ago* lisp/shell.el (shell-mode) <shell-dirstack-query>: Bypass bash aliases.
Glenn Morris [Thu, 22 May 2014 19:56:49 +0000 (15:56 -0400)]
* lisp/shell.el (shell-mode) <shell-dirstack-query>: Bypass bash aliases.

10 years agoSupply malloc and alloc_size attributes for extern allocators.
Paul Eggert [Thu, 22 May 2014 16:40:35 +0000 (09:40 -0700)]
Supply malloc and alloc_size attributes for extern allocators.

This documents the C API, and helps GCC generate a bit better code.
* conf_post.h (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE)
(ATTRIBUTE_MALLOC_SIZE): New macros.
* gmalloc.c (malloc, realloc, calloc):
* gtkutil.h (malloc_widget_value):
* lisp.h (ralloc, r_re_alloc, xmalloc, xzalloc, xrealloc, xnmalloc)
(xnrealloc, xstrdup, xlispstrdup, record_xmalloc):
Use them.

10 years ago* window.el (window--dump-frame): Avoid error in --without-x builds.
Glenn Morris [Thu, 22 May 2014 06:36:37 +0000 (23:36 -0700)]
* window.el (window--dump-frame): Avoid error in --without-x builds.

10 years agoFix port to 32-bit AIX.
Paul Eggert [Thu, 22 May 2014 05:00:39 +0000 (22:00 -0700)]
Fix port to 32-bit AIX.

* configure.ac (opsys): On Power Architecture, treat release 7 of
AIX like releases 5 and 6.
* src/unexaix.c (copy_text_and_data): Don't add text_scnptr to ptr
twice.  _text already includes this offset.
(unrelocate_symbols): Don't cast 64-bit integer to pointer.

Fixes: debbugs:17540
10 years ago* sequences.texi (Sequence Functions): Don't mention when and how
Leo Liu [Thu, 22 May 2014 04:30:48 +0000 (12:30 +0800)]
* sequences.texi (Sequence Functions): Don't mention when and how
SEQ to nreverse is mutated.

10 years agoTweak previous bytecomp-tests.el change
Glenn Morris [Thu, 22 May 2014 02:33:07 +0000 (19:33 -0700)]
Tweak previous bytecomp-tests.el change

* test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
Fix handling of temporary elc files.

10 years agoRemove some stray test tempfiles
Glenn Morris [Thu, 22 May 2014 01:16:37 +0000 (21:16 -0400)]
Remove some stray test tempfiles

* test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
Avoid leaving empty .elc tempfiles behind.

10 years ago* fns-tests.el (fns-tests-nreverse): Update for changed string behavior.
Glenn Morris [Thu, 22 May 2014 01:09:51 +0000 (21:09 -0400)]
* fns-tests.el (fns-tests-nreverse): Update for changed string behavior.

10 years ago* lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once.
Glenn Morris [Wed, 21 May 2014 20:07:27 +0000 (16:07 -0400)]
* lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once.

10 years agoDon't assume that ImageMagick uses a 16-bit quantum.
Paul Eggert [Wed, 21 May 2014 19:51:58 +0000 (12:51 -0700)]
Don't assume that ImageMagick uses a 16-bit quantum.

* image.c (imagemagick_load_image): Port to hosts that do not use
a 16-bit quantum, i.e., QuantumRange does not equal 65535.

Fixes: debbugs:17519
10 years agoFix bug #17532 with unclear docs of setting frame's font.
Eli Zaretskii [Wed, 21 May 2014 16:35:31 +0000 (19:35 +0300)]
Fix bug #17532 with unclear docs of setting frame's font.

 lisp/frame.el (set-frame-font): Doc fix.
 lisp/menu-bar.el (menu-set-font): Doc fix.

 doc/emacs/frames.texi (Fonts): Clarify which frames are affected by
 setting font from the menu and in default-frame-alist.

10 years agoFix bug #17539 with infinite recursion during scroll commands.
Eli Zaretskii [Wed, 21 May 2014 15:03:18 +0000 (18:03 +0300)]
Fix bug #17539 with infinite recursion during scroll commands.

 src/xdisp.c (move_it_in_display_line_to): Avoid infinite recursion:
 when closest_pos is identical to to_charpos, don't recurse, since
 we already tried that, and failed.

10 years ago* doc/lispref/sequences.texi (Sequence Functions): Update nreverse.
Leo Liu [Wed, 21 May 2014 03:49:58 +0000 (11:49 +0800)]
* doc/lispref/sequences.texi (Sequence Functions): Update nreverse.

* src/fns.c (Fnreverse): Accept strings for SEQ and update doc-string.

10 years agoReplace uses of `save-buffer' with `write-region'
Dmitry Gutov [Wed, 21 May 2014 02:14:38 +0000 (05:14 +0300)]
Replace uses of `save-buffer' with `write-region'

* lisp/emacs-lisp/package.el (package--download-one-archive): Use
`write-region' instead of `save-buffer' to avoid running various
hooks.
(describe-package-1): Same.  Insert newline at the end of the
buffer if appropriate.

Fixes: debbugs:17155
10 years agoFile-local-variable support for sh-script; add mksh support
Daniel Colascione [Wed, 21 May 2014 01:55:54 +0000 (18:55 -0700)]
File-local-variable support for sh-script; add mksh support

* lisp/files.el (interpreter-mode-alist): Add mksh.

* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
  derivative.
  (sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
  mksh. Improve custom spec; allow regular expressions.
  (sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
  (sh-after-hack-local-variables): New function.
  (sh-mode): Use it; respect file-local `sh-shell' variable.
  (sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
  the normalization.
  (sh-canonicalize-shell): Rewrite to support regexes.

10 years agoFile-local-variable support for sh-script; add mksh support
Daniel Colascione [Wed, 21 May 2014 01:54:33 +0000 (18:54 -0700)]
File-local-variable support for sh-script; add mksh support

* lisp/files.el (interpreter-mode-alist): Add mksh.

* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
derivative.
(sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
mksh. Improve custom spec; allow regular expressions.
(sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
(sh-after-hack-local-variables): New function.
(sh-mode): Use it; respect file-local `sh-shell' variable.
(sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
the normalization.
(sh-canonicalize-shell): Rewrite to support regexes.

Fixes: debbugs:17333
10 years ago* emacs-lisp/cl-lib.el (cl-endp): Fix last change.
Leo Liu [Wed, 21 May 2014 00:41:21 +0000 (08:41 +0800)]
* emacs-lisp/cl-lib.el (cl-endp): Fix last change.

10 years ago* lisp/avoid.el (mouse-avoidance-banish-position): Fix defcustom :options
Juri Linkov [Tue, 20 May 2014 21:20:36 +0000 (00:20 +0300)]
* lisp/avoid.el (mouse-avoidance-banish-position): Fix defcustom :options
to allow changing its value with `set-variable'.

Fixes: debbugs:17439
10 years ago* lisp/avoid.el (mouse-avoidance-set-mouse-position): Don't raise frame.
Juri Linkov [Tue, 20 May 2014 21:14:44 +0000 (00:14 +0300)]
* lisp/avoid.el (mouse-avoidance-set-mouse-position): Don't raise frame.
(mouse-avoidance-ignore-p): Remove `switch-frame', add `focus-out'.
Add more modifiers: meta, control, shift, hyper, super, alt.

Fixes: debbugs:17439
10 years ago* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Remove hack for
Stefan Monnier [Tue, 20 May 2014 20:12:30 +0000 (16:12 -0400)]
* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Remove hack for
#; comments.
(scheme-syntax-propertize, scheme-syntax-propertize-sexp-comment):
New functions.
(scheme-mode-variables): Set syntax-propertize-function instead of
font-lock-syntactic-face-function.
(scheme-font-lock-syntactic-face-function): Delete.

10 years ago* lisp/emacs-lisp/lisp.el (end-of-defun): Ensure we move.
Stefan Monnier [Tue, 20 May 2014 18:55:41 +0000 (14:55 -0400)]
* lisp/emacs-lisp/lisp.el (end-of-defun): Ensure we move.

Fixes: debbugs:17274
10 years agoFix bug #17524 with crashes in creating a new frame with invalid font.
Eli Zaretskii [Tue, 20 May 2014 16:28:39 +0000 (19:28 +0300)]
Fix bug #17524 with crashes in creating a new frame with invalid font.

 src/w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: If we are
 unwinding when frame's faces were not initialized yet, increment
 the frame's image-cache reference count before calling
 x_free_frame_resources.  Don't dereference
 dpyinfo->terminal->image_cache if it is NULL.

10 years ago* lisp/vc/vc-rcs.el: Comment.
Glenn Morris [Tue, 20 May 2014 15:46:21 +0000 (08:46 -0700)]
* lisp/vc/vc-rcs.el: Comment.

10 years ago* dbusbind.c (xd_signature): Revert last 2 patches.
Michael Albinus [Tue, 20 May 2014 08:25:18 +0000 (10:25 +0200)]
* dbusbind.c (xd_signature): Revert last 2 patches.

10 years agoFix rcs2log problems with CVS.
Paul Eggert [Tue, 20 May 2014 07:59:28 +0000 (00:59 -0700)]
Fix rcs2log problems with CVS.

Problem reported by Glenn Morris in
<http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00277.html>.
Plus, fix some security and filename quoting problems.
* rcs2log (logdir): Prefer mktemp if available.
(logdir, llogdir): Work even if TMPDIR begins with '-' or has spaces.
(output_authors, main awk script): Parse more-recent CVS output format.

10 years ago* cl.texi (List Functions, Efficiency Concerns): Update cl-endp.
Leo Liu [Tue, 20 May 2014 00:59:36 +0000 (08:59 +0800)]
* cl.texi (List Functions, Efficiency Concerns): Update cl-endp.

10 years agoAllow any non-nil value to count as true in bool-vector.
Paul Eggert [Mon, 19 May 2014 19:19:05 +0000 (12:19 -0700)]
Allow any non-nil value to count as true in bool-vector.

Likewise for xd_signature in dbusbind.c.
This is more consistent with the usual practice in Emacs, which is
that any non-nil value counts as true.
* doc/lispref/sequences.texi (Bool-Vectors): Coalesce discussion of how to
print them.  bool-vector's args need not be t or nil.
* src/alloc.c (Fbool_vector): Don't require args to be t or nil.
* src/dbusbind.c (xd_signature): Likewise, for booleans.
* src/data.c, lisp.h (Qbooleanp):
* src/lisp.h (CHECK_BOOLEAN): Remove.  All uses removed.

10 years agosrc/lisp.h: Fix typos in a comment.
Eli Zaretskii [Mon, 19 May 2014 16:59:50 +0000 (19:59 +0300)]
src/lisp.h: Fix typos in a comment.

10 years ago* emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.
Leo Liu [Mon, 19 May 2014 16:08:40 +0000 (00:08 +0800)]
* emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.

10 years ago* font.c (font_matching_entity): Extract font-entity object
Dmitry Antipov [Mon, 19 May 2014 07:54:39 +0000 (11:54 +0400)]
* font.c (font_matching_entity): Extract font-entity object
from the vector of matching entities (Bug#17486).

10 years ago* src/lisp.h (CHECK_BOOLEAN): New function.
Dmitry Antipov [Mon, 19 May 2014 07:49:09 +0000 (11:49 +0400)]
* src/lisp.h (CHECK_BOOLEAN): New function.
* src/alloc.c (Fbool_vector): New function.
(syms_of_alloc): Defsubr it.
* src/data.c (Qbooleanp): New symbol.
(syms_of_data): DEFSYM it.
* src/dbusbind.c (xd_signature): Use CHECK_BOOLEAN.
* doc/lispref/sequences.texi (Bool-vectors): Mention bool-vector.

10 years agoSpelling fix.
Paul Eggert [Mon, 19 May 2014 05:07:45 +0000 (22:07 -0700)]
Spelling fix.

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 ago* mouse.el: Remove old comment.
Glenn Morris [Sun, 18 May 2014 22:53:27 +0000 (15:53 -0700)]
* mouse.el: Remove old comment.

10 years ago* configure.ac (INSTALL_INFO): Revert to just checking for "install-info".
Glenn Morris [Sun, 18 May 2014 22:41:22 +0000 (15:41 -0700)]
* configure.ac (INSTALL_INFO): Revert to just checking for "install-info".

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 ago* lisp/emacs-lisp/timer.el (timer-event-handler): Fix last change.
Stefan Monnier [Sun, 18 May 2014 13:17:10 +0000 (09:17 -0400)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Fix last change.

Fixes: debbugs:17392
10 years ago* lisp/emacs-lisp/timer.el (timer-event-handler): Don't run if canceled.
Stefan Monnier [Sun, 18 May 2014 12:58:30 +0000 (08:58 -0400)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't run if canceled.

Fixes: debbugs:17392
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 agolisp/simple.el (line-move-ignore-invisible): Fix last commit.
Eli Zaretskii [Sat, 17 May 2014 16:06:02 +0000 (19:06 +0300)]
lisp/simple.el (line-move-ignore-invisible): Fix last commit.

10 years agoFix typo.
Michael Albinus [Sat, 17 May 2014 09:08:59 +0000 (11:08 +0200)]
Fix typo.

10 years ago* net/tramp-sh.el (tramp-find-inline-encoding): Do not match "%%t"
Michael Albinus [Sat, 17 May 2014 09:00:54 +0000 (11:00 +0200)]
* net/tramp-sh.el (tramp-find-inline-encoding): Do not match "%%t"
for a temporary file name.

10 years agoFix bug #17511 with unclear documentation of line-move-ignore-invisible.
Eli Zaretskii [Sat, 17 May 2014 08:58:17 +0000 (11:58 +0300)]
Fix bug #17511 with unclear documentation of line-move-ignore-invisible.

 lisp/simple.el (line-move-ignore-invisible): Doc fix.

 doc/lispref/display.texi (Invisible Text): Clarify the description of
 line-move-ignore-invisible.

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: Add comments accidentally omitted from previous change
Glenn Morris [Sat, 17 May 2014 01:40:49 +0000 (21:40 -0400)]
* configure.ac: Add comments accidentally omitted from previous change

10 years ago* configure.ac (INSTALL_INFO): Try "ginstall-info" before "install-info".
Glenn Morris [Sat, 17 May 2014 01:38:33 +0000 (21:38 -0400)]
* configure.ac (INSTALL_INFO): Try "ginstall-info" before "install-info".

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

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* net/dbus.el (dbus-init-bus, dbus-call-method)
Michael Albinus [Fri, 16 May 2014 13:11:09 +0000 (15:11 +0200)]
* net/dbus.el (dbus-init-bus, dbus-call-method)
(dbus-call-method-asynchronously, dbus-send-signal)
(dbus-method-return-internal, dbus-method-error-internal)
Check, whether Emacs has been compiled with D-Bus support.

Fixes: debbugs:17508
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 agoAuto-commit of loaddefs files.
David Engster [Wed, 14 May 2014 20:45:05 +0000 (22:45 +0200)]
Auto-commit of loaddefs files.

10 years agoDeal with EIEIO methods without doc strings (Bug#17490).
Nicolas Richard [Wed, 14 May 2014 20:41:53 +0000 (22:41 +0200)]
Deal with EIEIO methods without doc strings (Bug#17490).

* emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with
methods which do not have a doc string.  (Bug#17490)

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.