bpt/emacs.git
9 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 25 Jun 2014 10:17:41 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

9 years agonextstep: trivial Makefile simplification
Glenn Morris [Wed, 25 Jun 2014 06:39:03 +0000 (23:39 -0700)]
nextstep: trivial Makefile simplification

* nextstep/Makefile.in (${ns_appbindir}): New.
(${ns_appbindir}/Emacs): Use order-only prereq to create output dir.

9 years agoadmin/grammars: Use pattern rules in Makefile
Glenn Morris [Wed, 25 Jun 2014 06:23:04 +0000 (23:23 -0700)]
admin/grammars: Use pattern rules in Makefile

* admin/grammars/Makefile.in (${bovinedir}/c-by.el, ${bovinedir}/make-by.el):
(${wisentdir}/js-wy.el, ${wisentdir}/python-wy.el): Replace with pattern rules.
(${bovinedir}/scm-by.el, ${wisentdir}/javat-wy.el)
(${cedetdir}/srecode/srt-wy.el): Use $<.

9 years agoadmin/unidata: small Makefile simplifications
Glenn Morris [Wed, 25 Jun 2014 06:03:13 +0000 (23:03 -0700)]
admin/unidata: small Makefile simplifications

* admin/unidata/Makefile.in (${top_srcdir}/src/macuvs.h): Make and load .elc.
(.el.elc): Replace with pattern rule.
(%.elc): New.
(unidata.txt): Use $<.
(compile): Remove.
(${DSTDIR}/charprop.el): Use order-only prereqs rather than a sub-make.

9 years ago* admin/unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo.
Glenn Morris [Wed, 25 Jun 2014 05:57:51 +0000 (22:57 -0700)]
* admin/unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo.

9 years agoChangeLog fix
Glenn Morris [Wed, 25 Jun 2014 01:29:07 +0000 (21:29 -0400)]
ChangeLog fix

9 years agoMake search in reftex-using-biblatex-p non-greedy.
Leonard Randall [Tue, 24 Jun 2014 19:39:22 +0000 (21:39 +0200)]
Make search in reftex-using-biblatex-p non-greedy.

* textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
for comment lines non-greedy and stopping at newlines to fix stack
overflows with large files.

9 years agoBe more consistent about the 'Qfoo' naming convention.
Paul Eggert [Tue, 24 Jun 2014 08:10:48 +0000 (01:10 -0700)]
Be more consistent about the 'Qfoo' naming convention.

* image.c (Fimagemagick_types):
* lisp.h (lisp_h_CHECK_TYPE, CHECK_TYPE, CHECK_ARRAY):
* process.c (Fmake_network_process):
Rename C local identifier 'Qfoo to avoid giving the false
impression that it stands for the symbol 'foo'.

9 years agolisp/calculator.el (calculator-last-input): drop 'ascii-character property
Eli Barzilay [Tue, 24 Jun 2014 07:55:36 +0000 (03:55 -0400)]
lisp/calculator.el (calculator-last-input): drop 'ascii-character property
lookup.
etc/NEWS: calculator.el user-visible changes.

9 years ago* automated/tramp-tests.el (tramp-test26-process-file): Extend test
Michael Albinus [Tue, 24 Jun 2014 07:48:19 +0000 (09:48 +0200)]
* automated/tramp-tests.el (tramp-test26-process-file): Extend test
according to Bug#17815.

9 years agoMerge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu
Glenn Morris [Tue, 24 Jun 2014 07:15:26 +0000 (00:15 -0700)]
Merge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu

9 years agoBackport Unicode 7 update of character- and script-related databases
Eli Zaretskii [Tue, 24 Jun 2014 07:10:47 +0000 (00:10 -0700)]
Backport Unicode 7 update of character- and script-related databases

* lisp/international/characters.el (char-script-table):
Update for scripts added and codepoint ranges changed in Unicode 7.0.

* lisp/international/fontset.el (script-representative-chars):
Add representative characters for scripts added in Unicode 7.0.
(otf-script-alist): Synchronize with the latest registry of OTF script tags.

9 years agoBackport unicode 7.0 data files update from trunk
Glenn Morris [Tue, 24 Jun 2014 07:07:03 +0000 (00:07 -0700)]
Backport unicode 7.0 data files update from trunk

* admin/unidata/BidiMirroring.txt: Update to 7.0.0 (only comment changes).

* admin/unidata/UnicodeData.txt: Update to 7.0.0.

* admin/unidata/IVD_Sequences.txt: Update to 2014-05-16 version.

9 years ago* align.el (align-adjust-col-for-rule): Unbreak due to defaulting
Leo Liu [Mon, 23 Jun 2014 23:09:20 +0000 (07:09 +0800)]
* align.el (align-adjust-col-for-rule): Unbreak due to defaulting
tab-stop-list to nil.

* indent.el (indent-next-tab-stop): Rename from indent--next-tab-stop.
(indent-rigidly-left-to-tab-stop)
(indent-rigidly-right-to-tab-stop, tab-to-tab-stop)
(move-to-tab-stop): Change callers.

Fixes: debbugs:16381

9 years agoOptionally, undo several consequential deletion in one step.
Sam Steingold [Mon, 23 Jun 2014 20:23:33 +0000 (16:23 -0400)]
Optionally, undo several consequential deletion in one step.

* lisp/simple.el (kill-append): Remove undo boundary depending on ...
(kill-append-merge-undo): New user option.

