]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoAdd new bytecodes for unwind-protect feature/byte-unwind-protect
Tom Tromey [Sat, 20 Jan 2018 19:25:26 +0000 (12:25 -0700)]
Add new bytecodes for unwind-protect

* lisp/emacs-lisp/byte-opt.el (disassemble-offset): Handle
byte-pushunwindprotect.
* lisp/emacs-lisp/bytecomp.el (byte-pushunwindprotect)
(byte-endunwindprotect): New bytecodes.
(byte-goto-ops): Add byte-pushunwindprotect.
(byte-compile-unwind-protect): Emit new bytecodes.
(byte-compile-goto): Handle byte-pushunwindprotect.
* lisp/emacs-lisp/cconv.el (cconv-convert): Don't special-case
unwind-protect when byte-compile--use-old-handlers.
(cconv-analyze-form): Likewise.
* src/bytecode.c (Bpushunwindprotect, Bendunwindprotect): New bytecodes.
(exec_byte_code): Implement new bytecodes.
* test/src/bytecode-tests.el: New file.

6 years agoMake CATCHER_ALL work for signal as well as throw
Tom Tromey [Fri, 19 Jan 2018 04:40:51 +0000 (21:40 -0700)]
Make CATCHER_ALL work for signal as well as throw

* src/emacs-module.c (MODULE_HANDLE_NONLOCAL_EXIT): Use
module_handle_unwind_protect.
(module_handle_signal, module_handle_throw): Remove.
(module_handle_unwind_protect): New function.
* src/eval.c (Fthrow): Add 'throw to value thrown to
CATCHER_ALL.
(internal_catch_all_1): Remove.
(internal_catch_all): Use CATCHER_ALL.
(signal_or_quit): Also unwind to CATCHER_ALL.
(syms_of_eval): Define Qthrow.
* src/lisp.h (enum handlertype): Update comment.

6 years ago* lisp/emacs-lisp/ert.el (describe-symbol-backends): Add ourselves
Stefan Monnier [Tue, 23 Jan 2018 03:00:55 +0000 (22:00 -0500)]
* lisp/emacs-lisp/ert.el (describe-symbol-backends): Add ourselves

(ert-describe-test): Return the description text as well.
Remove left over version check.
* lisp/help-mode.el (describe-symbol-backends): Add docstring.

6 years agoAdd a regression test for Bug#30004.
Philipp Stephani [Mon, 22 Jan 2018 22:56:21 +0000 (23:56 +0100)]
Add a regression test for Bug#30004.

* test/src/callint-tests.el
(call-interactively/incomplete-multibyte-sequence): New unit test.

6 years ago* src/nsterm.m (x_set_offset): Remove unused variable 'screens'.
Philipp Stephani [Mon, 22 Jan 2018 22:27:21 +0000 (23:27 +0100)]
* src/nsterm.m (x_set_offset): Remove unused variable 'screens'.

