1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00
Commit graph

132478 commits

Author SHA1 Message Date
Michael Albinus
9942734c75 * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print selector. 2018-03-18 10:01:37 +01:00
Michael Albinus
bcc146a668 Optimize tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp--test-expensive-test):
Make it a defsubst.  Adapt all callees.
(tramp--test-print-duration): New defmacro.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links, tramp--test-special-characters):
Run some parts only if expensive tests are enabled.  (Bug#30807)
2018-03-17 15:10:46 +01:00
Aaron Jensen
f7346a584e In frameset save pixel values with frame-resize-pixelwise non-nil (Bug#30141)
* lisp/frameset.el (frameset--record-relationships): Replace
check for text width/height and replace with check for
frame-resize-pixelwise.  (Bug#30141)
2018-03-17 10:58:17 +01:00
Michael Albinus
bcec2a8a39 Print test timings unconditionally
* lisp/emacs-lisp/ert.el (ert-batch-print-duration): Remove.
(ert-run-tests-batch): Adapt accordingly.

* test/Makefile.in:
* test/README: Remove TEST_PRINT_TEST_DURATION.
2018-03-17 10:25:22 +01:00
Glenn Morris
1c7db8aa30 Explicitly require cl-lib where needed
Rather than relying on the byte-compiler happening to use it.
* lisp/completion.el, lisp/ffap.el, lisp/loadhist.el:
* lisp/userlock.el, lisp/emacs-lisp/debug.el, lisp/emacs-lisp/rx.el:
* lisp/emacs-lisp/testcover.el, lisp/mail/rfc2231.el:
* lisp/net/newst-treeview.el, lisp/net/puny.el:
* lisp/net/tramp-archive.el, lisp/net/tramp-gvfs.el:
* lisp/net/tramp-sh.el, lisp/net/tramp-smb.el, lisp/org/org-ctags.el:
* lisp/org/org-macs.el, lisp/progmodes/grep.el:
* lisp/progmodes/perl-mode.el, lisp/progmodes/ruby-mode.el:
* lisp/textmodes/dns-mode.el, lisp/textmodes/mhtml-mode.el:
* lisp/vc/pcvs-parse.el: Explicitly require cl-lib as needed.
2018-03-16 20:41:17 -04:00
Glenn Morris
9c4ee53115 cedet: remove obsolete name args to constructors
* lisp/cedet/ede/proj-archive.el, lisp/cedet/ede/proj-aux.el:
* lisp/cedet/ede/proj-elisp.el, lisp/cedet/ede/proj-info.el:
* lisp/cedet/ede/proj-misc.el, lisp/cedet/ede/proj-obj.el:
* lisp/cedet/ede/proj-shared.el, lisp/cedet/ede/simple.el:
* lisp/cedet/ede/source.el, lisp/cedet/semantic/:
* lisp/cedet/semantic/analyze.el, lisp/cedet/semantic/complete.el:
* lisp/cedet/semantic/db-javascript.el:
* lisp/cedet/semantic/db-ref.el, lisp/cedet/semantic/debug.el:
* lisp/cedet/semantic/ede-grammar.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/scope.el:
* lisp/cedet/semantic/texi.el, lisp/cedet/semantic/bovine/:
* lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/bovine/debug.el, lisp/cedet/srecode/:
* lisp/cedet/srecode/extract.el, lisp/cedet/srecode/map.el:
* lisp/cedet/srecode/srt-mode.el:
Remove obsolete name args to constructors.
2018-03-16 20:34:27 -04:00
Glenn Morris
165803c691 Quieten semantic re-compilation when .elc already exist
* lisp/cedet/semantic/db-find.el, lisp/cedet/semantic/util.el:
Add some function declarations.
2018-03-16 13:44:13 -04:00
Glenn Morris
18d82f15ae * lisp/gnus/gnus-registry.el: Add missing compile-time requirement. 2018-03-16 13:42:49 -04:00
Eli Zaretskii
4a20174d79 Fix 'posn-at-point' when line numbers are displayed
* src/xdisp.c (pos_visible_p): For the leftmost glyph, adjust the X
coordinate due to line-number display.  (Bug#30834)
2018-03-16 19:15:33 +02:00
Eli Zaretskii
33cba5405c Another followup to fixing 'window-text-pixel-width'
* src/xdisp.c (Fwindow_text_pixel_size): Adjust the return value
when we stop one buffer position short of TO.  (Bug#30746)
2018-03-16 18:11:07 +02:00
Michael Albinus
2d0853f62a Optimize "make check" and "make check-maybe"
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print summary duration.

* test/Makefile.in (TEST_LOAD_EL): Set default to "no" for
targets all, check, and check-maybe.  (Bug#30807)

* test/README: Reflect recent changes in Makefile.

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test99-libarchive-tests): Tag it :unstable.
2018-03-16 16:19:10 +01:00
Reuben Thomas
a402d9aacb Call enchant-lsmod correctly when Enchant is installed with a suffix
* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Cope with a
version suffix on the binary name, so enchant-2 is converted to
enchant-lsmod-2, not enchant-2-lsmod.
2018-03-16 10:50:21 +00:00
Glenn Morris
419514a84a Suppress warnings about obsolete generics (bug#25556)
* lisp/Makefile.in (MAIN_FIRST): New variable.
(compile-main): Put some files at the head of the queue.
2018-03-16 01:57:39 -04:00
Glenn Morris
b1d7e58520 Replace some obsolete uses of filter-buffer-substring-functions
* lisp/org/org-agenda.el (org-agenda-mode):
* lisp/org/org-indent.el (org-indent-mode):
Replace filter-buffer-substring-functions, obsolete since 24.4.
2018-03-15 20:23:09 -04:00
Glenn Morris
0a9d297198 * lisp/gnus/nnmaildir.el (nnmaildir-close-server):
Remove unused locals.

; By inspection, these were leftovers rather than dynamic bindings.
; See eg a very old version of nnmaildir.el such as
; https://web.archive.org/web/20020531235353/http://multivac.cwru.edu:80/nnmaildir/releases/nnmaildir-2001.12.19.el.bz2
2018-03-15 20:22:06 -04:00
Glenn Morris
23f139e72a * lisp/emulation/cua-base.el (cua-paste): Quieten compilation. 2018-03-15 20:20:24 -04:00
Glenn Morris
0e2984a7f4 * lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation. 2018-03-15 13:29:30 -04:00
Paul Eggert
64a1da4989 Improve port to NetBSD tzalloc
Problem reported by Valery Ushakov (Bug#30738#13).
* src/editfns.c (tzlookup) [__NetBSD_Version__ < 700000000]:
If tzalloc fails for any reason other than memory exhaustion,
assume it’s because NetBSD 6 does not support tzalloc on
POSIX-format TZ strings, and fall back on tzdb if possible.
2018-03-15 09:36:28 -07:00
Glenn Morris
711b94c8bb * test/lisp/ses-tests.el: Quieten compilation. 2018-03-15 12:32:50 -04:00
Glenn Morris
86aaf45e30 * lisp/pcomplete.el (pcomplete-here): Move before first reference. 2018-03-15 12:32:22 -04:00
Michael Albinus
d6e04a6d1c Improve robustness in tramp-sh.el
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Wrap both echo calls in parentheses, in order to avoid double prompt.
2018-03-15 16:11:14 +01:00
Eli Zaretskii
9e73c9d038 Support variable-unquoting syntax in bat-mode
* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fontify
argument numbers in %~n.  Suggested by Jostein Kjønigsen
<jostein@secure.kjonigsen.net> in emacs-devel.

* test/lisp/progmodes/bat-mode-tests.el
(bat-test-fontification-iter-var-1): Update the test to check also
the %~n construct.
2018-03-15 15:23:01 +02:00
Eli Zaretskii
5c585b8b99 Fix mouse-set-point when line numbers are displayed
* src/xdisp.c (move_it_to): Initialize the line_number_produced_p
flag before iterating on a new line.  (Bug#30818)
2018-03-15 15:13:50 +02:00
Michael Albinus
c8c486bd38 Fix an error in tramp-archive-test42-auto-load
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test42-auto-load):
Do not use "/ssh::" as test directory, it could harm.  (Bug#30807)
2018-03-15 11:32:50 +01:00
Glenn Morris
5d968dbf6b More hydra.nixos.org logging for unfinished tests
* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Dump contents of any unfinished log files on hydra.nixos.org.
2018-03-14 14:30:39 -04:00
Stefan Monnier
5bebacc476 * lisp/desktop.el: Make use some "new" functionality
(desktop-files-not-to-save, desktop-clear):
Use \` and \' when we don't intend to match newlines.
(desktop-minor-mode-table): Remove auto-fill-function entry.
(desktop-buffer-info): Use :minor-mode-function instead.
(desktop--v2s): Use a closure rather than a backquoted lambda.
(desktop-save): Set 'lexical-binding' in the saved file.
Use 'utf-8-emacs' encoding rather than the old 'emacs-mule'.
(desktop-read): Use 'default-value' to get the global part of a hook.
2018-03-14 12:14:01 -04:00
Michael Albinus
d993d00394 ; * test/README: Fix typo 2018-03-14 16:45:45 +01:00
Michael Albinus
84a946a519 Extend ert to print duration of single tests
* lisp/emacs-lisp/ert.el (ert-test-result): New slot ´duration'.
(ert-run-or-rerun-test): Set it.
(ert-batch-print-duration): New defvar.
(ert-run-tests-batch): Print duration if needed.

* test/Makefile.in (TEST_PRINT_TEST_DURATION): New variable.

* test/README: Explain TEST_PRINT_TEST_DURATION.
2018-03-14 16:21:06 +01:00
Noam Postavsky
4c33ad4a24 Fix line-wrapping for term.el (Bug#30775)
* lisp/term.el (term-emulate-terminal): Leave line-wrapping state if
point was moved after we entered it.
* test/lisp/term-tests.el (term-line-wrapping-then-motion): New test.
2018-03-13 21:58:38 -04:00
Glenn Morris
e0f18aa07f Merge from origin/emacs-26
675edec (origin/emacs-26) Fix some allout.el aliases
b2c069a * lisp/progmodes/ada-mode.el (ada-clean-buffer-before-saving)...
2f5420c Doc fixes re obsolete items
9edf82a Replace an obsolete alias in tpu-mapper
a643792 Doc fixes re obsolete items
3060fb8 Minor changes in mule.texi
3e39897 Avoid assertion violation under visual-order-cursor-movement
e4b73ab Stop mentioning options.el in doc
05669f0 ; * lisp/minibuffer.el (completion-cycle-threshold): Fix last...
758597f * lisp/vc/vc-dir.el (vc-dir-unmark): Fix documentation.
62f0a2b * lisp/minibuffer.el (completion-cycle-threshold): Doc fix.
761845c Fix last change in Xref documentation
5186675 More changes in the Emacs manual
b1aaa72 Improve documentation of Xref

Conflicts:
	lisp/w32-fns.el
2018-03-13 18:13:26 -07:00
Glenn Morris
ae80854e9a Try to stop tramp test hangs on hydra
* test/lisp/net/tramp-tests.el (tramp-test41-asynchronous-requests):
Use fewer processes on hydra.
2018-03-13 18:45:38 -04:00
Glenn Morris
675edecf61 Fix some allout.el aliases
* lisp/allout.el (allout-passphrase-verifier-string)
(allout-passphrase-hint-string): Fix alias.
2018-03-13 14:48:37 -04:00
Glenn Morris
b2c069a20f * lisp/progmodes/ada-mode.el (ada-clean-buffer-before-saving): Doc fix. 2018-03-13 14:48:02 -04:00
Glenn Morris
2f5420c90a Doc fixes re obsolete items
* doc/emacs/mini.texi (Completion Commands): Small update re mouse.
* doc/misc/htmlfontify.texi (Customization): Replace obsolete alias.
2018-03-13 14:47:41 -04:00
Eli Zaretskii
06911714ef * src/xdisp.c (Fwindow_text_pixel_size): Fix last change. 2018-03-13 20:00:54 +02:00
Glenn Morris
9edf82a6d6 Replace an obsolete alias in tpu-mapper
* lisp/obsolete/tpu-mapper.el (tpu-map-key, tpu-mapper):
Replace obsolete alias.
2018-03-13 13:49:53 -04:00
Glenn Morris
a6437924f7 Doc fixes re obsolete items
* doc/emacs/maintaining.texi (VC Undo):
* doc/misc/efaq-w32.texi (Font names): Replace obsolete aliases.
* doc/misc/url.texi (Customization):
Don't mention url-temporary-directory, it essentially does nothing.
* lisp/hilit-chg.el
(highlight-changes-global-changes-existing-buffers): Doc fix.
; * lisp/w32-fns.el: Comment.
; * etc/TODO: Remove obsolete ffap mention.
2018-03-13 13:49:05 -04:00
Eli Zaretskii
3060fb8f81 Minor changes in mule.texi
* doc/emacs/mule.texi (International, Coding Systems)
(Bidirectional Editing): Minor wording changes and typo fixes.
Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
2018-03-13 19:40:24 +02:00
Eli Zaretskii
3e39897cd0 Avoid assertion violation under visual-order-cursor-movement
* src/xdisp.c (Fmove_point_visually): Don't let point exceed the
BEGV..ZV range.  Signal Beginning of buffer error when there's a
before-string at BEGV.  (Bug#30787)
2018-03-13 18:00:23 +02:00
Glenn Morris
9f8e7712d9 * lisp/subr.el (focus-frame, unfocus-frame): Remove obsolete no-ops.
* lisp/vc/ediff-util.el (ediff-recenter):
Don't try focus-frame on Emacs.
; * etc/NEWS: Mention this.
; Comments in subr.el mention VM as a user, however this is untrue since
; 2010-07.  Ref https://bazaar.launchpad.net/~vm/vm/trunk/revision/840
; and 853.
2018-03-12 23:42:17 -07:00
Glenn Morris
2734e29ff5 * lisp/obsolete/options.el: Remove file.
; etc/NEWS: Mention this.
2018-03-12 23:33:12 -07:00
Glenn Morris
9ab4cc1e27 ; tiny NEWS fix 2018-03-12 23:28:36 -07:00
Glenn Morris
e4b73abd38 Stop mentioning options.el in doc
* doc/misc/calc.texi (Customizing Embedded Mode):
Remove mentions of the obsolete (since 22.1) options.el.
* lisp/progmodes/meta-mode.el: Comment fix.
2018-03-12 21:09:36 -04:00
Glenn Morris
a2027ad648 * lisp/loadhist.el (unload-hook-features-list): Remove obsolete alias. 2018-03-12 20:58:38 -04:00
Eli Zaretskii
05669f0e3e ; * lisp/minibuffer.el (completion-cycle-threshold): Fix last change. 2018-03-12 22:08:54 +02:00
Charles A. Roelli
758597fb3e * lisp/vc/vc-dir.el (vc-dir-unmark): Fix documentation. 2018-03-12 20:16:53 +01:00
Glenn Morris
8048caab1d Make compiler warn about use of obsolete hooks
* lisp/emacs-lisp/bytecomp.el (byte-compile-form):
Warn about using obsolete hooks.
2018-03-12 11:29:01 -07:00
Glenn Morris
6b80a585c7 Replace use of the obsolete write-contents-hooks
* lisp/play/gametree.el (gametree-mode):
Replace write-contents-hooks, obsolete since 22.1,
with write-contents-functions.
; * lisp/files.el: Related comment.
2018-03-12 11:25:40 -07:00
Paul Eggert
e067f1fd9f Revert overenthusiastic procfs fixup
Also, be more systematic in calls to string_to_number.
* src/sysdep.c (list_system_processes) [HAVE_PROCFS]: Allow pids
to be floating-point if they exceed fixnum range.  This partially
reverts my patch 2018-03-09T20:06:05Z!eggert@cs.ucla.edu, which
went too far in fixing string-to-number mishandling.
2018-03-12 10:37:05 -07:00
Eli Zaretskii
62f0a2b229 * lisp/minibuffer.el (completion-cycle-threshold): Doc fix. 2018-03-12 19:25:10 +02:00