9 years ago* lisp/simple.el (handle-shift-selection, exchange-point-and-mark)
Stefan Monnier [Mon, 23 Jun 2014 15:32:24 +0000 (11:32 -0400)]
* lisp/simple.el (handle-shift-selection, exchange-point-and-mark)
(activate-mark): Set transient-mark-mode buffer-locally.
(transient-mark-mode): Use&set the global value.
* lisp/mouse.el (mouse-set-region-1, mouse-drag-track): Idem.
* lisp/org/org-compat.el (activate-mark): Idem.
* lisp/emulation/edt.el (edt-emulation-off): Save&restore the global
transient-mark-mode setting.
* lisp/obsolete/pc-select.el (pc-selection-mode): Use the
transient-mark-mode function.

Fixes: debbugs:6316

9 years agoUpdate various character- and script-related databases per Unicode 7.0.
Eli Zaretskii [Mon, 23 Jun 2014 15:27:16 +0000 (18:27 +0300)]
Update various character- and script-related databases per Unicode 7.0.

 lisp/international/fontset.el (script-representative-chars): Add
 representative characters for scripts added in Unicode 7.0.
 (otf-script-alist): Synchronize with the latest registry of OTF
 script tags.
 lisp/international/characters.el (char-script-table): Update for
 scripts added and codepoint ranges changed in Unicode 7.0.

9 years ago* doc/misc/dired-x.texi (Omitting Files in Dired, Omitting Variables): Fix
Leo Liu [Mon, 23 Jun 2014 07:38:07 +0000 (15:38 +0800)]
* doc/misc/dired-x.texi (Omitting Files in Dired, Omitting Variables): Fix
key binding to dired-omit-mode.

Fixes: debbugs:16354

9 years agoMisc small doc/ Makefile cleanup
Glenn Morris [Mon, 23 Jun 2014 06:43:20 +0000 (23:43 -0700)]
Misc small doc/ Makefile cleanup

* emacs/Makefile.in (mkinfodir): Remove.
(.dvi.ps): Replace with pattern rule.
(${buildinfodir}): New rule.
($(buildinfodir)/emacs.info): Use order-only prereq for output dir.  Use $<.
(emacs.dvi, emacs.pdf, emacs.html, emacs-xtra.dvi, emacs-xtra.pdf): Use $<.
(%.ps): New rule.

* lispintro/Makefile.in (mkinfodir): Remove.
(.dvi.ps): Replace with explicit rule.
(${buildinfodir}): New rule.
(${buildinfodir}/eintr.info): Use order-only prereq for output dir.  Use $<.
(emacs-lisp-intro.dvi, emacs-lisp-intro.pdf, emacs-lisp-intro.html): Use $<.
(emacs-lisp-intro.ps): New rule.

* lispref/Makefile.in (mkinfodir): Remove.
(.dvi.ps): Replace with explicit rule.
(html): Declare as PHONY.
(${buildinfodir}): New rule.
($(buildinfodir)/elisp.info): Use order-only prereq for output dir.  Use $<.
(elisp.dvi, elisp.html, elisp.pdf): Use $<.
(elisp.ps): New rule.

9 years agoDisable implicit texi rules in doc/
Glenn Morris [Mon, 23 Jun 2014 06:25:47 +0000 (23:25 -0700)]
Disable implicit texi rules in doc/

* doc/emacs/Makefile.in (%.texi):
* doc/lispintro/Makefile.in (%.texi):
* doc/lispref/Makefile.in (%.texi):
* doc/misc/Makefile.in (%.texi):
Disable implicit rules.

