1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

116653 Commits

Author SHA1 Message Date
Glenn Morris
f7586999d2 * flymake-tests.el (flymake-tests--current-face): Tweak previous sleep change.
Using the time-honored principle of "if it doesn't when you do X,
do it again and see what happens".
2014-06-25 18:59:37 -04:00
Glenn Morris
7e58d67392 Try to fix some flymake-tests weirdness
* test/automated/flymake-tests.el (flymake-tests--current-face):
Sleep for longer.  Avoid querying.
2014-06-25 15:12:14 -04:00
Stefan Monnier
f51e7ac369 * lisp/play/landmark.el: Use lexical-binding and avoid `intangible'.
(landmark--last-pos): New var.
(landmark--intangible-chars): New const.
(landmark--intangible): New function.
(landmark-mode, landmark-move): Use it.
(landmark-mode): Remove properties.
(landmark-plot-square, landmark-point-square, landmark-goto-xy)
(landmark-cross-qtuple):
Don't worry about `intangible' any more.
(landmark-click, landmark-point-y): Same; and don't assume point-min==1.
(landmark-init-display): Don't set `intangible' and `point-entered'.
(square): Remove.  Inline it instead.
(landmark--distance): Rename from `distance'.
(landmark-calc-distance-of-robot-from): Rename from
calc-distance-of-robot-from.
(landmark-calc-smell-internal): Rename from calc-smell-internal.
2014-06-25 14:11:45 -04:00
Dmitry Antipov
3f107ef797 Fix ChangeLog entry. 2014-06-25 16:53:12 +04:00
Dmitry Antipov
51e12e8e94 Consistently use validate_subarray to verify substring.
* fns.c (validate_substring): Not static any more.  Adjust to
use ptrdiff_t, not EMACS_INT, becase string and vector limits
can't exceed ptrdiff_t even if EMACS_INT is wider.
* lisp.h (validate_subarray): Add prototype.
* coding.c (Fundecodable_char_position):
* composite.c (Fcomposition_get_gstring, Fcompose_string_internal):
Use validate_subarray.  Adjust comment to mention substring.
2014-06-25 16:11:08 +04:00
Dmitry Antipov
5697ca55cb Do not allow out-of-range character position in Fcompare_strings.
* src/fns.c (validate_subarray): Add prototype.
(Fcompare_substring): Use validate_subarray to check ranges.
Adjust comment to mention that the semantics was changed.  Also see
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html.
* lisp/files.el (dir-locals-find-file, file-relative-name):
* lisp/info.el (Info-complete-menu-item):
* lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p
to compare-strings to avoid out-of-range errors.
* lisp/subr.el (string-prefix-p): Adjust to match strict range
checking in compare-strings.
* test/automated/fns-tests.el (fns-tests-compare-string): New test.
2014-06-25 14:36:51 +04:00
Glenn Morris
9a214b9800 Auto-commit of loaddefs files. 2014-06-25 06:17:41 -04:00
Glenn Morris
002b161a30 nextstep: trivial Makefile simplification
* nextstep/Makefile.in (${ns_appbindir}): New.
(${ns_appbindir}/Emacs): Use order-only prereq to create output dir.
2014-06-24 23:39:03 -07:00
Glenn Morris
4f2a67acd0 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 $<.
2014-06-24 23:23:04 -07:00
Glenn Morris
4c920f37c5 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.
2014-06-24 23:03:13 -07:00
Glenn Morris
448dd61ceb * admin/unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo. 2014-06-24 22:57:51 -07:00
Glenn Morris
320624a308 ChangeLog fix 2014-06-24 21:29:07 -04:00
Leonard Randall
5132f910f3 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.
2014-06-24 21:39:22 +02:00
Paul Eggert
40f5d4b760 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'.
2014-06-24 01:10:48 -07:00
Eli Barzilay
7967f7d1d4 lisp/calculator.el (calculator-last-input): drop 'ascii-character property
lookup.
etc/NEWS: calculator.el user-visible changes.
2014-06-24 03:55:36 -04:00
Michael Albinus
b6266364bd * automated/tramp-tests.el (tramp-test26-process-file): Extend test
according to Bug#17815.
2014-06-24 09:48:19 +02:00
Glenn Morris
131a3a12c4 Merge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu 2014-06-24 00:15:26 -07:00
Eli Zaretskii
b950752961 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.
2014-06-24 00:10:47 -07:00
Glenn Morris
ab2da6e134 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.
2014-06-24 00:07:03 -07:00
Leo Liu
96559792e1 * 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
2014-06-24 07:09:20 +08:00
Sam Steingold
2fde356acb 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.
2014-06-23 16:23:33 -04:00
Stefan Monnier
5d2638bd31 * 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
2014-06-23 11:32:24 -04:00
Eli Zaretskii
f6a0938523 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.
2014-06-23 18:27:16 +03:00
Leo Liu
027676cc19 * doc/misc/dired-x.texi (Omitting Files in Dired, Omitting Variables): Fix
key binding to dired-omit-mode.

