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

6 years agoImprove the Emacs manual's "Misc" node
Eli Zaretskii [Sat, 13 Jan 2018 09:45:04 +0000 (11:45 +0200)]
Improve the Emacs manual's "Misc" node

* doc/emacs/misc.texi (Gnus): A more descriptive section name.
(Invoking emacsclient): Mention how to avoid errors when there's
no Emacs server.
(EWW, Embedded WebKit Widgets): Now subsections under
"Hyperlinking and Web Navigation Features".
(Amusements): Add "games" to the section name.  Suggested by Alex
Branham <alex.branham@gmail.com> in emacs-manual-bugs@gnu.org.

* doc/emacs/emacs.texi (Top): Adjust the top-level menus to the
above changes.

* doc/lispref/os.texi (Security Considerations): Fix typos.

6 years ago; * etc/NEWS: Fix entry about 'electric-quote-replace-double'.
Eli Zaretskii [Sat, 13 Jan 2018 08:58:36 +0000 (10:58 +0200)]
; * etc/NEWS: Fix entry about 'electric-quote-replace-double'.

6 years agoIn nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019)
Martin Rudalics [Sat, 13 Jan 2018 07:59:31 +0000 (08:59 +0100)]
In nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019)

* src/nsterm.m (x_set_parent_frame): Call FRAME_NS_P instead
of FRAME_X_P (Bug#30019).

6 years ago* src/keyboard.c: Consolidate code into make_lispy_event
Stefan Monnier [Sat, 13 Jan 2018 04:37:06 +0000 (23:37 -0500)]
* src/keyboard.c: Consolidate code into make_lispy_event

(clear_event): Change arg type.  Adjust callers.
(kbd_buffer_get_event): Move most special event handling to
make_lispy_event.
(make_lispy_event): Add missing cases, taken from kbd_buffer_get_event.
<SAVE_SESSION_EVENT>: Change return value to match what used to be built
in kbd_buffer_get_event.

6 years ago* src/keyboard.c (kbd_buffer_get_event): Use 'switch' ...
Stefan Monnier [Fri, 12 Jan 2018 03:20:05 +0000 (22:20 -0500)]
* src/keyboard.c (kbd_buffer_get_event): Use 'switch' ...

...rather than a sequence of else-if.

6 years ago; * Update ldefs-boot.el
Nicolas Petton [Fri, 12 Jan 2018 21:53:44 +0000 (22:53 +0100)]
; * Update ldefs-boot.el

6 years agoBump Emacs version to 26.0.91
Nicolas Petton [Fri, 12 Jan 2018 21:01:55 +0000 (22:01 +0100)]
Bump Emacs version to 26.0.91

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version.

6 years ago* ChangeLog.3: Update
Nicolas Petton [Fri, 12 Jan 2018 21:01:44 +0000 (22:01 +0100)]
* ChangeLog.3: Update

6 years agoUpdate authors
Nicolas Petton [Fri, 12 Jan 2018 20:58:43 +0000 (21:58 +0100)]
Update authors

* admin/authors.el (authors-aliases, authors-valid-file-names): Additions.
* etc/AUTHORS: Update AUTHORS file.

6 years agoMake Fzlib_decompress_region always call the change hooks in a balanced way.
Alan Mackenzie [Fri, 12 Jan 2018 16:31:35 +0000 (16:31 +0000)]
Make Fzlib_decompress_region always call the change hooks in a balanced way.

This means there will be exactly one call of each of before- and
after-change-functions, regardless of whether or not the decompression
succeeds, and these calls will refer to corresponding buffer regions.

src/decompress.c (struct decompress_unwind_data): add a new field, orig.
(unwind_decompress): Use del_range_2 and update_compositions in place of
del_range, to avoid unwanted change hook calls.  Call signal_after_change for
the failed case.
(Fzlib_decompress_region): Call modify_txt for a before-change-functions.  Set
the new field orig of unwind_data to the region's start.  Use del_range_2 and
update_compositions in place of del_range to avoid unwanted change hook
calls.  Call signal_after_change for the successful case.

6 years ago* lisp/gnus/message.el (message-do-auto-fill): Prevent do-auto-fill from
Katsumi Yamaoka [Fri, 12 Jan 2018 03:54:07 +0000 (03:54 +0000)]
* lisp/gnus/message.el (message-do-auto-fill): Prevent do-auto-fill from
adding extra citation mark (bug#29767, but it is a different bug).

6 years ago* lisp/frame.el (toggle-frame-maximized/fullscreen): Add frame arg.
Juri Linkov [Thu, 11 Jan 2018 22:14:35 +0000 (00:14 +0200)]
* lisp/frame.el (toggle-frame-maximized/fullscreen): Add frame arg.

(Bug#29986)

6 years ago* lisp/windmove.el (windmove-default-keybindings): Allow list of modifiers.
Juri Linkov [Thu, 11 Jan 2018 22:10:39 +0000 (00:10 +0200)]
* lisp/windmove.el (windmove-default-keybindings): Allow list of modifiers.

(Bug#29985)

6 years agoImprove documentation of etags
Eli Zaretskii [Thu, 11 Jan 2018 17:44:29 +0000 (19:44 +0200)]
Improve documentation of etags

* doc/emacs/maintaining.texi (Tag Syntax, Create Tags Table):
Improve documentation of etags options and of source language
detection.

6 years agoUnbreak the Cygwin-w32 build
Ken Brown [Thu, 11 Jan 2018 16:40:37 +0000 (11:40 -0500)]
Unbreak the Cygwin-w32 build

* src/keyboard.c (input_polling_used) [CYGWIN]: Restore.  This was
removed on Cygwin in the commit "On non-MS-Windows, omit unnecessary
polling functions".  But it is used in w32fns.c:x_make_frame_visible
in the Cygwin-w32 build.

6 years ago* lisp/mail/smtpmail.el: Use lexical-binding and cl-generic
Stefan Monnier [Thu, 11 Jan 2018 16:56:43 +0000 (11:56 -0500)]
* lisp/mail/smtpmail.el: Use lexical-binding and cl-generic

(smtpmail-auth-supported): Mark it as non-constant.
(smtpmail-try-auth-methods): Remove unused var 'ret'.
Test non-nullness of mech user and password before calling
smtpmail-try-auth-method.
(smtpmail-try-auth-method): Make it into a generic function.
(smtpmail-via-smtp): Remove unused var 'response-code'.

6 years agoTeach etags new interpreters for some languages
Eli Zaretskii [Thu, 11 Jan 2018 16:35:12 +0000 (18:35 +0200)]
Teach etags new interpreters for some languages

* lib-src/etags.c (Erlang_interpreters, Lua_interpreters)
(Prolog_interpreters, Python_interpreters, Ruby_interpreters): New
static variables.
(lang_names): Use them to set interpreters for Erlang, Lua,
Prolog, Python, and Ruby.
(find_entries): Support "/usr/bin/env FOO" form of specifying an
interpreter.

* test/manual/etags/perl-src/htlmify-cystic: Modify the has-bang
line to test the "env FOO" interpreter spec.  (Bug#30075)
* test/manual/etags/ETAGS.good_1:
* test/manual/etags/ETAGS.good_2:
* test/manual/etags/ETAGS.good_3:
* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6: Adapt to latest changes in test
files.

6 years ago* lisp/org/org-element.el: Add comment about use of internal functions
Stefan Monnier [Thu, 11 Jan 2018 16:33:03 +0000 (11:33 -0500)]
* lisp/org/org-element.el: Add comment about use of internal functions

6 years ago* lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-string' prop.
Stefan Monnier [Thu, 11 Jan 2018 16:24:38 +0000 (11:24 -0500)]
* lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-string' prop.

6 years ago* lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767
Stefan Monnier [Thu, 11 Jan 2018 15:11:39 +0000 (10:11 -0500)]
* lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#29767

6 years agoRemove some more face aliases obsolete since 22.1
Glenn Morris [Wed, 10 Jan 2018 20:47:33 +0000 (15:47 -0500)]
Remove some more face aliases obsolete since 22.1

* lisp/generic-x.el (show-tabs-tab-face, show-tabs-space-face):
* lisp/eshell/em-prompt.el (eshell-prompt-face):
* lisp/vc/smerge-mode.el (smerge-base-face, smerge-markers-face):
Remove face "-face" aliases, obsolete since 22.1.

6 years agoRemove message.el face aliases obsolete since 22.1
Glenn Morris [Wed, 10 Jan 2018 20:45:55 +0000 (15:45 -0500)]
Remove message.el face aliases obsolete since 22.1

* lisp/gnus/message.el: Remove face "-face" aliases,
obsolete since 22.1.

6 years agoRemove Gnus face aliases obsolete since 22.1
Glenn Morris [Wed, 10 Jan 2018 20:39:06 +0000 (15:39 -0500)]
Remove Gnus face aliases obsolete since 22.1

* lisp/gnus/gnus-art.el, lisp/gnus/gnus-cite.el:
* lisp/gnus/gnus-srvr.el, lisp/gnus/gnus.el:
* lisp/gnus/spam.el: Remove face "-face" aliases, obsolete since 22.1.

6 years agoImprove documentation of fill-separate-heterogeneous-words-with-space
Charles A. Roelli [Wed, 10 Jan 2018 20:30:43 +0000 (21:30 +0100)]
Improve documentation of fill-separate-heterogeneous-words-with-space

* lisp/textmodes/fill.el
(fill-separate-heterogeneous-words-with-space): Fix grammar.

6 years agoFix documentation of some x-* functions
Eli Zaretskii [Wed, 10 Jan 2018 19:24:58 +0000 (21:24 +0200)]
Fix documentation of some x-* functions

* lisp/term/pc-win.el (x-display-pixel-width)
(x-display-pixel-height, x-display-planes)
(x-display-color-cells, x-server-max-request-size)
(x-server-vendor, x-server-version, x-display-screens)
(x-display-mm-height, x-display-mm-width)
(x-display-backing-store, x-display-visual-class): Provide doc
strings, so that 'makedoc' produces non-empty documentation in
etc/DOC for these functions.  (Bug#30068)

6 years ago; lisp/progmodes/cc-cmds.el: Comment.
Glenn Morris [Wed, 10 Jan 2018 18:48:20 +0000 (13:48 -0500)]
; lisp/progmodes/cc-cmds.el: Comment.

6 years agoRemove obsolete variable sun-raw-prefix-hooks
Glenn Morris [Wed, 10 Jan 2018 18:47:42 +0000 (13:47 -0500)]
Remove obsolete variable sun-raw-prefix-hooks

* lisp/term/sun.el (sun-raw-prefix-hooks): Remove, obsolete since 21.1.
(terminal-init-sun): No longer consult sun-raw-prefix-hooks.