9 years ago* calculator.el (calculator-standard-displayer): Fix bug in use of
Eli Barzilay [Mon, 23 Jun 2014 05:14:23 +0000 (01:14 -0400)]
* calculator.el (calculator-standard-displayer): Fix bug in use of
`calculator-groupize-number'.
(calculator-funcall): Fix broken `cl-flet' use by moving it into the
`eval' code, so it works in v24.3.1 too.
(calculator-last-input): Comment to clarify purpose.

Also add back a ChangeLog blurb for previous commit 2014-06-15T04:52:34Z!eli@barzilay.org.

9 years agoSimplify and cleanup character conversion stuff.
Dmitry Antipov [Mon, 23 Jun 2014 04:11:29 +0000 (08:11 +0400)]
Simplify and cleanup character conversion stuff.
* lisp.h (multibyte_char_to_unibyte, multibyte_char_to_unibyte_safe):
Remove prototypes.
* character.c (multibyte_char_to_unibyte)
(multibyte_char_to_unibyte_safe): Remove; no longer used.
* character.h (make_char): Remove; unused.
(CHAR_TO_BYTE8, CHAR_TO_BYTE_SAFE): Simplify.
(ASCII_BYTE_P): Remove; ASCII_CHAR_P does the same thing.
* buffer.c, charset.c, charset.h, cmds.c, coding.c, editfns.c:
* fileio.c, indent.c, insdel.c, keyboard.c, lread.c, print.c:
* search.c, term.c, xdisp.c, xterm.c: Related users changed.

9 years ago"the the", "from from" and "and and".
Mario Lang [Sun, 22 Jun 2014 23:12:17 +0000 (01:12 +0200)]
"the the", "from from" and "and and".

9 years ago* html2text.el (html2text-get-attr): Rewrite to handle spaces in quoted
Andreas Schwab [Sun, 22 Jun 2014 21:14:43 +0000 (23:14 +0200)]
* html2text.el (html2text-get-attr): Rewrite to handle spaces in quoted
attribute values.  (Bug#17834)

9 years agoMore tweaks of skeleton documentation wrt \n behavior at bol/eol.
Eli Zaretskii [Sun, 22 Jun 2014 16:59:30 +0000 (19:59 +0300)]
More tweaks of skeleton documentation wrt \n behavior at bol/eol.

 lisp/skeleton.el (skeleton-insert): Yet another fix of the doc string
 wrt behavior of \n as the first/last element of a skeleton.

 doc/misc/autotype.texi (Skeleton Language): Document the \n feature
 better.

9 years ago* net/tramp-adb.el (tramp-adb-handle-process-file):
Michael Albinus [Sun, 22 Jun 2014 09:20:38 +0000 (11:20 +0200)]
* net/tramp-adb.el (tramp-adb-handle-process-file):
* net/tramp-sh.el (tramp-sh-handle-process-file):
* net/tramp-smb.el (tramp-smb-handle-process-file): Do not raise
the output buffer when DISPLAY is non-nil.

Fixes: debbugs:17815

9 years ago* lisp/electric.el (electric-layout-post-self-insert-function):
Dmitry Antipov [Sun, 22 Jun 2014 05:43:58 +0000 (09:43 +0400)]
* lisp/electric.el (electric-layout-post-self-insert-function):
* lisp/emacs-lisp/ert.el (ert--insert-infos):
* lisp/obsolete/vi.el (vi-set-mark):
* lisp/term.el (term-handle-scroll):
* lisp/textmodes/bibtex.el (bibtex-fill-field, bibtex-fill-entry):
* lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done):
* lisp/org/org-mouse.el (org-mouse-do-remotely):
* lisp/wid-edit.el (widget-editable-list-value-create): Prefer
point-marker to copy-marker of point.
* lisp/ob-core.el (org-babel-insert-result): Prefer point-min-marker
and point-max-marker.

9 years ago* xmenu.c (mouse_position_for_popup):
Dmitry Antipov [Sun, 22 Jun 2014 05:00:14 +0000 (09:00 +0400)]
* xmenu.c (mouse_position_for_popup):
* xselect.c (mouse_position_for_drop): Do not duplicate ...
* xfns.c (x_relative_mouse_position): ... and prefer this function.
* menu.c (Fx_popup_menu):
* xselect.c (x_handle_dnd_message): Adjust users.
* menu.h (mouse_position_for_popup): Remove prototype.
* xterm.h (x_relative_mouse_position): Add prototype.
* xterm.c (x_find_topmost_parent): Break from the loop and do not
call XFree if XQueryTree returns zero.

9 years agoUpdate admin/unidata data files to latest versions
Glenn Morris [Sat, 21 Jun 2014 22:06:04 +0000 (15:06 -0700)]
Update admin/unidata data files to latest versions

* admin/unidata/BidiMirroring.txt: Update to 7.0.0 (only comment changes).

* admin/unidata/UnicodeData.txt: Update to 7.0.0.

* admin/unidata/IVD_Sequences.txt: Update to 2014-05-16 version.

* admin/unidata/README: Update for above changes.

9 years ago* landmark.el: Commentary fixes.
Glenn Morris [Sat, 21 Jun 2014 21:36:44 +0000 (14:36 -0700)]
* landmark.el: Commentary fixes.

9 years agoFix landmark, broken since Emacs 23.1
Glenn Morris [Sat, 21 Jun 2014 21:21:46 +0000 (14:21 -0700)]
Fix landmark, broken since Emacs 23.1

* play/landmark.el (landmark-move-down, landmark-move-up):
Fix 2007-10-20 change - preserve horizontal position.

9 years agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Sat, 21 Jun 2014 19:46:57 +0000 (12:46 -0700)]
ChangeLog fix (no need to merge to trunk)

9 years agoMerge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.ca
Glenn Morris [Sat, 21 Jun 2014 19:45:59 +0000 (12:45 -0700)]
Merge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.ca

9 years agodoc/misc/autotype.texi (Skeleton Language): Fix last change.
Eli Zaretskii [Sat, 21 Jun 2014 15:08:18 +0000 (18:08 +0300)]
doc/misc/autotype.texi (Skeleton Language): Fix last change.

9 years agoFix completion retrieval parsing.
Fabián Ezequiel Gallina [Sat, 21 Jun 2014 14:14:54 +0000 (11:14 -0300)]
Fix completion retrieval parsing.
* progmodes/python.el (python-mode):
(python-util-strip-string): New function.
(python-shell-completion-get-completions): Use it.

* automated/python-tests.el (python-util-strip-string-1): New test.

Fixes: debbugs:17209

9 years agolisp/skeleton.el (skeleton-insert): Fix last change.
Eli Zaretskii [Sat, 21 Jun 2014 13:41:44 +0000 (16:41 +0300)]
lisp/skeleton.el (skeleton-insert): Fix last change.

9 years agosrc/dispextern.h: Fix commentary to it's hpos member.
Eli Zaretskii [Sat, 21 Jun 2014 12:34:02 +0000 (15:34 +0300)]
src/dispextern.h: Fix commentary to it's hpos member.

9 years agoFix bug #17823 with vertical-motion in lines with line-prefix.
Eli Zaretskii [Sat, 21 Jun 2014 12:30:02 +0000 (15:30 +0300)]
Fix bug #17823 with vertical-motion in lines with line-prefix.

 src/indent.c (Fvertical_motion): Move to the goal column, if any,
 with a single call to move_it_in_display_line, not in two calls.
 Doing this with two calls causes move_it_in_display_line apply the
 line-prefix handling twice instead of just once.

9 years agoEnhancements for outline integration.
Fabián Ezequiel Gallina [Sat, 21 Jun 2014 11:26:43 +0000 (08:26 -0300)]
Enhancements for outline integration.
* lisp/progmodes/python.el (python-mode): Properly set
outline-heading-end-regexp so that comments after colons for
defuns are supported.

Fixes: debbugs:17796

9 years agoImprove documentation of how vertical-motion interprets columns.
Eli Zaretskii [Sat, 21 Jun 2014 08:17:29 +0000 (11:17 +0300)]
Improve documentation of how vertical-motion interprets columns.

 src/indent.c (Fvertical_motion): Doc fix.

 doc/lispref/positions.texi (Screen Lines): Clarify how columns are counted
 by vertical-motion.

9 years agoImprove documentation of \n in a skeleton.
Eli Zaretskii [Sat, 21 Jun 2014 08:05:39 +0000 (11:05 +0300)]
Improve documentation of \n in a skeleton.

 doc/misc/autotype.texi (Skeleton Language): Document the feature of \n
 when at eol.

9 years agolisp/skeleton.el (skeleton-insert): Doc fix.
Eli Zaretskii [Sat, 21 Jun 2014 08:01:52 +0000 (11:01 +0300)]
lisp/skeleton.el (skeleton-insert): Doc fix.

9 years agoPort to OS X ACLs.
Paul Eggert [Sat, 21 Jun 2014 07:03:41 +0000 (00:03 -0700)]
Port to OS X ACLs.

* fileio.c (Ffile_acl): Port to OS X, where acl_get_file (...,
ACL_TYPE_ACCESS) doesn't work.

Fixes: debbugs:17810

9 years ago* lisp/emacs-lisp/smie.el (smie-config--guess): Fix typo.
Stefan Monnier [Fri, 20 Jun 2014 21:10:40 +0000 (17:10 -0400)]
* lisp/emacs-lisp/smie.el (smie-config--guess): Fix typo.
(smie-config-guess): Use smie-config-local so the rules are obeyed.

Fixes: debbugs:17818

9 years ago* configure.ac: Warn about --enable-link-time-optimization's issues
Paul Eggert [Fri, 20 Jun 2014 19:46:18 +0000 (12:46 -0700)]
* configure.ac: Warn about --enable-link-time-optimization's issues

in --help message.

Fixes: debbugs:17806

9 years ago* lisp/mouse.el (mouse-drag-line): Don't re-add to unread-comment-events,
Stefan Monnier [Fri, 20 Jun 2014 18:35:04 +0000 (14:35 -0400)]
* lisp/mouse.el (mouse-drag-line): Don't re-add to unread-comment-events,
since it's already done inside the loop (bug#17819).

9 years agoIn mouse-drag-line remove inadvertently reintroduced code (Bug#17819).
Martin Rudalics [Fri, 20 Jun 2014 17:24:18 +0000 (19:24 +0200)]
In mouse-drag-line remove inadvertently reintroduced code (Bug#17819).

* mouse.el (mouse-drag-line): Re-remove code initially removed
on 2013-03-09 and inadvertently reintroduced on 2013-11-30
(Bug#17819).

9 years agoDiagnose failures due to colons in directory names.
Paul Eggert [Fri, 20 Jun 2014 16:05:10 +0000 (09:05 -0700)]
Diagnose failures due to colons in directory names.

* Makefile.in (epaths-force): Don't allow ':' in directories whose
names go into a colon-separated path.
* configure.ac: Fail if submake fails.

Fixes: debbugs:17278

9 years ago* lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
Stefan Monnier [Fri, 20 Jun 2014 14:23:30 +0000 (10:23 -0400)]
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
align with the surrounding parent.

Fixes: debbugs:17721

9 years agoFix bug #17801 with extraneous newlines after inserting markup in Texinfo mode.
Eli Zaretskii [Fri, 20 Jun 2014 08:47:10 +0000 (11:47 +0300)]
Fix bug #17801 with extraneous newlines after inserting markup in Texinfo mode.

 lisp/textmodes/texinfo.el (texinfo-mode): Set skeleton-end-newline
 locally to nil.
 (texinfo-insert-block, texinfo-insert-@end)
 (texinfo-insert-@example, texinfo-insert-@quotation): Adjust to
 local setting of skeleton-end-newline by adding an explicit \n to
 the skeletons where appropriate.

9 years agoPort to GCC 4.9.0 with link time optimization.
Paul Eggert [Fri, 20 Jun 2014 06:07:47 +0000 (23:07 -0700)]
Port to GCC 4.9.0 with link time optimization.

* configure.ac (CFLAGS): With link time optimization,
use -ffat-lto-objects if supported; otherwise Emacs won't
build with GCC 4.9.0.

Fixes: debbugs:17806

9 years ago* lisp/emacs-lisp/smie.el (smie--hanging-eolp-function): New var.
Stefan Monnier [Fri, 20 Jun 2014 01:05:40 +0000 (21:05 -0400)]
* lisp/emacs-lisp/smie.el (smie--hanging-eolp-function): New var.
(smie-indent--hanging-p): Use it.
* lisp/progmodes/sh-script.el (sh-set-shell): Set it.

Fixes: debbugs:17621

9 years ago* simple.el (read-quoted-char): Don't let help chars pop up help
Leo Liu [Fri, 20 Jun 2014 00:14:43 +0000 (08:14 +0800)]
* simple.el (read-quoted-char): Don't let help chars pop up help
buffer.

Fixes: debbugs:16617

9 years ago* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && as
Stefan Monnier [Thu, 19 Jun 2014 22:52:12 +0000 (18:52 -0400)]
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && as
for |.

Fixes: debbugs:17621

9 years ago* cedet/semantic/ia.el (semantic-ia-complete-symbol-menu): Use posn-at-point
Stefan Monnier [Thu, 19 Jun 2014 22:07:09 +0000 (18:07 -0400)]
* cedet/semantic/ia.el (semantic-ia-complete-symbol-menu): Use posn-at-point
instead of senator-completion-menu-point-as-event; un-comment, tho keep
the "no smart completion" fallback commented since it still doesn't work.

9 years ago* lisp/progmodes/hideif.el (hif-string-to-number): Don't return float for
William Xu [Thu, 19 Jun 2014 21:08:44 +0000 (17:08 -0400)]
* lisp/progmodes/hideif.el (hif-string-to-number): Don't return float for
hex integer constants.

Fixes: debbugs:17807

9 years agoUpdate comments in erc-format-@nick to reflect changes in last merge.
Kelvin White [Thu, 19 Jun 2014 17:22:31 +0000 (13:22 -0400)]
Update comments in erc-format-@nick to reflect changes in last merge.

9 years agoMerge commit for debbugs:17755
Kelvin White [Thu, 19 Jun 2014 17:00:00 +0000 (13:00 -0400)]
Merge commit for debbugs:17755

9 years agoERC: Better user mode support
Kelvin White [Thu, 19 Jun 2014 16:56:18 +0000 (12:56 -0400)]
ERC: Better user mode support

Fixes: debbugs:17755

9 years agoMinor cleanup of fonset code.
Dmitry Antipov [Thu, 19 Jun 2014 16:52:20 +0000 (20:52 +0400)]
Minor cleanup of fonset code.
* fontset.c (FONTSET_ID, set_fontset_id, FONTSET_NAME)
(set_fontset_name, FONTSET_ASCII, set_fontset_ascii)
(FONTSET_BASE, set_fontset_base, FONTSET_FRAME)
(set_fontset_frame, FONTSET_NOFONT_FACE, set_fontset_nofont_face)
(FONTSET_DEFAULT, set_fontset_default, FONTSET_FALLBACK)
(set_fontset_fallback): Reorder extra slots and avoid unused slots.
(free_realized_fontset): Remove because a no-op since 2008.
(free_face_fontset): Adjust user.
(syms_of_fontset): Shrink fontset by one extra slot.

9 years ago* lisp/international/mule-util.el (truncate-string-ellipsis): New var.
Stefan Monnier [Thu, 19 Jun 2014 14:58:57 +0000 (10:58 -0400)]
* lisp/international/mule-util.el (truncate-string-ellipsis): New var.
(truncate-string-to-width): Use it.

9 years ago* etc/NEWS: New Tramp method "nc".
Robert Brown (tiny change) [Thu, 19 Jun 2014 14:03:45 +0000 (10:03 -0400)]
* etc/NEWS: New Tramp method "nc".

* lisp/emacs-lisp/lisp-mode.el (lisp-string-after-doc-keyword-p): New fun.
(lisp-string-in-doc-position-p): New function, extracted from
lisp-font-lock-syntactic-face-function.
(lisp-font-lock-syntactic-face-function): Use them.

Fixes: debbugs:9130

9 years ago* net/rcirc.el (rcirc-omit-mode): Fix recenter error.
Grégoire Jadi [Thu, 19 Jun 2014 11:14:59 +0000 (19:14 +0800)]
* net/rcirc.el (rcirc-omit-mode): Fix recenter error.

Fixes: debbugs:17769

9 years ago* src/keyboard.c (read_key_sequence): Don't invoke Vprefix_help_command
Stefan Monnier [Thu, 19 Jun 2014 03:48:18 +0000 (23:48 -0400)]
* src/keyboard.c (read_key_sequence): Don't invoke Vprefix_help_command
before checking key-translation-map.

Fixes: debbugs:17659

9 years ago* font.c (font_make_object): Avoid dangling pointer which may
Dmitry Antipov [Thu, 19 Jun 2014 03:21:07 +0000 (07:21 +0400)]
* font.c (font_make_object): Avoid dangling pointer which may
crash GC (Bug#17771).

9 years ago* lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change.
Stefan Monnier [Wed, 18 Jun 2014 22:02:15 +0000 (18:02 -0400)]
* lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change.
(xterm-mouse--read-event-sequence-1000): Drop unknown events instead of
burping.

Fixes: debbugs:17776

9 years ago* lisp/play/bubbles.el (bubbles--initialize, bubbles--show-scores)
Stefan Monnier [Wed, 18 Jun 2014 19:38:00 +0000 (15:38 -0400)]
* lisp/play/bubbles.el (bubbles--initialize, bubbles--show-scores)
(bubbles--game-over): Don't add `intangible' properties since they
didn't work anyway.