6 years agoRestore isearch correctly after M-e in special modes (bug#30187)
Juri Linkov [Mon, 22 Jan 2018 22:14:10 +0000 (00:14 +0200)]
Restore isearch correctly after M-e in special modes (bug#30187)

* lisp/isearch.el (isearch-suspended): New defvar.
(with-isearch-suspended): Set isearch-suspended to t
at the beginning, then set it back to nil at the end.

* lisp/comint.el (comint-history-isearch-backward)
(comint-history-isearch-backward-regexp): Set global value of
comint-history-isearch to t.
(comint-history-isearch-end): Reevaluate
comint-history-isearch when isearch-edit-string finishes.

* lisp/dired-aux.el (dired-isearch-filenames)
(dired-isearch-filenames-regexp): Set global value of
dired-isearch-filenames to t.
(dired-isearch-filenames-end): Reevaluate
dired-isearch-filenames when isearch-edit-string finishes.

6 years ago; Spelling fix
Paul Eggert [Mon, 22 Jan 2018 16:49:43 +0000 (08:49 -0800)]
; Spelling fix

6 years agoMerge from origin/emacs-26
Paul Eggert [Mon, 22 Jan 2018 16:43:54 +0000 (08:43 -0800)]
Merge from origin/emacs-26

1fc98ed073 ; Spelling fix
bb396a369c Update Org to v9.1.6
fa582153f7 Use text-pixels values only when saving framesets (Bug#30141)
6b01b9475d Minor improvement in section "Pages" of the usere manual
e8c8bd3de2 Minor improvements in user manual
26b8b92e63 Improve the "Mark" chapter of the user manual
759569fe40 Improve the "Buffers" chapter of the user manual
c2e6d121ff * lisp/term.el (term-send-input): Fix text duplication in ...
854a1c0a61 Improve "Buffers" in the user manual

# Conflicts:
# etc/NEWS

6 years ago; Spelling fix
Paul Eggert [Mon, 22 Jan 2018 16:41:49 +0000 (08:41 -0800)]
; Spelling fix

6 years agoUpdate Org to v9.1.6
Rasmus [Mon, 22 Jan 2018 14:57:42 +0000 (15:57 +0100)]
Update Org to v9.1.6

Please note this is a bugfix release. See etc/ORG-NEWS for details.

6 years agoFix byte-compiler warning in tramp-sh.el
Michael Albinus [Mon, 22 Jan 2018 14:07:56 +0000 (15:07 +0100)]
Fix byte-compiler warning in tramp-sh.el

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Use `set-process-coding-system' rather than interactive
`set-buffer-process-coding-system'.

* lisp/net/tramp.el (tramp-default-user-alist)
(tramp-default-host-alist): Fix docstring.

6 years agoUse text-pixels values only when saving framesets (Bug#30141)
Aaron Jensen [Mon, 22 Jan 2018 09:52:32 +0000 (10:52 +0100)]
Use text-pixels values only when saving framesets (Bug#30141)

* lisp/frameset.el (frameset-persistent-filter-alist): Specify
that text-pixels values are by default only saved by framesets
so the parameter is not set when restoring (Bug#30141).

6 years agoFinish changes in autorevert from commit 530bb2dc68
Michael Albinus [Mon, 22 Jan 2018 08:12:16 +0000 (09:12 +0100)]
Finish changes in autorevert from commit 530bb2dc68

* lisp/autorevert.el (auto-revert-buffers):
Check `auto-revert-timer' being a timerp.

* test/lisp/filenotify-tests.el (file-notify-test04-autorevert):
Adapt test in order to cover changed behavior of autorevert.

6 years ago* lisp/vc/add-log.el (change-log-next-buffer): Check file for nil.
Juri Linkov [Sun, 21 Jan 2018 21:48:32 +0000 (23:48 +0200)]
* lisp/vc/add-log.el (change-log-next-buffer): Check file for nil.

6 years agoNew function read-answer (bug#30073)
Juri Linkov [Sun, 21 Jan 2018 21:45:43 +0000 (23:45 +0200)]
New function read-answer (bug#30073)

* lisp/emacs-lisp/map-ynp.el (read-answer): New function.
(read-answer-short): New defcustom.

* lisp/dired.el (dired-delete-file): Use read-answer.
(dired--yes-no-all-quit-help): Remove function.
(dired-delete-help): Remove defconst.

* lisp/subr.el (assoc-delete-all): New function.

6 years ago(archive-rar-summarize): Adjust parsing to be more permissive
Lars Ingebrigtsen [Sun, 21 Jan 2018 20:41:36 +0000 (21:41 +0100)]
(archive-rar-summarize): Adjust parsing to be more permissive

* lisp/arc-mode.el (archive-rar-summarize): Adjust parsing to
be more permissive.

The previous code would stop parsing if we had a directory entry or a
negative ratio as seen from the output of lsar on Debian jessie:

  0. D----    16221659  -----  Nr20  2005-12-24 19:30  foo/
  4. -----      466509  -0.0%  Nr20  2005-12-24 19:19  foo/bar.jpg

6 years agoHandle C99 Compound Literals in return statements and argument lists.
Alan Mackenzie [Sun, 21 Jan 2018 18:29:26 +0000 (18:29 +0000)]
Handle C99 Compound Literals in return statements and argument lists.

* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): Recognize
a brace list when preceded by "return" or inside parentheses, either
immediately after the "(" or following a comma.
(c-looking-at-inexpr-block): Test c-has-compound-literals rather than hard
coded C++ Mode.
(c-guess-basic-syntax, CASE 7B): Test additionally for not being just inside a
parenthesis or being at a Java "new" keyword.  CASE 9: Remove the simple
minded test on the contents of a block to determine a brace list.

* lisp/progmodes/cc-langs.el (c-has-compound-literals): New lang const and lang var.

6 years agoMinor improvement in section "Pages" of the usere manual
Eli Zaretskii [Sun, 21 Jan 2018 17:55:46 +0000 (19:55 +0200)]
Minor improvement in section "Pages" of the usere manual

* doc/emacs/text.texi (Pages): Improve wording.  Suggested by Will
Korteland <emacs-devel@korte.land> in emacs-manual-bugs@gnu.org.

6 years agoMinor improvements in user manual
Eli Zaretskii [Sun, 21 Jan 2018 17:45:14 +0000 (19:45 +0200)]
Minor improvements in user manual

* doc/emacs/trouble.texi (Emergency Escape, Contributing): Clarify
text.  Suggested by Jonathan Kyle Mitchell <kyle@jonathanmitchell.org>
in emacs-manual-bugs@gnu.org

6 years agoImprove the "Mark" chapter of the user manual
Eli Zaretskii [Sun, 21 Jan 2018 17:36:57 +0000 (19:36 +0200)]
Improve the "Mark" chapter of the user manual

* doc/emacs/mark.texi (Setting Mark, Marking Objects): Improve and
clarify wording.  Suggested by John Cummings <john@rootabega.net>
in emacs-manual-bugs@gnu.org.

6 years agoImprove the "Buffers" chapter of the user manual
Eli Zaretskii [Sun, 21 Jan 2018 17:27:37 +0000 (19:27 +0200)]
Improve the "Buffers" chapter of the user manual

* doc/emacs/buffers.texi (Several Buffers): Correct description of
prefix arguments.  Clarify "bury".
(Buffer Menus): Clarify wording.  Reported by John Cummings
<john@rootabega.net> in emacs-manual-bugs@gnu.org.

6 years agoParse percent values in CSS alpha components
Simen Heggestøyl [Sat, 13 Jan 2018 08:41:47 +0000 (09:41 +0100)]
Parse percent values in CSS alpha components

* lisp/textmodes/css-mode.el (css--rgb-color): Support parsing percent
values in the alpha component.

* test/lisp/textmodes/css-mode-tests.el
(css-test-rgb-to-named-color-or-hex, css-test-rgb-parser): Update for
the above changes.

6 years ago* lisp/term.el (term-send-input): Fix text duplication in docstring
tino calancha [Sun, 21 Jan 2018 04:34:55 +0000 (13:34 +0900)]
* lisp/term.el (term-send-input): Fix text duplication in docstring

6 years agoFix tempfile creation when byte compiling
Paul Eggert [Sun, 21 Jan 2018 03:12:05 +0000 (19:12 -0800)]
Fix tempfile creation when byte compiling

This improves on the recent fix for master failing to build
on FreeBSD.  Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.

6 years agoExtend tramp-test02-file-name-dissect* tests
Michael Albinus [Sat, 20 Jan 2018 23:14:33 +0000 (00:14 +0100)]
Extend tramp-test02-file-name-dissect* tests

* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Test also
`tramp-default-method-alist', `tramp-default-user-alist' and
`tramp-default-host-alist'.

6 years agoImprove "Buffers" in the user manual
Eli Zaretskii [Sat, 20 Jan 2018 19:37:30 +0000 (21:37 +0200)]
Improve "Buffers" in the user manual

Suggested by John Cummings <john@rootabega.net> in
emacs-manual-bugs@gnu.org:
* doc/emacs/buffers.texi (Select Buffer): Add cross-references to
"Windows" and "Frames".
(Misc Buffer, Kill Buffer): Use BUFFER consistently in commands
that accept buffer names.
(Select Buffer): Improve description of "M-g M-g".  Improve
wording.
(Misc Buffer, Kill Buffer): Improve wording.
(Kill Buffer): Fix the response required by kill-some-buffers.
Mention customizable options that control what clean-buffer-list
does.
(Several Buffers): More detail about
'Buffer-menu-unmark-all-buffers'.

6 years ago* lisp/ielm.el: Bring up the debugger when requested
Jarosław Rzeszótko [Sat, 20 Jan 2018 17:51:06 +0000 (12:51 -0500)]
* lisp/ielm.el: Bring up the debugger when requested

Copyright-paperwork-exempt: yes

(ielm-eval-input): Don't catch errors during evaluation
of the expression if debug-on-error is set.

6 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 20 Jan 2018 16:23:30 +0000 (08:23 -0800)]
Merge from origin/emacs-26

cfc94fd (origin/emacs-26) Don't mention 'vc-stay-local' in the user m...
8ce430b Fix a typo in calendar.texi
bb748b3 Minor improvement in wording of the Emacs manual
b603aff Revert "Fix tempfile creation when byte compiling"
4fd446e Fix tempfile creation when byte compiling
7f48a11 Improve the Emacs manual as suggested in emacs-manual-bugs
728ded0 * lisp/emacs-lisp/bytecomp.el: Tweak last change
c6c05e2 Unbreak building Emacs on FreeBSD
a41ad3d Don't unnecessarily use non-ASCII characters in C sources
c28d4b6 Portability fixes in emacs-module-tests
1d50c18 Add tests for term.el

6 years ago; Merge from origin/emacs-26
Glenn Morris [Sat, 20 Jan 2018 16:23:30 +0000 (08:23 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

5472568 Handle split AnSiT messages for term.el (Bug#17231)

6 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 20 Jan 2018 16:23:30 +0000 (08:23 -0800)]
Merge from origin/emacs-26

297dc41 * configure.ac (emacs_config_features): Add threads.

Conflicts:
configure.ac

6 years agoUse file notification in autorevert also for recreated files
Michael Albinus [Sat, 20 Jan 2018 15:26:02 +0000 (16:26 +0100)]
Use file notification in autorevert also for recreated files

* lisp/autorevert.el (auto-revert-mode)
(global-auto-revert-mode, auto-revert-notify-add-watch)
(auto-revert-notify-handler, auto-revert-handler): Do not use
buffer local `auto-revert-use-notify' anymore.

* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file): Adapt test in
order to check, that file notification is reenabled when possible.

6 years agoDon't mention 'vc-stay-local' in the user manual
Eli Zaretskii [Sat, 20 Jan 2018 12:44:01 +0000 (14:44 +0200)]
Don't mention 'vc-stay-local' in the user manual

* doc/emacs/vc1-xtra.texi (CVS Options):
* doc/emacs/maintaining.texi (VC Directory Buffer): Remove
references to 'vc-stay-local', which no longer exists.
(Bug#30138)

6 years ago* doc/misc/tramp.texi: Highlight @cindex entries properly.
Michael Albinus [Sat, 20 Jan 2018 12:30:20 +0000 (13:30 +0100)]
* doc/misc/tramp.texi: Highlight @cindex entries properly.

6 years agoImprove and simplify 'map-y-or-n-p'
Basil L. Contovounesios [Sat, 20 Jan 2018 12:23:08 +0000 (14:23 +0200)]
Improve and simplify 'map-y-or-n-p'

* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Do not follow a
definite article with an action verb in C-h help text.  Use
'with-help-window' instead of 'with-output-to-temp-buffer'.
Simplify string concatenation.  (Bug#30064)

6 years agoUse map-y-or-n-p in bibtex.el
Basil L. Contovounesios [Sat, 20 Jan 2018 12:19:34 +0000 (14:19 +0200)]
Use map-y-or-n-p in bibtex.el

* lisp/textmodes/bibtex.el (bibtex-reformat): Use map-y-or-n-p.
(Bug#30065)

6 years agoReverse bibtex-reference-keys in 'bibtex-parse-keys'
Basil L. Contovounesios [Sat, 20 Jan 2018 12:11:55 +0000 (14:11 +0200)]
Reverse bibtex-reference-keys in 'bibtex-parse-keys'

* lisp/textmodes/bibtex.el (bibtex-parse-keys): Reverse
bibtex-reference-keys.  (Bug#30048)

6 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 20 Jan 2018 09:18:31 +0000 (11:18 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

6 years agoFix a typo in calendar.texi
Eli Zaretskii [Sat, 20 Jan 2018 08:56:15 +0000 (10:56 +0200)]
Fix a typo in calendar.texi

* doc/emacs/calendar.texi (Writing Calendar Files): Capitalize
"Filofax".  Reported by Will Korteland <emacs-devel@korte.land>
in emacs-manual-bugs@gnu.org.

6 years agoMinor improvement in wording of the Emacs manual
Eli Zaretskii [Sat, 20 Jan 2018 08:52:06 +0000 (10:52 +0200)]
Minor improvement in wording of the Emacs manual

* doc/emacs/killing.texi (CUA Bindings): Improve wording.
Suggested by Will Korteland <emacs-devel@korte.land> in
emacs-manual-bugs@gnu.org.

6 years agoRevert "Fix tempfile creation when byte compiling"
Eli Zaretskii [Sat, 20 Jan 2018 07:48:22 +0000 (09:48 +0200)]
Revert "Fix tempfile creation when byte compiling"

This reverts commit 4fd446e9f65e5531b18d4a0c5e08a6eeabc292d8:
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.

6 years agoFix tempfile creation when byte compiling
Paul Eggert [Fri, 19 Jan 2018 22:37:31 +0000 (14:37 -0800)]
Fix tempfile creation when byte compiling

This improves on the recent fix for master failing to build
on FreeBSD.  Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.

6 years agoImprove the Emacs manual as suggested in emacs-manual-bugs
Eli Zaretskii [Fri, 19 Jan 2018 19:18:03 +0000 (21:18 +0200)]
Improve the Emacs manual as suggested in emacs-manual-bugs

* doc/emacs/killing.texi (Deletion and Killing): Add
cross-reference to "Kill Ring".
* doc/emacs/help.texi (Help Mode, Package Keywords): Improve
wording.  Suggested by Will Korteland <emacs-devel@korte.land> in
emacs-manual-bugs@gnu.org.

6 years agoAdd new entry in tramp-smb-errors
Michael Albinus [Fri, 19 Jan 2018 16:55:10 +0000 (17:55 +0100)]
Add new entry in tramp-smb-errors

* lisp/net/tramp-smb.el (tramp-smb-errors):
Add "NT_STATUS_RESOURCE_NAME_NOT_FOUND".

6 years ago* lisp/emacs-lisp/bytecomp.el: Tweak last change
Stefan Monnier [Fri, 19 Jan 2018 16:29:13 +0000 (11:29 -0500)]
* lisp/emacs-lisp/bytecomp.el: Tweak last change

(byte-compile-file): Move comment closer to the code it describes.

6 years agoUnbreak building Emacs on FreeBSD
Eli Zaretskii [Fri, 19 Jan 2018 15:31:54 +0000 (17:31 +0200)]
Unbreak building Emacs on FreeBSD

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't create
the temporary file under temporary-file-directory if the file
being compiled is specified by an absolute file name.  This avoids
problems with ACL copying from temporary-file-directory on
FreeBSD.  For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00513.html.

6 years agoFix posn-at-point in Flycheck buffers
Eli Zaretskii [Fri, 19 Jan 2018 14:18:41 +0000 (16:18 +0200)]
Fix posn-at-point in Flycheck buffers

* src/dispnew.c (buffer_posn_from_coords): Improve commentary.

* src/xdisp.c (move_it_in_display_line_to): Don't exit the loop
under truncate-lines if the glyph at TO_CHARPOS was not yet
produced.  This avoids bailing out too early when we are at
TO_CHARPOS, but didn't yet produce glyphs for that buffer
position, because the last call to PRODUCE_GLYPHS at this position
was for an object other than the buffer.  For further details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00537.html.

6 years agoetags(1): fix formatting problem
Reuben Thomas [Fri, 19 Jan 2018 14:18:09 +0000 (14:18 +0000)]
etags(1): fix formatting problem

* doc/man/etags.1: Remove spurious space.

6 years ago* test/lisp/filenotify-tests.el (file-notify-test03-events): Cleanup subtests.
Michael Albinus [Fri, 19 Jan 2018 13:59:48 +0000 (14:59 +0100)]
* test/lisp/filenotify-tests.el (file-notify-test03-events): Cleanup subtests.

6 years agoDon't unnecessarily use non-ASCII characters in C sources
Eli Zaretskii [Fri, 19 Jan 2018 09:54:44 +0000 (11:54 +0200)]
Don't unnecessarily use non-ASCII characters in C sources

* src/xwidget.c (webkit_javascript_finished_cb):
* src/gtkutil.c (xg_check_special_colors):
* src/emacs-module.c (module_make_string):
* src/alloc.c (SET_STACK_TOP_ADDRESS): Don't use non-ASCII quote
characters.

6 years agoPortability fixes in emacs-module-tests
Eli Zaretskii [Fri, 19 Jan 2018 09:20:12 +0000 (11:20 +0200)]
Portability fixes in emacs-module-tests

* test/Makefile.in (abs_top_srcdir): Add variable, needed by
CPPFLAGS.
* test/data/emacs-module/mod-test.c: Include <limits.h>.
(pT, pZ, T_TYPE, Z_TYPE): Compatibility macros, for systems that
don't support %td and %zu format specs.
(emacs_module_init): Use compatibility macros to make the error
messages print meaningful values (and avoid compiler warnings).

6 years ago* lisp/calendar/calendar.el: Use lexical-binding
Stefan Monnier [Fri, 19 Jan 2018 04:01:35 +0000 (23:01 -0500)]
* lisp/calendar/calendar.el: Use lexical-binding

(calendar-generate-window): Remove unused variable `day'.
(calendar-generate-month): Use calendar-dlet* to provide the dynbind
vars promised by the respective docstrings.
(calendar-update-mode-line): Use calendar-dlet* to provide `date' to
calendar-mode-line-format.  Don't call `eval' here since it's called in
calendar-string-spread anyway!
(calendar-date-string): Use calendar-dlet* to provide the dynbind
vars promised by the docstring of calendar-date-display-form.

* lisp/calendar/diary-lib.el (diary--date-string): Rename from date-string.

6 years agoSwitch term.el to lexical binding, and clean up code a bit
Noam Postavsky [Thu, 18 Jan 2018 13:22:47 +0000 (08:22 -0500)]
Switch term.el to lexical binding, and clean up code a bit

* lisp/term.el (term-terminal-state): Remove.
(term-do-line-wrapping): New variable, equivalent to state 1.
(term-terminal-previous-parameter, term-terminal-parameter)
(term-terminal-more-parameters)
(term-terminal-previous-parameter-2)
(term-terminal-previous-parameter-3)
(term-terminal-previous-parameter-4): Remove.
(term-move-to-column): New function, for absolute column movement.
(term-control-seq-regexp, term-control-seq-prefix-regexp): New
constants.
(term-emulate-terminal, term-pager-discard): Use them via string-match
instead of implementing a state machine in elisp.  Handle all
unprocessed input via term-terminal-undecoded-bytes (this solves
Bug#17231).
(term-handle-ansi-escape): Take a list of escape sequence parameters
as an argument, rather than via dynamic variables.
(term-erase-in-display): Consult the argument, not the dynamically
bound term-terminal-parameter (which happened to be the same as the
argument up until now).

6 years agoAdd tests for term.el
Noam Postavsky [Sun, 7 Jan 2018 00:28:09 +0000 (19:28 -0500)]
Add tests for term.el

* lisp/term.el (term-mode): Add `name' attribute to
window-adjust-process-window-size-function value, so that it can be
removed easily by tests.
* test/lisp/term-tests.el: New tests.

6 years agoHandle split AnSiT messages for term.el (Bug#17231)
Callum Cameron [Wed, 9 Apr 2014 10:12:25 +0000 (11:12 +0100)]
Handle split AnSiT messages for term.el (Bug#17231)

Check to see if there is an incomplete command at the end of
term-emulate-terminal's input string, and, if so, save it so the whole
command can be processed when the next string arrives.
* lisp/term.el (term-partial-ansi-terminal-message): New variable.
(term-mode): Make it buffer local.
(term-handle-ansi-terminal-messages): Prepend it to the received
message, and set it if a partial message was received.

Copyright-paperwork-exempt: yes

Do not merge to master, it will be solved differently there, see
"Switch term.el to lexical binding, and clean up code a bit".

6 years ago* admin/automerge: New script.
Glenn Morris [Fri, 19 Jan 2018 01:22:53 +0000 (20:22 -0500)]
* admin/automerge: New script.

6 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 18 Jan 2018 22:02:32 +0000 (14:02 -0800)]
Merge from origin/emacs-26

76040d1 (origin/emacs-26) Handle case-insensitive filenames for load-...
0c9b050 ; * test/file-organization.org: Fix typo.

6 years ago; Merge from origin/emacs-26
Glenn Morris [Thu, 18 Jan 2018 22:02:32 +0000 (14:02 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

36edb6c CC Mode: stop distinguishing brace blocks from defun blocks b...

6 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 18 Jan 2018 22:02:32 +0000 (14:02 -0800)]
Merge from origin/emacs-26

779b2ac Use recommended long options syntax in man page
c433e87 An overdue update of GNUstep emacs.tiff
188a9d9 Add some test skip conditions

6 years ago; Merge from origin/emacs-26
Glenn Morris [Thu, 18 Jan 2018 22:02:32 +0000 (14:02 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

0643952 Add documentation to ecomplete.el

6 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 18 Jan 2018 22:02:32 +0000 (14:02 -0800)]
Merge from origin/emacs-26

7efb366 ; * etc/AUTHORS: Regenerate.
3dc7f68 * admin/authors.el (authors-aliases): Tighten more entries.
7428062 ; * lisp/vc/vc.el: Comment fixes.
f4e6b6e Small startup fix for current-load-list
5b776bf ; * etc/AUTHORS: Regenerate.
d80295c authors-aliases is based on regexps, not literals

6 years ago* lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flush the 'vc-functions' cache.
Stefan Monnier [Fri, 19 Jan 2018 01:11:34 +0000 (20:11 -0500)]
* lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flush the 'vc-functions' cache.

6 years ago* configure.ac (emacs_config_features): Add threads.
Glenn Morris [Thu, 18 Jan 2018 23:09:15 +0000 (18:09 -0500)]
* configure.ac (emacs_config_features): Add threads.

6 years agoImprove "*Process List*" and "*Local Variables*". (Bug#30016)
Juri Linkov [Thu, 18 Jan 2018 21:43:38 +0000 (23:43 +0200)]
Improve "*Process List*" and "*Local Variables*".  (Bug#30016)

* lisp/files.el (save-buffers-kill-emacs): Display "*Process List*"
buffer at bottom.
(hack-local-variables-confirm): Display "*Local Variables*" buffer
at bottom.

* lisp/simple.el (process-menu-mode): Increase buffer column width
from 15 to 25.

6 years agoHandle case-insensitive filenames for load-path shadows (Bug#5845)
Noam Postavsky [Tue, 16 Jan 2018 21:26:56 +0000 (16:26 -0500)]
Handle case-insensitive filenames for load-path shadows (Bug#5845)

* lisp/emacs-lisp/shadow.el (load-path-shadows-find): Check for
shadowing with case-insensitive matching for files of case-insensitive
directories (as determined by `file-name-case-insensitive-p').
* test/lisp/emacs-lisp/shadow-tests.el: New test.
* test/lisp/emacs-lisp/shadow-resources/p1/foo.el:
* test/lisp/emacs-lisp/shadow-resources/p2/FOO.el: New test files.

6 years ago; * test/file-organization.org: Fix typo.
Noam Postavsky [Thu, 18 Jan 2018 20:54:21 +0000 (15:54 -0500)]
; * test/file-organization.org: Fix typo.

6 years agoFix module support if threads are disabled (Bug#30106)
Philipp Stephani [Wed, 17 Jan 2018 22:28:46 +0000 (23:28 +0100)]
Fix module support if threads are disabled (Bug#30106)

* src/systhread.c (sys_thread_equal): New function.
* src/thread.c (in_current_thread): Move from emacs-module.c; use
sys_thread_equal.

6 years agoCC Mode: stop distinguishing brace blocks from defun blocks by content.
Alan Mackenzie [Thu, 18 Jan 2018 17:54:02 +0000 (17:54 +0000)]
CC Mode: stop distinguishing brace blocks from defun blocks by content.

Don't merge to master; this is a quick fix for the emacs-26 branch.  This is
essentially a reversion of the patch from 2017-11-10 which attempted to handle
C99's compound literals.

The bug here was triggered when a defun block contained a declaration ending
in a comma, yet without a semicolon.

* lisp/progmodes/cc-engine.el (c-guess-basic-syntax): At the CASE 9 test,
remove from the `or' form the test of a block's contents.

6 years ago* doc/misc/message.texi (Mail Aliases): Mention also down and up keys.
Michael Albinus [Thu, 18 Jan 2018 14:19:47 +0000 (15:19 +0100)]
* doc/misc/message.texi (Mail Aliases): Mention also down and up keys.

6 years agoBind up/down in ecomplete
Lars Ingebrigtsen [Thu, 18 Jan 2018 11:16:23 +0000 (12:16 +0100)]
Bind up/down in ecomplete

* lisp/ecomplete.el (ecomplete-display-matches): Allow using
up/down in addition to M-p/M-n.

6 years agoFix some tooltip related problems
Martin Rudalics [Thu, 18 Jan 2018 09:36:47 +0000 (10:36 +0100)]
Fix some tooltip related problems

Replace 'tooltip' frame parameter with a 'tooltip' member in
the frame structure.  For GTK+ builds use 'tip_last_frame' to
find the frame for which the currently visible tooltip was
made.  For modeline help-echoing have tooltips show applicable
actions only.

* lisp/bindings.el (mode-line-default-help-echo): New function
as default value of homonymous option.
* src/dispextern.h (tip_frame, tip_window): Remove
declarations.
* src/frame.c (make_frame): Initialize new frame structure
member 'tooltip'.
(Fframe_list, other_frames): Rewrite with new macro
FRAME_TOOLTIP_P.
* src/frame.h (struct frame): New member 'tooltip'.
(FRAME_TOOLTIP_P): New macro.
* src/gtkutil.c (xg_prepare_tooltip, xg_hide_tooltip): Rewrite
using boolean return values.
* src/nsfns.m (tip_frame): Remove declaration.
* src/w32fns.c (w32_display_monitor_attributes_list)
(w32_display_monitor_attributes_list_fallback): Rewrite with
new macro FRAME_TOOLTIP_P.
(tip_last_string, tip_last_frame, tip_last_parms): New Lisp
scalars replacing Lisp vector last_show_tip_args.
(x_create_tip_frame): Set new frame's 'tooltip' structure
member to true.
(x_hide_tip): Additionally test tip_frame for liveness.
(Fx_show_tip): Handle last_show_tip_args to tip_last_frame,
tip_last_string and tip_last_parms conversion.
(syms_of_w32fns): staticpro tip_last_frame, tip_last_string
and tip_last_parms instead of last_show_tip_args.
* src/w32term.c (w32_read_socket, x_new_font): Rewrite with
new macro FRAME_TOOLTIP_P.
* src/w32term.h (tip_window): Add external declaration.
* src/xdisp.c (x_consider_frame_title, prepare_menu_bars)
(should_produce_line_number): Rewrite with new macro
FRAME_TOOLTIP_P.
(note_mode_line_or_margin_highlight): If
`mode-line-default-help-echo' specifies a function, call it to
produce help echo string.
* src/xfns.c (x_make_monitor_attribute_list)
(Fx_display_monitor_attributes_list): Rewrite with
new macro FRAME_TOOLTIP_P.
(tip_last_string, tip_last_frame, tip_last_parms): New Lisp
scalars replacing Lisp vector last_show_tip_args.
(x_create_tip_frame): Set new frame's 'tooltip' structure
member to true.
(x_hide_tip): Rewrite with additional tests of frames for
liveness and taking into account that for GTK+ tips the
reference frame is now stored in tip_last_frame instead of
tip_frame.
(Fx_show_tip): Handle last_show_tip_args to tip_last_frame,
tip_last_string and tip_last_parms conversion.  For GTK+ store
FRAME argument in tip_last-frame.
(syms_of_xfns): staticpro tip_last_frame, tip_last_string
and tip_last_parms instead of last_show_tip_args.
* src/xterm.c (x_update_begin, handle_one_xevent, x_new_font)
(x_set_window_size): Rewrite with new macro FRAME_TOOLTIP_P.
* src/xterm.h (tip_window): Add external declaration.
* etc/NEWS: Mention new modeline tooltips behavior.

6 years agoUse recommended long options syntax in man page
Philipp Stephani [Sun, 7 Jan 2018 23:11:16 +0000 (00:11 +0100)]
Use recommended long options syntax in man page

* doc/man/emacs.1.in: Specify equals sign for long options, as
recommended in the manual.

6 years agoAn overdue update of GNUstep emacs.tiff
Glenn Morris [Wed, 17 Jan 2018 20:13:40 +0000 (15:13 -0500)]
An overdue update of GNUstep emacs.tiff

* nextstep/GNUstep/Emacs.base/Resources/emacs.tiff:
Update to the Emacs 25 icon.
Converted from hicolor/scalable/apps/emacs.svg using Gimp.
* nextstep/GNUstep/Emacs.base/Resources/README: Update.

6 years agoAdd some test skip conditions
Glenn Morris [Wed, 17 Jan 2018 18:41:07 +0000 (13:41 -0500)]
Add some test skip conditions

* test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-bug9726)
(vc-bzr-test-bug9781): Skip if bzr is faulty.
* test/src/thread-tests.el: Skip if not compiled with threads.

6 years agoAdd documentation to ecomplete.el
Lars Ingebrigtsen [Tue, 16 Jan 2018 13:53:11 +0000 (14:53 +0100)]
Add documentation to ecomplete.el

* lisp/ecomplete.el: Add doc strings and document the format.

6 years ago; * etc/AUTHORS: Regenerate.
Glenn Morris [Wed, 17 Jan 2018 02:34:23 +0000 (21:34 -0500)]
; * etc/AUTHORS: Regenerate.

6 years ago* admin/authors.el (authors-aliases): Tighten more entries.
Glenn Morris [Wed, 17 Jan 2018 02:32:13 +0000 (21:32 -0500)]
* admin/authors.el (authors-aliases): Tighten more entries.

6 years agoSmall cus-start fix for custom-delayed-init-variables
Glenn Morris [Wed, 17 Jan 2018 02:20:43 +0000 (21:20 -0500)]
Small cus-start fix for custom-delayed-init-variables

* lisp/cus-start.el (custom-delayed-init-variables):
Only modify it during startup.

6 years ago; * lisp/vc/vc.el: Comment fixes.
Glenn Morris [Wed, 17 Jan 2018 01:56:28 +0000 (20:56 -0500)]
; * lisp/vc/vc.el: Comment fixes.

6 years agoSmall startup fix for current-load-list
Glenn Morris [Wed, 17 Jan 2018 01:55:20 +0000 (20:55 -0500)]
Small startup fix for current-load-list

* lisp/startup.el (command-line):
Avoid current-load-list being non-nil after startup ends.

6 years ago; * etc/AUTHORS: Regenerate.
Glenn Morris [Wed, 17 Jan 2018 01:53:36 +0000 (20:53 -0500)]
; * etc/AUTHORS: Regenerate.

6 years agoauthors-aliases is based on regexps, not literals
Glenn Morris [Wed, 17 Jan 2018 01:52:55 +0000 (20:52 -0500)]
authors-aliases is based on regexps, not literals

* admin/authors.el (authors-aliases): Replace overly-broad entries.

6 years agoIntroduce a variable to control ecomplete sorting
Lars Ingebrigtsen [Tue, 16 Jan 2018 14:22:11 +0000 (15:22 +0100)]
Introduce a variable to control ecomplete sorting

* lisp/ecomplete.el (ecomplete-sort-predicate): New variable.
(ecomplete-get-matches): Use it.

6 years agoC++ Mode: Fontify correctly uniform initialisation with inner parentheses.
Alan Mackenzie [Tue, 16 Jan 2018 21:59:03 +0000 (21:59 +0000)]
C++ Mode: Fontify correctly uniform initialisation with inner parentheses.

E.g.: someStruct x ( (nullptr != y) ? 3 : 4 )
Also fontify declarations of function pointers correctly.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): While testing for a
typeless declaration, additionally test the variable `got-prefix' to
recognize a function pointer in parentheses.  Allow c-fdoc-shift-type-backward
to be invoked when we have nested parens.

6 years agoAdd documentation to ecomplete.el
Lars Ingebrigtsen [Tue, 16 Jan 2018 13:53:11 +0000 (14:53 +0100)]
Add documentation to ecomplete.el

* lisp/ecomplete.el: Add doc strings and document the format.

6 years agoFix macOS breakage in make_lispy_event
Paul Eggert [Tue, 16 Jan 2018 01:18:42 +0000 (17:18 -0800)]
Fix macOS breakage in make_lispy_event

Problem reported by John Wiegley in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00499.html
* src/keyboard.c (kbd_buffer_get_event) [HAVE_NS]:
Act on used_mouse_menu here...
(make_lispy_event) [HAVE_NS]: ... instead of here.

6 years ago* lisp/ielm.el (ielm-eval-input): Use cl-print.
Stefan Monnier [Mon, 15 Jan 2018 22:04:05 +0000 (17:04 -0500)]
* lisp/ielm.el (ielm-eval-input): Use cl-print.

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 15 Jan 2018 21:53:40 +0000 (13:53 -0800)]
Merge from origin/emacs-26

98e5fb9bf3 (origin/emacs-26) Remove incorrect documentation in comint.el
8ba5b85161 An overdue update of src/emacs-icon.h
155b211133 Minor copyedit in ELisp manual

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 15 Jan 2018 21:53:40 +0000 (13:53 -0800)]
; Merge from origin/emacs-26

The following commits were skipped:

7a81586bd7 Fix Bug#29149 in dired-aux.el
9b2c3c190a Fix Bug#29149 in shell.el

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 15 Jan 2018 21:53:40 +0000 (13:53 -0800)]
Merge from origin/emacs-26

c9c1add6a4 * doc/lispref/variables.texi (File Local Variables): Fix l...
752fba992b (tag: emacs-26.0.91) ; * Update ldefs-boot.el
4f46a5098d * ChangeLog.3: Update
8f705ba44d Update etc/AUTHORS
6c63204b8c Fix an entry in authors-aliases
5dd0e5c54d Mention trace.el facilities in the ELisp manual
97b0e41c5d Improve documentation of safe values of variables
a502ee9dc4 ; * doc/emacs/misc.texi (Amusements): Really add "games" t...
106bf8adc3 Improve the Emacs manual's "Misc" node
47aa85c7ec In nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019)
e9e32d3475 ; * Update ldefs-boot.el

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 15 Jan 2018 21:53:40 +0000 (13:53 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

64b9d0df9e Bump Emacs version to 26.0.91

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 15 Jan 2018 21:53:40 +0000 (13:53 -0800)]
Merge from origin/emacs-26

2c0cfa6455 * ChangeLog.3: Update
4387bb44ae Update authors
bce51bd6f7 * lisp/gnus/message.el (message-do-auto-fill): Prevent do-...
bd2a2a1e84 Improve documentation of etags
7ba75b9637 Teach etags new interpreters for some languages
1f7f03742d * lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-stri...
dbb4aac212 * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#2...
80463a43da Improve documentation of fill-separate-heterogeneous-words...
4bd2416d55 Fix documentation of some x-* functions
9c2b11484f Inherit query-on-exit flag to stderr process (Bug#30031)
3efb1e7def Fix Bug#30057
a9b884c60f Tag some unstable tests, and skip by default (bug#24503)

# Conflicts:
# test/lisp/emacs-lisp/eieio-tests/eieio-tests.el

6 years ago* admin/authors.el (authors-aliases): Additions.
Nicolas Petton [Wed, 11 Oct 2017 13:11:14 +0000 (15:11 +0200)]
* admin/authors.el (authors-aliases): Additions.

6 years agoUpdate authors.el
Nicolas Petton [Wed, 11 Oct 2017 13:12:09 +0000 (15:12 +0200)]
Update authors.el

* admin/authors.el (authors-valid-file-names)
(authors-renamed-files-alist): Additions.

6 years agoSmall improvement for noninteractive gitmerge
Glenn Morris [Mon, 15 Jan 2018 20:43:16 +0000 (12:43 -0800)]
Small improvement for noninteractive gitmerge

* admin/gitmerge.el (gitmerge-resolve-unmerged):
In batch mode, report conflicted files.

6 years agoSmall gitmerge-skip-regexp fix
Glenn Morris [Mon, 15 Jan 2018 20:28:50 +0000 (12:28 -0800)]
Small gitmerge-skip-regexp fix

* admin/gitmerge.el (gitmerge-skip-regexp): Update for new format
of "bump version" message that seems to have appeared.

6 years agoRemove incorrect documentation in comint.el
Charles A. Roelli [Mon, 15 Jan 2018 20:14:05 +0000 (21:14 +0100)]
Remove incorrect documentation in comint.el

* lisp/comint.el (comint-interrupt-subjob, comint-kill-subjob)
(comint-quit-subjob, comint-stop-subjob): Remove incorrect
documentation.  (Bug#30079)

6 years ago* src/print.c (syms_of_print) <print_quoted>: Set default to true
Stefan Monnier [Mon, 15 Jan 2018 18:42:51 +0000 (13:42 -0500)]
* src/print.c (syms_of_print) <print_quoted>: Set default to true

6 years ago* lisp/mail/smtpmail.el (smtpmail-send-data-1): No string-as-multibyte
Stefan Monnier [Mon, 15 Jan 2018 18:15:12 +0000 (13:15 -0500)]
* lisp/mail/smtpmail.el (smtpmail-send-data-1): No string-as-multibyte

This is not needed any more since unibyte strings will be sent as-is
anyway by process-send-string.
(smtpmail-via-smtp): Avoid set-buffer-process-coding-system.

6 years ago(set-buffer-process-coding-system): Mark as interactive-only.
Stefan Monnier [Mon, 15 Jan 2018 18:14:37 +0000 (13:14 -0500)]
(set-buffer-process-coding-system): Mark as interactive-only.

* lisp/international/mule.el (set-buffer-process-coding-system):
Mark as interactive-only.

6 years ago; * src/coding.h (surrogates_to_codepoint): Add prototype.
Eli Zaretskii [Mon, 15 Jan 2018 12:15:53 +0000 (14:15 +0200)]
; * src/coding.h (surrogates_to_codepoint): Add prototype.