]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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 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 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 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 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.

6 years agoUse fcntl.h in kqueue.c
Jeremie Courreges-Anglas [Mon, 15 Jan 2018 08:12:44 +0000 (09:12 +0100)]
Use fcntl.h in kqueue.c

* src/kqueue.c: Use fcntl.h (specified by POSIX) instead of
non-standard sys/file.h to access O_* open(2) flags.

6 years agoAn overdue update of src/emacs-icon.h
Glenn Morris [Mon, 15 Jan 2018 01:27:19 +0000 (17:27 -0800)]
An overdue update of src/emacs-icon.h

* src/emacs-icon.h: Update to the Emacs 25 icon.  (Bug#30047)
Converted from hicolor/scalable/apps/emacs.svg using Gimp.

6 years agoMinor copyedit in ELisp manual
Eli Zaretskii [Sun, 14 Jan 2018 16:48:05 +0000 (18:48 +0200)]
Minor copyedit in ELisp manual

* doc/lispref/variables.texi (File Local Variables): Improve
wording of last change.

6 years agoFix Bug#29149 in dired-aux.el
Shuguang Sun [Sat, 13 Jan 2018 16:52:04 +0000 (17:52 +0100)]
Fix Bug#29149 in dired-aux.el

* lisp/dired-aux.el (dired-shell-stuff-it): Handle remote
commands on w32 properly.  (Bug#29149)

6 years agoFix Bug#29149 in shell.el
Michael Albinus [Sat, 13 Jan 2018 16:48:10 +0000 (17:48 +0100)]
Fix Bug#29149 in shell.el

* lisp/shell.el (shell): Change order of `file-local-name' and
`expand-file-name' calls.  Otherwise, the local file name
would be extended by a drive letter, even when it is a remote
file, seen from w32.  (Bug#29149)

6 years ago* doc/lispref/variables.texi (File Local Variables): Fix last change
Stefan Monnier [Sat, 13 Jan 2018 22:02:50 +0000 (17:02 -0500)]
* doc/lispref/variables.texi (File Local Variables): Fix last change

6 years ago; * Update ldefs-boot.el emacs-26.0.91
Nicolas Petton [Sat, 13 Jan 2018 21:07:12 +0000 (22:07 +0100)]
; * Update ldefs-boot.el

6 years ago* ChangeLog.3: Update
Nicolas Petton [Sat, 13 Jan 2018 20:49:52 +0000 (21:49 +0100)]
* ChangeLog.3: Update

6 years agoUpdate etc/AUTHORS
Nicolas Petton [Sat, 13 Jan 2018 20:49:13 +0000 (21:49 +0100)]
Update etc/AUTHORS

6 years agoFix an entry in authors-aliases
Nicolas Petton [Sat, 13 Jan 2018 20:45:31 +0000 (21:45 +0100)]
Fix an entry in authors-aliases

* admin/authors.el (authors-aliases): Replace regexp from "Max", which
is too broad, to an email address ("mu@magi.net.ru").

6 years agoAdd battery support to all Cygwin builds
Ken Brown [Fri, 12 Jan 2018 13:51:16 +0000 (08:51 -0500)]
Add battery support to all Cygwin builds

It already exists in the Cygwin-w32 build.
* src/w32fns.c (Fw32_battery_status): Move to...
* src/w32cygwinx: New file, to be used for functions common to
the MS Windows and Cygwin builds.
(syms_of_w32cygwinx): New function.
* src/lisp.h: Add prototype of syms_of_w32cygwinx.
* src/emacs.c (main) [HAVE_NTGUI or CYGWIN]: Call syms_of_w32cygwinx.
* src/Makefile.in (SOME_MACHINE_OBJECTS):
* configure.ac (W32_OBJ) [HAVE_W32]: Add w32cygwinx.o.
(W32_LIBS) [CYGWIN]: Set equal to "-lkernel32" in non-w32 build.
(W32_OBJ) [CYGWIN]: Set equal to "w32cygwinx.o" in non-w32 build.
* etc/NEWS: Document the new battery support.

6 years agoFix Bug#29149 in dired-aux.el
Shuguang Sun [Sat, 13 Jan 2018 16:52:04 +0000 (17:52 +0100)]
Fix Bug#29149 in dired-aux.el

* lisp/dired-aux.el (dired-shell-stuff-it): Handle remote
commands on w32 properly.  (Bug#29149)

6 years agoFix Bug#29149 in shell.el
Michael Albinus [Sat, 13 Jan 2018 16:48:10 +0000 (17:48 +0100)]
Fix Bug#29149 in shell.el

* lisp/shell.el (shell): Change order of `file-local-name' and
`expand-file-name' calls.  Otherwise, the local file name
would be extended by a drive letter, even when it is a remote
file, seen from w32.  (Bug#29149)

6 years agoMention trace.el facilities in the ELisp manual
Eli Zaretskii [Sat, 13 Jan 2018 11:53:47 +0000 (13:53 +0200)]
Mention trace.el facilities in the ELisp manual

* doc/lispref/debugging.texi (Debugging): Mention the trace.el
library.

6 years agoImprove Tramp robustness
Michael Albinus [Sat, 13 Jan 2018 11:07:28 +0000 (12:07 +0100)]
Improve Tramp robustness

* lisp/net/tramp.el (tramp-message, tramp-process-actions)
(tramp-read-passwd, tramp-interrupt-process):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-process-sentinel)
(tramp-sh-handle-file-notify-add-watch)
(tramp-barf-if-no-shell-prompt, tramp-maybe-open-connection)
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
(tramp-smb-maybe-open-connection): Use process property rather
than connection property "vector".

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Fix scoping error.  Let error traces use process buffer.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Move "inotifywait" up.  GVFS based monitoring is not stable.
Let error traces use process buffer.
(tramp-sh-gvfs-monitor-dir-process-filter): Check more error
messages.
(tramp-get-remote-gvfs-monitor-dir): Search also for "gio".

* lisp/net/tramp.el (tramp-get-debug-buffer):
Use `special-mode-map' as parent map in debug buffer.
(tramp-message): Ensure, that proper process buffer is dumped
in error case.

6 years agoImprove documentation of safe values of variables
Eli Zaretskii [Sat, 13 Jan 2018 10:48:07 +0000 (12:48 +0200)]
Improve documentation of safe values of variables

* doc/lispref/variables.texi (File Local Variables): Mention the
autoload cookie as a means of defining safe values for variables.
See http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00261.html
for the details.
* doc/lispref/compile.texi (Compiler Errors): Document
'byte-compile-error-on-warn'.

6 years ago; * doc/emacs/misc.texi (Amusements): Really add "games" to the section name.
Eli Zaretskii [Sat, 13 Jan 2018 09:47:17 +0000 (11:47 +0200)]
; * doc/emacs/misc.texi (Amusements): Really add "games" to the section name.