9 years agosrc/image.c: Yet another fix for last commit.
Eli Zaretskii [Wed, 18 Jun 2014 16:57:26 +0000 (19:57 +0300)]
src/image.c: Yet another fix for last commit.

Fixes: debbugs:17790

9 years agosrc/image.c: Another fix for last commit.
Eli Zaretskii [Wed, 18 Jun 2014 16:39:14 +0000 (19:39 +0300)]
src/image.c: Another fix for last commit.

Fixes: debbugs:17790

9 years agosrc/image.c: Fix last commit.
Eli Zaretskii [Wed, 18 Jun 2014 16:35:02 +0000 (19:35 +0300)]
src/image.c: Fix last commit.

Fixes: debbugs:17790

9 years agoFix bug #17790 with compilation against giflib 5.1.0 and later.
Eli Zaretskii [Wed, 18 Jun 2014 15:15:52 +0000 (18:15 +0300)]
Fix bug #17790 with compilation against giflib 5.1.0 and later.

 src/image.c [5 < GIFLIB_MAJOR + (1 <= GIFLIB_MINOR)]: Declare the
 prototype of DGifCloseFile as appropriate for older and newer
 versions of giflib.
 (gif_close): New function, encapsulates the differences in the
 calling sequence of DGifCloseFile before v5.1.0 and after it.
 (gif_load): Call gif_close instead of DGifCloseFile.  Divulge the
 error string where appropriate.

 lisp/term/w32-win.el (dynamic-library-alist): Support giflib 5.1.0
 and later.