Fixes: debbugs:16354
2014-06-23 15:38:07 +08:00
Glenn Morris
814200c267 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.
2014-06-22 23:43:20 -07:00
Glenn Morris
b8e8363060 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.
2014-06-22 23:25:47 -07:00
Eli Barzilay
cc43334a3e * 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.
2014-06-23 01:14:23 -04:00
Dmitry Antipov
200fc9496f 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.
2014-06-23 08:11:29 +04:00
Mario Lang
33848c48a5 "the the", "from from" and "and and". 2014-06-23 01:12:17 +02:00
Andreas Schwab
f76c98dd13 * html2text.el (html2text-get-attr): Rewrite to handle spaces in quoted
attribute values.  (Bug#17834)
2014-06-22 23:14:43 +02:00
Eli Zaretskii
f3953a24ea 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.
2014-06-22 19:59:30 +03:00
Michael Albinus
6692a64cc4 * 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
2014-06-22 11:20:38 +02:00
Dmitry Antipov
9c3883b47d * 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.
2014-06-22 09:43:58 +04:00
Dmitry Antipov
b0358ef869 * 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.
2014-06-22 09:00:14 +04:00
Glenn Morris
38852a7695 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.
2014-06-21 15:06:04 -07:00
Glenn Morris
2a9a5ea855 * landmark.el: Commentary fixes. 2014-06-21 14:36:44 -07:00
Glenn Morris
6f110781e4 Fix landmark, broken since Emacs 23.1
* play/landmark.el (landmark-move-down, landmark-move-up):
Fix 2007-10-20 change - preserve horizontal position.
2014-06-21 14:21:46 -07:00
Glenn Morris
6263354fc6 ChangeLog fix (no need to merge to trunk) 2014-06-21 12:46:57 -07:00
Glenn Morris
c400516ab1 Merge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.ca 2014-06-21 12:45:59 -07:00
Eli Zaretskii
8047f439ec doc/misc/autotype.texi (Skeleton Language): Fix last change. 2014-06-21 18:08:18 +03:00
Fabián Ezequiel Gallina
656f99beeb 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
2014-06-21 11:14:54 -03:00
Eli Zaretskii
edd112b7f8 lisp/skeleton.el (skeleton-insert): Fix last change. 2014-06-21 16:41:44 +03:00
Eli Zaretskii
4e104c7672 src/dispextern.h: Fix commentary to it's hpos member. 2014-06-21 15:34:02 +03:00
Eli Zaretskii
53b15fa6dc 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.
2014-06-21 15:30:02 +03:00
Fabián Ezequiel Gallina
3114d9e702 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
2014-06-21 08:26:43 -03:00
Eli Zaretskii
97a1ef484e 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.
2014-06-21 11:17:29 +03:00
Eli Zaretskii
637bce026b Improve documentation of \n in a skeleton.
doc/misc/autotype.texi (Skeleton Language): Document the feature of \n
 when at eol.
2014-06-21 11:05:39 +03:00
Eli Zaretskii
900f938409 lisp/skeleton.el (skeleton-insert): Doc fix. 2014-06-21 11:01:52 +03:00
Paul Eggert
d895e63e96 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
2014-06-21 00:03:41 -07:00
Stefan Monnier
55d4eba2d0 * 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
2014-06-20 17:10:40 -04:00