]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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 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 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 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 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 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 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* 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 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 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 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 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 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 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 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 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 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; * 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 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 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 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/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 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 agoInherit query-on-exit flag to stderr process (Bug#30031)
Philipp Stephani [Mon, 8 Jan 2018 20:51:44 +0000 (21:51 +0100)]
Inherit query-on-exit flag to stderr process (Bug#30031)

* src/process.c (Fmake_process): Have the pipe process honor the
parent's query-on-exit flag.

* test/src/process-tests.el (make-process/noquery-stderr): New test.

6 years agoFix Bug#30057
Michael Albinus [Wed, 10 Jan 2018 12:39:17 +0000 (13:39 +0100)]
Fix Bug#30057

* test/lisp/filenotify-tests.el (file-notify--test-tmpdir): New defvar.
(file-notify--test-cleanup, file-notify--test-make-temp-name)
(file-notify-test01-add-watch, file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test09-watched-file-in-watched-dir)
(file-notify-test10-sufficient-resources): Use it.  (Bug#30057)

6 years agoTag some unstable tests, and skip by default (bug#24503)
Glenn Morris [Wed, 10 Jan 2018 03:59:04 +0000 (19:59 -0800)]
Tag some unstable tests, and skip by default (bug#24503)

* Makefile.in (check-all): New phony target.
* test/Makefile.in (SELECTOR_DEFAULT, SELECTOR_EXPENSIVE):
Also skip unstable tests.
(SELECTOR_ALL): New variable.
(check-all): New phony target.
* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
(eieio-test-method-order-list-6):
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
(eieio-test-37-obsolete-name-in-constructor):
Mark as unstable rather than skipping on hydra.nixos.org.

6 years agoMerge from Gnulib
Paul Eggert [Tue, 9 Jan 2018 23:21:44 +0000 (15:21 -0800)]
Merge from Gnulib

This incorporates:
2018-01-05 maint: Add encoding marker for Emacs to non-ASCII sources
2018-01-04 update-copyright: Handle use of ©
2018-01-04 pthread_sigmask: Avoid compilation error on mingw
2018-01-02 stat-time: silence -Wunused-parameter regression
* build-aux/config.guess, build-aux/config.sub:
* build-aux/update-copyright, doc/misc/texinfo.tex, lib/gnulib.mk.in:
* lib/md5.c, lib/md5.h, lib/sha1.c, lib/sha1.h, lib/sha256.c:
* lib/sha256.h, lib/sha512.c, lib/sha512.h, lib/signal.in.h:
* lib/stat-time.h: Copy from Gnulib, or regenerate.

6 years ago* lisp/epg.el (epg-start-sign): Replace obsolete functions.
Glenn Morris [Tue, 9 Jan 2018 20:10:43 +0000 (15:10 -0500)]
* lisp/epg.el (epg-start-sign): Replace obsolete functions.

6 years agoSmall fix for erc-logging-enabled
Glenn Morris [Tue, 9 Jan 2018 19:48:29 +0000 (14:48 -0500)]
Small fix for erc-logging-enabled

* lisp/erc/erc-log.el (erc-logging-enabled):
Respect buffer-locality of erc-enable-logging variable.

6 years agoQuieten semantic normal usage
Glenn Morris [Tue, 9 Jan 2018 18:54:11 +0000 (13:54 -0500)]
Quieten semantic normal usage

* lisp/cedet/semantic/lex.el (semantic-flex): Mark obsolete at
compile time in the normal way, not at run-time.  (Bug#30035)

6 years agoAvoid irrelevant hyperlink in doc string of 'epa-pinentry-mode'
Eli Zaretskii [Mon, 8 Jan 2018 21:26:11 +0000 (23:26 +0200)]
Avoid irrelevant hyperlink in doc string of 'epa-pinentry-mode'

* lisp/epa.el (epa-pinentry-mode): Doc fix.  (Bug#30025)

6 years ago* doc/misc/tramp.texi (Remote processes): Mention gdb restrictions with I/O.
Michael Albinus [Mon, 8 Jan 2018 15:43:46 +0000 (16:43 +0100)]
* doc/misc/tramp.texi (Remote processes): Mention gdb restrictions with I/O.

6 years agoQuery background for gnome terminal version 3.22 (Bug#29716)
Noam Postavsky [Fri, 15 Dec 2017 02:42:56 +0000 (21:42 -0500)]
Query background for gnome terminal version 3.22 (Bug#29716)

* lisp/term/xterm.el (xterm--version-handler): Use
xterm--report-background-handler for terminals reporting minor version
4000 and above.

6 years agoMake pixel-wise scrolling less laggy
Tak Kunihiro [Sun, 7 Jan 2018 07:17:09 +0000 (09:17 +0200)]
Make pixel-wise scrolling less laggy

* lisp/pixel-scroll.el (pixel-dead-time, pixel-last-scroll-time):
New variables.
(pixel-scroll-up, pixel-scroll-down): Invoke 'scroll-up' or
'scroll-down' when called within 'pixel-dead-time'.  (Bug#29737)

6 years agoFix child frame placement issues (bug#29953)
Alan Third [Wed, 3 Jan 2018 13:45:03 +0000 (13:45 +0000)]
Fix child frame placement issues (bug#29953)

* src/nsterm.h (NS_PARENT_WINDOW_LEFT_POS):
(NS_PARENT_WINDOW_TOP_POS): Get the parent frame through the frame
struct as invisible child windows are detached from their parents in
NS.
* src/nsterm.m (x_set_offset): Offscreen frames have `nil' screen
value, so handle that gracefully.  Child frames with negative left and
top should be positioned relative to the bottom right of the parent
frame.

6 years ago; * doc/lispref/text.texi (Change Hooks): Fix last change.
Eli Zaretskii [Sat, 6 Jan 2018 19:43:04 +0000 (21:43 +0200)]
; * doc/lispref/text.texi (Change Hooks): Fix last change.

6 years agoDescribe the precise interaction of complex primitives with the change hooks
Alan Mackenzie [Sat, 6 Jan 2018 18:55:08 +0000 (18:55 +0000)]
Describe the precise interaction of complex primitives with the change hooks

* doc/lispref/text.texi (Change Hooks): Document that most buffer changing
primitives call before- and after-change-functions in balanced pairs, but that
some complex primitives call b-c-f once, and a-c-f zero, one, or several
times.

6 years agoFix valgrind report in call-interactively
Eli Zaretskii [Sat, 6 Jan 2018 16:23:52 +0000 (18:23 +0200)]
Fix valgrind report in call-interactively

* src/callint.c (Fcall_interactively): Don't try to access more
bytes than are available in the interactive spec.  (Bug#30004)

6 years ago* src/editfns.c (Fsave_excursion): Doc fix. (Bug#30001)
Eli Zaretskii [Sat, 6 Jan 2018 15:14:41 +0000 (17:14 +0200)]
* src/editfns.c (Fsave_excursion): Doc fix.  (Bug#30001)

6 years agoFix mark-defun when there's no spaces between successive defuns.
Alan Mackenzie [Sat, 6 Jan 2018 11:48:32 +0000 (11:48 +0000)]
Fix mark-defun when there's no spaces between successive defuns.

The problem was a parse-partial-sexp call which tried to use the STOPBEFORE
argument to detect non-syntactic WS.  This fails on a "}", which does not
begin a sexp.

* lisp/emacs-lisp/lisp.h (beginning-of-defun--in-emptyish-line-p): Enhance to
handle BOL being in a string.
(beginning-of-defun-comments): Call the above function in place of the call
to parse-partial-sexp.

6 years agoFix Dired display and operations on file names with raw bytes
Eli Zaretskii [Sat, 6 Jan 2018 08:56:21 +0000 (10:56 +0200)]
Fix Dired display and operations on file names with raw bytes

* src/coding.c (decode_coding): When flushing remaining raw bytes
from multibyte text, copy 2-byte forms of eight-bit-*
characters as single characters, not as 2 raw bytes.  (Bug#29189)

6 years ago; Comments related to src/termcap.c
Glenn Morris [Sat, 6 Jan 2018 02:50:31 +0000 (18:50 -0800)]
; Comments related to src/termcap.c

6 years agoImprove documentation of 'gdb-many-windows'
Eli Zaretskii [Fri, 5 Jan 2018 15:05:42 +0000 (17:05 +0200)]
Improve documentation of 'gdb-many-windows'

* doc/emacs/building.texi (GDB User Interface Layout): Add advice
for using a separate frame for 'gdb-many-windows'.

6 years agoFix failures in smerge-mode on MS-Windows
Eli Zaretskii [Fri, 5 Jan 2018 09:22:27 +0000 (11:22 +0200)]
Fix failures in smerge-mode on MS-Windows

* lisp/vc/smerge-mode.el (smerge--refine-chopup-region): Use
utf-8-emacs-unix, not emacs-internal, to make the forced EOL
convention explicit.
(smerge-refine-regions): Use utf-8-emacs instead of
emacs-internal, to allow decoding of non-Unix EOL conventions.
(Bug#29916)

6 years agoFix description of 'struct' generic function specializer
Stephen Leake [Tue, 2 Jan 2018 13:28:06 +0000 (07:28 -0600)]
Fix description of 'struct' generic function specializer
Backport:

* doc/lispref/functions.texi (Generic Functions): Fix description of
'struct' specializer; it must be the named struct or a child, not a
parent.

(cherry picked from commit b6add8c7cfc6d36f9dd8ad99be06bd8ab41cc6f8)

6 years ago* etc/DEBUG (Getting control to the debugger): Fix grammar.
Charles A. Roelli [Thu, 4 Jan 2018 20:27:26 +0000 (21:27 +0100)]
* etc/DEBUG (Getting control to the debugger): Fix grammar.

6 years ago* lisp/vc/vc.el (vc-region-history): log-view-vc-fileset holds a list!
Stefan Monnier [Wed, 3 Jan 2018 20:33:08 +0000 (15:33 -0500)]
* lisp/vc/vc.el (vc-region-history): log-view-vc-fileset holds a list!

6 years agoDon't bind dframe events on load (Bug#29599)
Noam Postavsky [Tue, 19 Dec 2017 01:30:10 +0000 (20:30 -0500)]
Don't bind dframe events on load (Bug#29599)

* lisp/dframe.el (dframe-setup-hook): New hook.
(dframe-set-special-events): New function, containing previous
top-level key binding code.
(top-level): Add it to dframe-setup-hook.
(dframe-frame-mode): Run the hook.

6 years ago* lisp/textmodes/picture.el (picture-mode-exit): Doc fix. (Bug#29949)
Eli Zaretskii [Tue, 2 Jan 2018 19:34:58 +0000 (21:34 +0200)]
* lisp/textmodes/picture.el (picture-mode-exit): Doc fix.  (Bug#29949)

6 years ago* lisp/textmodes/picture.el (picture-open-line): Doc fix. (Bug#29948)
Eli Zaretskii [Tue, 2 Jan 2018 19:24:34 +0000 (21:24 +0200)]
* lisp/textmodes/picture.el (picture-open-line): Doc fix.  (Bug#29948)

6 years agoFix description of 'emacs-internal'
Eli Zaretskii [Mon, 1 Jan 2018 16:36:28 +0000 (18:36 +0200)]
Fix description of 'emacs-internal'

* doc/lispref/nonascii.texi (Coding System Basics): Correct
inaccuracy in description of 'emacs-internal'.  (Bug#29916)

6 years agoUpdate PROBLEMS with selection-related issues
Eli Zaretskii [Mon, 1 Jan 2018 16:28:53 +0000 (18:28 +0200)]
Update PROBLEMS with selection-related issues

* etc/PROBLEMS: Update the entry about large selections and
klipper.  (Bug#29661)

6 years agoNew customization variable for python-mode indentation (Bug#28475)
Ross Donaldson [Mon, 25 Dec 2017 20:51:19 +0000 (12:51 -0800)]
New customization variable for python-mode indentation (Bug#28475)

* lisp/progmodes/python.el (python-indent-def-block-scale): New variable.
(python-indent--calculate-indentation): Let it control how many indent
levels are inserted for multi-line function signatures.

Copyright-paperwork-exempt: yes

6 years agoFix menu keyboard shortcuts on macOS (Bug#29595)
Alan Third [Fri, 22 Dec 2017 12:27:05 +0000 (12:27 +0000)]
Fix menu keyboard shortcuts on macOS (Bug#29595)

* src/nsmenu.m (addItemWithWidgetValue)[NS_IMPL_COCOA]: It looks like
macOS 10.13 no longer ignores long modifier strings, so explicitly use
an empty string.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Jan 2018 11:34:11 +0000 (06:34 -0500)]
; Auto-commit of loaddefs files.

6 years agoFix copyright years by hand
Paul Eggert [Mon, 1 Jan 2018 09:02:09 +0000 (01:02 -0800)]
Fix copyright years by hand

These are dates that admin/update-copyright did not update, or
updated incorrectly.

6 years agoUpdate copyright year to 2018
Paul Eggert [Mon, 1 Jan 2018 08:21:42 +0000 (00:21 -0800)]
Update copyright year to 2018

Run admin/update-copyright.

6 years agoMerge from Gnulib
Paul Eggert [Mon, 1 Jan 2018 01:19:57 +0000 (01:19 +0000)]
Merge from Gnulib

This incorporates:
2018-01-01 maint: Run 'make update-copyright'
2017-12-29 Add cross-compilation results for GNU/Hurd.
2017-12-12 explicit_bzero: port to macOS + Clang 9.0.0

6 years agoDon't add empty keyboard macro to macro ring (Bug#24992)
Gemini Lasswell [Mon, 18 Dec 2017 18:08:59 +0000 (10:08 -0800)]
Don't add empty keyboard macro to macro ring (Bug#24992)

* lisp/kmacro.el (kmacro-end-call-mouse): Don't save a newly defined
macro if it is empty.

* test/lisp/kmacro-tests.el (kmacro-tests-end-and-call-macro-mouse):
Remove expected failure tag.

6 years agoAllow customization of decoding of "man" command
Eli Zaretskii [Sun, 31 Dec 2017 16:20:12 +0000 (18:20 +0200)]
Allow customization of decoding of "man" command

* lisp/man.el (Man-coding-system): New defcustom.
(Man-start-calling): Use it, and also pay attention to user
overriding coding-system-for-read.  (Bug#29872)

6 years ago* etc/NEWS: Add security consideration note on passphrase input
Daiki Ueno [Sun, 31 Dec 2017 04:37:17 +0000 (05:37 +0100)]
* etc/NEWS: Add security consideration note on passphrase input

6 years agoFix subtle problem with scroll-down when scroll-margin is nonzero
Eli Zaretskii [Fri, 29 Dec 2017 21:41:20 +0000 (23:41 +0200)]
Fix subtle problem with scroll-down when scroll-margin is nonzero

* src/window.c (window_scroll_pixel_based): Account for
scroll-margin when scrolling down, i.e. moving window-start
towards the beginning of the buffer.  Reported by zhang cc
<ccsmile2008@outlook.com> in
http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00894.html.

6 years agoFix problems with indexing in User manual
Eli Zaretskii [Fri, 29 Dec 2017 16:04:57 +0000 (18:04 +0200)]
Fix problems with indexing in User manual

* doc/emacs/basic.texi (Continuation Lines, Inserting Text)
(Moving Point):
* doc/emacs/help.texi (Help Echo, Package Keywords, Help Mode):
* doc/emacs/trouble.texi (Quitting):
* doc/emacs/mark.texi (Setting Mark, Disabled Transient Mark):
* doc/emacs/custom.texi (Modifier Keys, Init Examples)
(Creating Custom Themes):
* doc/emacs/programs.texi (Program Modes, Expressions, Hideshow)
(Basic Indent, Info Lookup, Symbol Completion):
* doc/emacs/screen.texi (Echo Area):
* doc/emacs/xresources.texi (Table of Resources, GTK Names in Emacs):
* doc/emacs/display.texi (Line Truncation, Cursor Display):
* doc/emacs/files.texi (File Names, Backup, File Archives):
* doc/emacs/dired.texi (Operating on Files, Dired Enter):
* doc/emacs/commands.texi (User Input):
* doc/emacs/mule.texi (International, Unibyte Mode)
(International Chars):
* doc/emacs/vc1-xtra.texi (RCS and SCCS, Version Headers)
(CVS Options):
* doc/emacs/modes.texi (Major Modes, Minor Modes):
* doc/emacs/indent.texi (Just Spaces):
* doc/emacs/frames.texi (Mouse Avoidance, Mode Line Mouse)
(Frame Commands):
* doc/emacs/cmdargs.texi (Initial Options):
* doc/emacs/abbrevs.texi (Dabbrev Customization):
* doc/emacs/mini.texi (Completion Example, Completion Commands):
* doc/emacs/calendar.texi (Writing Calendar Files, Calendar Unit Motion)
(From Other Calendar):
* doc/emacs/regs.texi (Text Registers, Bookmarks):
* doc/emacs/buffers.texi (Several Buffers, Select Buffer):
* doc/emacs/maintaining.texi (Xref Commands):
* doc/emacs/windows.texi (Pop Up Window):
* doc/emacs/text.texi (Text, Org Mode):
* doc/emacs/killing.texi (Other Kill Commands):
* doc/emacs/misc.texi (Document View, Gnus Group Buffer)
(Gnus Summary Buffer, Shell Mode):
* doc/emacs/cal-xtra.texi (Sexp Diary Entries): Remove or reword
redundant identical index entries.
* doc/emacs/custom.texi (Mouse Buttons)
* doc/emacs/files.texi (Reverting): Fix hyphenation.
* doc/emacs/emacs.texi (Top): Improve wording of Index menu items.
* doc/emacs/files.texi (File Conveniences):
* doc/emacs/programs.texi (MixedCase Words): Make entries that
belong to Concept Index be indexed with @cindex.  (Bug#29888)

6 years ago* lisp/help.el (describe-key): Only (copy-sequence elt) when elt is a list.
Alan Mackenzie [Fri, 29 Dec 2017 09:54:03 +0000 (09:54 +0000)]
* lisp/help.el (describe-key): Only (copy-sequence elt) when elt is a list.

6 years ago* src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846
Stefan Monnier [Thu, 28 Dec 2017 19:03:07 +0000 (14:03 -0500)]
* src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846

Don't mess with the lock file when inhibit_modification_hooks is set,
just like we do in prepare_to_modify_buffer_1.

6 years agoImprove documentation of 'inhibit-modification-hooks' and friends
Eli Zaretskii [Thu, 28 Dec 2017 17:23:34 +0000 (19:23 +0200)]
Improve documentation of 'inhibit-modification-hooks' and friends

* src/buffer.c (Fset_buffer_modified_p)
(Frestore_buffer_modified_p): Doc fixes.
* src/insdel.c (syms_of_insdel) <inhibit-modification-hooks>:
Document in the doc string that this variable also inhibits file
locks and active region handling.  (Bug#29846)

6 years agoFix doc string of 'enable-recursive-minibuffers'
David Pathakjee [Thu, 28 Dec 2017 16:59:42 +0000 (18:59 +0200)]
Fix doc string of 'enable-recursive-minibuffers'

* src/minibuf.c (syms_of_minibuf) <enable-recursive-minibuffers>:
Doc fix.  (Bug#29873)

Copyright-paperwork-exempt: yes

7 years agoFix documentation of delsel and of killing text
Eli Zaretskii [Wed, 27 Dec 2017 18:23:10 +0000 (20:23 +0200)]
Fix documentation of delsel and of killing text

* doc/emacs/killing.texi (Appending Kills): Make sure the text
with 2 spaces is not broken between 2 lines.
* doc/emacs/mark.texi (Using Region): Remove the sentence about
delsel mode that describes behavior which exists even without
delsel mode turned on.  Suggested by Petteri Hintsanen
<petterih@iki.fi> in emacs-manual-bugs@gnu.org.

* lisp/delsel.el (delete-selection-mode): Doc fix.

7 years ago* doc/lispref/strings.texi (Case Conversion):
Glenn Morris [Wed, 27 Dec 2017 17:55:35 +0000 (09:55 -0800)]
* doc/lispref/strings.texi (Case Conversion):
Use a TeX font that support ligatures.