9 years ago* lisp/vc/ediff-init.el (ediff-current-diff-Ancestor)
Juri Linkov [Wed, 18 Jun 2014 08:54:11 +0000 (11:54 +0300)]
* lisp/vc/ediff-init.el (ediff-current-diff-Ancestor)
(ediff-fine-diff-Ancestor, ediff-even-diff-A, ediff-even-diff-B)
(ediff-even-diff-C, ediff-even-diff-Ancestor, ediff-odd-diff-A)
(ediff-odd-diff-B, ediff-odd-diff-C, ediff-odd-diff-Ancestor):
Add `min-colors 88' version with removed black/white foregrounds.

Fixes: debbugs:10181

9 years ago* lisp/vc/diff-mode.el (diff-changed): Empty face definition
Juri Linkov [Wed, 18 Jun 2014 08:48:49 +0000 (11:48 +0300)]
* lisp/vc/diff-mode.el (diff-changed): Empty face definition
to use `diff-removed' and `diff-added' on tty as well.
(diff-context): Use darker color on light background and
lighter color on dark background.

Fixes: debbugs:10181

9 years ago* lisp/vc/diff-mode.el (diff-refine-changed): Rename from
Juri Linkov [Wed, 18 Jun 2014 08:33:57 +0000 (11:33 +0300)]
* lisp/vc/diff-mode.el (diff-refine-changed): Rename from
`diff-refine-change' for consistency with `diff-changed'.
(diff-refine-change): Add obsolete face alias.

* lisp/vc/smerge-mode.el (smerge-refined-changed): Rename from
`smerge-refined-change'.
(smerge-refined-change): Add obsolete face alias.

Fixes: debbugs:10181

9 years ago* lisp/dired.el (dired-mark-pop-up): Let-bind display-buffer-mark-dedicated to `soft'.
Juri Linkov [Wed, 18 Jun 2014 07:57:27 +0000 (10:57 +0300)]
* lisp/dired.el (dired-mark-pop-up): Let-bind display-buffer-mark-dedicated to `soft'.

Fixes: debbugs:17554

9 years ago* lisp/rect.el (rectangle-preview): New custom.
Stefan Monnier [Tue, 17 Jun 2014 19:33:58 +0000 (15:33 -0400)]
* lisp/rect.el (rectangle-preview): New custom.
(rectangle): New group.
(rectangle--pos-cols): Add `window' argument.
(rectangle--string-preview-state, rectangle--string-preview-window):
New vars.
(rectangle--string-flush-preview, rectangle--string-erase-preview)
(rectangle--space-to, rectangle--string-preview): New functions.
(string-rectangle): Use them.
(rectangle--inhibit-region-highlight): New var.
(rectangle--highlight-for-redisplay): Obey it.  Make sure
`apply-on-region' uses the point-crutches of the right window.
Use :align-to rather than multiple spaces.

9 years agoOmit redundant extern decls.
Paul Eggert [Tue, 17 Jun 2014 16:09:19 +0000 (09:09 -0700)]
Omit redundant extern decls.

Most of this patch is from Dmitry Antipov, in:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
* configure.ac (WERROR_CFLAGS): Add -Wredundant-decls.
* lib-src/emacsclient.c (getenv): Remove decl.
* lib-src/make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.
* lwlib/lwlib-Xm.c (lw_motif_widget_p, xm_update_one_value)
(xm_create_dialog, xm_destroy_instance, xm_popup_menu)
(xm_set_keyboard_focus, xm_set_main_areas): Remove decls.
* src/commands.h (update_mode_lines):
* src/frame.h (Qbackground_color, Qforeground_color)
(x_set_menu_bar_lines):
* src/ftfont.c (ftfont_font_format):
* src/intervals.h (Qkeymap, Qfont):
* src/keyboard.c (timer_check, safe_run_hooks, Qregion_extract_function):
* src/lisp.h (Ffboundp, Qnil, Qt, Qlambda, Qintegerp, Qwholenump)
(Qsymbolp, Qlisp, Qconsp, Qstringp, Qarrayp, Qbufferp, Qmarkerp)
(Qvectorp, Qbuffer_or_string_p, Qchar_table_p, Qvector_or_char_table_p)
(Qfloatp, Qnumberp, Qfont_spec, Qfont_entity, Qfont_object)
(Fbyteorder, wrong_type_argument, Fmax_char, syms_of_composite)
(Fidentity, extract_float, init_display, syms_of_display, Qdisplay):
(Qimage, Qbox, redisplay_preserve_echo_area, char_table_ref)
(char_table_set, char_table_translate, Qautoload, Qbottom, Qtop)
(Qvisible, Qfont, Qfront_sticky, Qrear_nonsticky, init_sigio)
(Qtool_bar, Qheader_line):
* src/macros.c (Fexecute_kbd_macro):
* src/xdisp.c (Ftool_bar_height, Ftool_bar_height):
* src/xterm.c (x_delete_terminal, XSetIMValues):
* src/xterm.h (x_set_window_size, x_query_color, x_get_focus_frame)
(x_implicitly_set_name, popup_activated)
(widget_store_internal_border):
Remove redundant decls.
* src/frame.c [USE_X_TOOLKIT]: Include widget.h.
* src/keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit):
Remove _Noreturn, as make-docfile now does that for us.
* src/lisp.h (DEFUN): Don't declare fnname here; rely on make-docfile.
(Qregion_extract_function): New decl.
* src/window.c, src/xfns.c: Include menu.h.

9 years ago* src/callint.c (Fcall_interactively): Fix up last change.
Stefan Monnier [Tue, 17 Jun 2014 13:50:22 +0000 (09:50 -0400)]
* src/callint.c (Fcall_interactively): Fix up last change.

Fixes: debbugs:17701

9 years ago* lisp.h (STRING_COPYIN): Remove; unused.
Dmitry Antipov [Tue, 17 Jun 2014 13:41:14 +0000 (17:41 +0400)]
* lisp.h (STRING_COPYIN): Remove; unused.
* ccl.c (Fccl_execute_on_string):
* font.c (fon_intern_prop): Use make_specified_string.

9 years ago* lisp/delsel.el (electric-newline-and-maybe-indent): Mark it as well.
Stefan Monnier [Tue, 17 Jun 2014 13:40:03 +0000 (09:40 -0400)]
* lisp/delsel.el (electric-newline-and-maybe-indent): Mark it as well.

Fixes: debbugs:17737

9 years ago* eval.c (toplevel): Remove redundant #include directives.
Dmitry Antipov [Tue, 17 Jun 2014 03:40:29 +0000 (07:40 +0400)]
* eval.c (toplevel): Remove redundant #include directives.
* xterm.c (x_initialize): Add static to match prototype.

9 years ago* fileio.c (Fread_file_name): Do not pass redundant args and ...
Dmitry Antipov [Tue, 17 Jun 2014 03:14:00 +0000 (07:14 +0400)]
* fileio.c (Fread_file_name): Do not pass redundant args and ...
* callint.c (read_file_name): ... convert to static here.
* lisp.h (Fread_file_name): Do not EXFUN it.
* composite.c (CHAR_COMPOSABLE_P): Replace unsafe macro with ...
(char_composable_p): ... static function.  All users changed.

9 years ago* Makefile.in (ns-app): Fix typo that broke build on OS X.
Paul Eggert [Mon, 16 Jun 2014 22:38:17 +0000 (15:38 -0700)]
* Makefile.in (ns-app): Fix typo that broke build on OS X.

Reported by David Caldwell in:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00251.html

9 years ago* notes/elpa: Use "git" instead of "bzr" in the name of machine to
Stephen Berman [Mon, 16 Jun 2014 21:29:08 +0000 (23:29 +0200)]
* notes/elpa: Use "git" instead of "bzr" in the name of machine to
clone the repository from.

9 years agoA better fix for bug #17777 with visual-order cursor movement.
Eli Zaretskii [Mon, 16 Jun 2014 19:38:28 +0000 (22:38 +0300)]
A better fix for bug #17777 with visual-order cursor movement.

 src/xdisp.c (Fmove_point_visually): Instead of testing for keyboard
 macro execution, make sure point didn't move since last complete
 redisplay, as the condition for using the glyph matrix
 information.

9 years agoDo not ask for XRender extension each time XFT font is opened.
Dmitry Antipov [Mon, 16 Jun 2014 08:49:09 +0000 (12:49 +0400)]
Do not ask for XRender extension each time XFT font is opened.
* xftfont.c (xftfont_open): Move call to XRenderQueryExtension ...
* xterm.c (x_term_init) [HAVE_XFT]: ... to here.  Adjust comment.

9 years agoIn ruler-mode fix calculation of column from mouse position (Bug#17768).
Andrea Rossetti [Mon, 16 Jun 2014 06:37:37 +0000 (08:37 +0200)]
In ruler-mode fix calculation of column from mouse position (Bug#17768).

* ruler-mode.el (ruler-mode-window-col)
(ruler-mode-mouse-set-left-margin)
(ruler-mode-mouse-set-right-margin): Fix calculation of column
from mouse position (Bug#17768).

9 years ago* play/dunnet.el (dun-doassign): Fixed bug where UNIX variable assignment without...
Ron Schnell [Mon, 16 Jun 2014 05:05:05 +0000 (01:05 -0400)]
* play/dunnet.el (dun-doassign): Fixed bug where UNIX variable assignment without varname or rhs causes crash.
* play/dunnet.el (dun-ftp): Fixed bug where blank ftp password is allowed, making it impossible to win endgame.
* play/dunnet.el (dun-unix-verbs): Added ssh as alias to rlogin, because nobody knows what rlogin is anymore.
* play/dunnet.el (dun-help): Bumped version number, updated contact info.

9 years agoFix bug#17732
Dmitry Gutov [Mon, 16 Jun 2014 03:33:29 +0000 (06:33 +0300)]
Fix bug#17732

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't fontify
`!' in `!~' with `font-lock-negation-char-face'.

9 years agoMakefile comments
Glenn Morris [Sun, 15 Jun 2014 22:42:31 +0000 (15:42 -0700)]
Makefile comments

9 years ago* NEWS: New Tramp method "nc".
Michael Albinus [Sun, 15 Jun 2014 20:49:10 +0000 (22:49 +0200)]
* NEWS: New Tramp method "nc".

9 years ago* oldXMenu/Makefile.in (CPPFLAGS): Explicitly set via configure.
Glenn Morris [Sun, 15 Jun 2014 17:59:30 +0000 (10:59 -0700)]
* oldXMenu/Makefile.in (CPPFLAGS): Explicitly set via configure.

9 years agoExplicitly set LDFLAGS in some sub-Makefiles
Glenn Morris [Sun, 15 Jun 2014 17:45:38 +0000 (10:45 -0700)]
Explicitly set LDFLAGS in some sub-Makefiles

* lib-src/Makefile.in (LDFLAGS): Explicitly set via configure.

* nt/Makefile.in (LDFLAGS): Explicitly set via configure.

9 years agoFix MS-Windows build broken by latest Makefile.in changes.
Eli Zaretskii [Sun, 15 Jun 2014 17:36:04 +0000 (20:36 +0300)]
Fix MS-Windows build broken by latest Makefile.in changes.

 nt/Makefile.in (CPPFLAGS): Define.

 lib-src/Makefile.in (CPPFLAGS): Define.

9 years agoSync with Tramp 2.2.10.
Michael Albinus [Sun, 15 Jun 2014 15:57:47 +0000 (17:57 +0200)]
Sync with Tramp 2.2.10.

9 years agoSync with Tramp 2.2.10.
Michael Albinus [Sun, 15 Jun 2014 15:56:58 +0000 (17:56 +0200)]
Sync with Tramp 2.2.10.

* test/automated/tramp-tests.el (tramp--test-enabled): Ignore errors.
(tramp--instrument-test-case): Extend docstring.
(tramp-test15-copy-directory): Skip for tramp-smb.el.
(tramp-test21-file-links): Use `file-truename' for directories.
(tramp-test27-start-file-process, tramp-test28-shell-command):
Retrieve process output more robustly.
(tramp--test-check-files): Extend test.
(tramp-test30-special-characters): Skip for tramp-adb.el,
tramp-gvfs.el and tramp-smb.el.  Add further file names.

9 years agoSync with Tramp 2.2.10.
Michael Albinus [Sun, 15 Jun 2014 15:47:35 +0000 (17:47 +0200)]
Sync with Tramp 2.2.10.

* lisp/net/tramp-adb.el (tramp-adb-handle-write-region): Improve messages.
(tramp-adb-maybe-open-connection): Don't set
`tramp-current-*' variables.

* lisp/net/tramp-cache.el (tramp-flush-file-function): Do not flush
file properties of temporary buffers.

* lisp/net/tramp-ftp.el (top): Remove special handling for URL syntax.

* lisp/net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
(tramp-gvfs-handle-delete-file): Flush file
properties, not directory properties.
(tramp-gvfs-handle-file-attributes): Use `string-to-number' when
reading "unix::mode".
(tramp-gvfs-handle-file-name-all-completions):
Use "-h" option for "gvfs-ls".
(tramp-gvfs-url-file-name): `user' and `localname' could be nil.
(tramp-gvfs-send-command): Simplify traces.

* lisp/net/tramp-sh.el (vc-handled-backends, vc-bzr-program)
(vc-git-program, vc-hg-program): Declare.
(tramp-methods) <sftp>: Remove.  It has never worked satisfactorily.
(tramp-methods) <nc>: Add new method.
(tramp-methods) <telnet>: Redirect stderr to "/dev/null".
(tramp-methods) <plink, plinkx, pscp, psftp>: Improve
`tramp-login-args'.
(tramp-default-user-alist): Add "nc".
(top): Remove completion function for "sftp".  Add completion
functions for "nc" and "psftp".
(tramp-do-copy-or-rename-file-out-of-band): Tweak docstring.
Implement support for "nc" method.
(tramp-sh-handle-expand-file-name, tramp-local-coding-commands)
(tramp-remote-coding-commands, tramp-call-local-coding-command):
Tweak docstring.
(tramp-sh-handle-write-region): Tweak error message.
(tramp-sh-handle-vc-registered): Remove backends when the remote
binary does not exist.
(tramp-find-inline-encoding): Do not raise an error.
(tramp-make-copy-program-file-name): Tweak docstring.  Handle also
the "nc" case.  Quote result also locally.

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-set-file-acl): Use `start-process'.
(tramp-smb-handle-insert-directory): Use progress reporter.
(tramp-smb-handle-rename-file): Flush also file properties of
FILENAME.

* lisp/net/tramp.el (tramp-methods): Tweak docstring.
(tramp-handle-file-accessible-directory-p): Check for
`file-readable-p' instead of `file-executable-p'.
(tramp-check-cached-permissions): Use
`tramp-compat-file-attributes'.
(tramp-call-process): Add new argument VEC.  Adapt callees in all
tramp*.el files.

* lisp/net/trampver.el: Update release number.

9 years agoSync with Tramp 2.2.10.
Michael Albinus [Sun, 15 Jun 2014 15:09:22 +0000 (17:09 +0200)]
Sync with Tramp 2.2.10.

* doc/misc/tramp.texi (Inline methods): Remove restriction on "telnet".
Recommend sharing ssh connections for "plink".
(External methods): Remove "sftp".  Merge "pscp" and "psftp"
descriptions.  Recommend sharing ssh connections.  Add "nc" method.
(GVFS based methods): Add "sftp".
(Customizing Completion, External packages, Issues):
Use @dots{}.

* doc/misc/trampver.texi: Update release number.

9 years ago* dbus.texi (Type Conversion): Formatting edits in example.
Michael Albinus [Sun, 15 Jun 2014 12:19:38 +0000 (14:19 +0200)]
* dbus.texi (Type Conversion): Formatting edits in example.

9 years agoFix a regression bug in D-Bus event handling.
Michael Albinus [Sun, 15 Jun 2014 12:15:25 +0000 (14:15 +0200)]
Fix a regression bug in D-Bus event handling.

* net/dbus.el (dbus-call-method): Push only non D-Bus events into
`unread-command-events'.