Ken Brown [Wed, 16 Nov 2016 23:24:41 +0000 (18:24 -0500)]
Unbreak the build on Darwin (Bug#24957)
* src/fileio.c (file_name_case_insensitive_p) [DARWIN_OS]: Fix
mistakes in recent commit.
Nicolas Petton [Wed, 16 Nov 2016 17:37:26 +0000 (18:37 +0100)]
Do not use map.el in seq-tests.el
* test/lisp/emacs-lisp/seq-tests.el: Do not use map.el. map.el was
introduced in Emacs 25.1, but seq.el is also available in GNU ELPA for
Emacs 24.5.
Tino Calancha [Wed, 16 Nov 2016 15:39:43 +0000 (00:39 +0900)]
Update parameter :version to 26.1 in several defcustom
Following defcustom where added or modified for 25.2 release.
In fact all these changes belong to 26.1 release.
* lisp/battery.el (battery-linux-sysfs-regexp)
* lisp/comint.el (comint-password-prompt-regexp)
* lisp/dired.el (dired-always-read-filesystem)
* lisp/image.el (image-scaling-factor)
* lisp/ibuf-ext.el (ibuffer-never-search-content-name)
(ibuffer-never-search-content-mode)
* lisp/mouse.el (mouse-select-region-move-to-beginning)
* lisp/net/net-utils.el (iwconfig-program, iwconfig-program-options)
(netstat-program, route-program, route-program-options)
* lisp/net/sieve-manage.el (sieve-manage-default-stream)
* lisp/progmodes/grep.el (grep-save-buffers)
* lisp/vc/add-log.el (change-log-directory-files)
* lisp/url/url-vars.el (url-user-agent)
* lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles)
(vc-hg-use-file-version-for-mode-line-version)
(vc-hg-parse-hg-data-structures)
* lisp/wdired.el (wdired-create-parent-directories)
* lisp/faces.el (homoglyph, nobreak-hyphen, read-multiple-choice-face)
* lisp/gnus/gnus-art.el (gnus-article-encrypt-protocol)
(gnus-button-url-regexp)
* lisp/window.el (switch-to-buffer-preserve-window-point)
* lisp/ibuffer.el (ibuffer-formats, ibuffer-locked-char)
(ibuffer-locked-buffer)
* lisp/textmodes/flyspell.el (flyspell-sort-corrections-function)
* lisp/emacs-lisp/edebug.el (edebug-sit-on-break)
* lisp/gnus/message.el (message-user-fqdn)
* lisp/simple.el (shell-command-dont-erase-buffer)
(extended-command-suggest-shorter)
* lisp/net/shr.el (shr-use-fonts)
* lisp/files.el (mounted-file-systems, kill-emacs-query-functions)
Glenn Morris [Wed, 16 Nov 2016 07:28:47 +0000 (23:28 -0800)]
Add --new-daemon, which runs in the foreground and does not fork
This is intended for modern init systems such as systemd,
which manage many of the traditional aspects of daemon behavior
themselves. (Bug#2677)
* src/emacs.c (daemon_type): New integer.
(usage, standard_args): Add --old-daemon and --new-daemon.
(main): Handle --old-daemon and --new-daemon arguments.
Restrict all the forking and complicated daemon stuff to old-daemon.
(Fdaemon_initialized): Handle new-style daemon.
* src/lisp.h (IS_DAEMON, DAEMON_RUNNING) [!WINDOWNT]:
Replace daemon_pipe with daemon_type.
* doc/emacs/cmdargs.texi (Initial Options):
* doc/emacs/glossary.texi (Glossary):
* doc/emacs/misc.texi (Emacs Server):
* doc/lispref/display.texi (Window Systems):
* doc/lispref/os.texi (Startup Summary): Related doc updates.
* etc/NEWS: Mention this.
* etc/emacs.service: Use Type=simple and --new-daemon.
Glenn Morris [Tue, 15 Nov 2016 23:21:06 +0000 (18:21 -0500)]
* src/emacs.c (usage_message): Mention named daemon. (Bug#24949)
* doc/man/emacs.1.in: Likewise.
Ken Brown [Mon, 14 Nov 2016 22:26:12 +0000 (17:26 -0500)]
Simplify case-insensitivity checks on Mac OS X
* src/fileio.c (file_name_case_insensitive_p): Try skipping the
Darwin code and instead using pathconf with _PC_CASE_SENSITIVE.
Leave in two alternatives conditionally compiled based on
DARWIN_OS_CASE_SENSITIVE_FIXME in case pathconf doesn't work.
* etc/PROBLEMS: Mention the possible problem with pathconf on
Mac OS X.
Glenn Morris [Tue, 15 Nov 2016 22:14:27 +0000 (17:14 -0500)]
* src/emacs.c (sort_args): Warn about multiple matches.
Michael Albinus [Tue, 15 Nov 2016 19:51:20 +0000 (20:51 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 15 Nov 2016 19:50:49 +0000 (20:50 +0100)]
Implement file name handler for `file-name-case-insensitive-p'
* doc/lispref/files.texi (Truenames): `file-name-case-insensitive-p'
is also applicable for remote hosts.
* lisp/net/tramp.el (tramp-methods): Improve docstring.
(tramp-file-name-for-operation): Add `file-name-case-insensitive-p'.
(tramp-handle-file-name-case-insensitive-p): New defun.
* lisp/net/tramp-smb.el (tramp-methods) <smb>:
Add `tramp-case-insensitive' entry.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist)
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
<file-name-case-insensitive-p>: Add handler. (Bug#22300, Bug#24441)
Mark Oteiza [Tue, 15 Nov 2016 18:31:31 +0000 (13:31 -0500)]
Nix more uses of default-FOO variables (Bug#24946)
* lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-mode):
Check for header-line-format instead.
* lisp/emulation/viper.el (viper-load-custom-file): Reference
major-mode instead.
* lisp-mail-feedmail.el (feedmail-fill-to-cc-fill-column): Use
fill-column instead.
Simen Heggestøyl [Tue, 15 Nov 2016 18:08:22 +0000 (19:08 +0100)]
Complete the name of PostgreSQL databases
* lisp/progmodes/sql.el (sql-postgres-login-params): Complete database
name.
(sql-postgres-list-databases): New function returning a list of
available PostgreSQL databases.
* test/lisp/progmodes/sql-tests.el: New file with tests for sql.el.
Sam Steingold [Tue, 15 Nov 2016 04:37:33 +0000 (23:37 -0500)]
add `vc-git-print-log-follow' and use it in `vc-git-print-log'
When `vc-git-print-log-follow' is true and all files are
non-directory, pass "--follow" to "git log".
This works around bug#8756 and bug#16422.
Sam Steingold [Tue, 15 Nov 2016 00:13:20 +0000 (19:13 -0500)]
`toggle-truncate-lines' obsoletes `gnus-summary-toggle-truncation'
Sam Steingold [Tue, 15 Nov 2016 00:08:54 +0000 (19:08 -0500)]
vc-git-print-log: pass "--follow" to "log" to handle renamed files
Eli Zaretskii [Mon, 14 Nov 2016 19:25:44 +0000 (21:25 +0200)]
Revert "Improve case-insensitive checks (Bug#24441)"
This reverts commit
2f5e0b1bf7b0ac4f450847db34d599a072020600.
I see no reason for removing code, documentation, and comments
in the original commit.
Wilson Snyder [Mon, 14 Nov 2016 18:47:31 +0000 (13:47 -0500)]
Update verilog-mode.el
* verilog-mode.el (verilog-read-decls, verilog-calc-1): Fix
"default clocking" indentation and preventing AUTOs from working,
bug1084. Reported by Alan Morgan.
(verilog-diff-report): Fix `verilog-diff-report'
not returning bad status on differences, bug1087. Reported by
Eric Jackowski.
(verilog-auto-inst-param-value)
(verilog-auto-inst-param-value-type, verilog-read-sub-decls)
(verilog-read-sub-decls-expr, verilog-read-sub-decls-gate)
(verilog-read-sub-decls-line, verilog-read-sub-decls-sig)
(verilog-read-sub-decls-type): When
`verilog-auto-inst-param-value-type' is set, which is now the
default, AUTOINPUT etc will now substitute parameter types from
submodules, bug1061. Reported by Brad Dobbie.
(verilog-auto-reset, verilog-backward-case-item)
(verilog-extended-case-re, verilog-read-always-signals-recurse):
Fix indentation of randcase, bug1072. Reported by David Rogoff.
(verilog-read-sub-decls-expr)
(verilog-sig-multidim-string): Fix AUTOINST ordering of dimensions
in generated comments, bug1057. Reported by Kaushal Modi.
(verilog-auto-wire-comment, verilog-insert-definition):
Add `verilog-auto-wire-comment' to suppress wire comments. Reported by
Eric Jackowski.
(verilog-extended-complete-re): Fix indentation
of class static functions, bug1053. Reported by Gregory
Czajkowski.
(verilog-module-filenames): Support tramp for
finding verilog modules. Reported by Nevada Sanchez.
Paul Eggert [Mon, 14 Nov 2016 17:08:06 +0000 (09:08 -0800)]
Improve case-insensitive checks (Bug#24441)
* doc/lispref/files.texi (Truenames): Simplify documentation,
to avoid giving too much platform-specific information that
may not be accurate anyway.
* src/fileio.c (file_name_case_insensitive_p): Use pathconf with
_PC_CASE_SENSITIVE if _PC_CASE_INSENSITIVE is not available.
Otherwise if one approach fails (e.g., with errno == EINVAL), fall
back on an alternative rather than returning false. Try skipping
the Darwin code, as it (1) no longer seems to be needed and (2)
does not seem to match the Apple documentation. Leave in two
alternatives conditionally compiled based on
DARWIN_OS_CASE_SENSITIVE_FIXME in case (1) or (2) is incorrect.
Eli Zaretskii [Mon, 14 Nov 2016 16:13:09 +0000 (18:13 +0200)]
Fix documentation changes of connection-local variables
* etc/NEWS: Fix last change.
* doc/lispref/variables.texi (Connection Local Variables): Minor fixes.
* doc/lispref/elisp.texi (Top): Update the master menu.
Michael Albinus [Mon, 14 Nov 2016 12:56:58 +0000 (13:56 +0100)]
Implement connection-local variables
* doc/lispref/variables.texi (Connection Local Variables): New section.
* etc/NEWS: Mention connection-local variables.
* lisp/files-x.el (enable-connection-local-variables)
(connection-local-variables-alist, connection-local-class-alist)
(connection-local-criteria-alist): New defvars.
(connection-local-get-classes)
(connection-local-get-class-variables): New defsubst.
(connection-local-set-classes)
(connection-local-set-class-variables)
(hack-connection-local-variables)
(hack-connection-local-variables-apply): New defuns.
(with-connection-local-classes): New defmacro.
* lisp/net/tramp.el (tramp-set-connection-local-variables): New defun.
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Use it.
* test/lisp/files-x-tests.el: New file.
Tino Calancha [Mon, 14 Nov 2016 08:31:44 +0000 (17:31 +0900)]
tabulated-list: extend truncation into next align-right column
See discussion on:
https://lists.gnu.org/archive/html/emacs-devel/2016-10/msg01101.html
* lisp/emacs-lisp/tabulated-list.el
(tabulated-list--near-rows): New variable.
(tabulated-list-print, tabulated-list-set-col): Use it.
(tabulated-list--col-local-max-widths): New defsubst.
(tabulated-list-print-col): Use it. If the next column is
align-right, and has some space left then don't truncate to width,
use some of the available space from the next column.
Katsumi Yamaoka [Mon, 14 Nov 2016 06:56:01 +0000 (06:56 +0000)]
* lisp/net/shr.el (shr-collect-extra-strings-in-table): Fix indentation.
Katsumi Yamaoka [Mon, 14 Nov 2016 06:48:06 +0000 (06:48 +0000)]
* lisp/net/shr.el (shr-tag-table): Avoid duplication of images.
(shr-collect-extra-strings-in-table): Render images as well.
Ken Brown [Mon, 14 Nov 2016 03:00:24 +0000 (22:00 -0500)]
Use the new 'file-name-case-insensitive-p' function
* lisp/international/mule.el (auto-coding-alist-lookup):
* lisp/files.el (file-truename):
(abbreviate-file-name, set-auto-mode, file-relative-name):
* package.el (package-untar-buffer): Use
'file-name-case-insensitive-p' instead of 'system-type' to test
case-insensitivity.
Glenn Morris [Sun, 13 Nov 2016 23:46:31 +0000 (15:46 -0800)]
Include a systemd user unit file. (Bug#16507)
* etc/emacs.service: New file.
* doc/emacs/misc.texi (Emacs Server): Mention systemcl --user.
* Makefile.in (libdir): New, set by configure.
(systemdunitdir): New variable.
(install-etc, uninstall): Handle the emacs.service file.
Paul Eggert [Sun, 13 Nov 2016 20:15:25 +0000 (12:15 -0800)]
Port --enable-gcc-warnings to Ubuntu 16.10
* src/gmalloc.c: Include <stdlib.h>, so it declares
hybrid_aligned_alloc (the definiens of the aligned_alloc macro),
so that GCC doesn't complain that hybrid_aligned_alloc is
defined without being declared.
Ken Brown [Sun, 13 Nov 2016 16:33:27 +0000 (11:33 -0500)]
Silence tramp warning
* lisp/net/tramp.el (tramp-file-name-for-operation): Add
'file-name-case-insensitive-p' as a known file primitive.
(Bug#24936)
Ken Brown [Sun, 13 Nov 2016 00:00:35 +0000 (19:00 -0500)]
Check case-sensitivity when renaming files
* src/fileio.c (file_name_case_insensitive_p)
(Ffile_name_case_insensitive_p): New functions.
(Frename_file): Allow renames that simply change case when the
FILE argument is on a case-insensitive filesystem. (Bug#24441)
* lisp/dired-aux.el (dired-do-create-files): Use
'file-name-case-insensitive-p' instead of 'system-type' to check
for case-insensitivity. (Bug#24441)
* doc/lispref/files.texi (Truenames): Document
'file-name-case-insensitive-p'.
Ken Brown [Sun, 13 Nov 2016 02:45:24 +0000 (21:45 -0500)]
Unbreak the build on Cygwin
* configure.ac (system_malloc) [CYGWIN]: Unset.
Mark Oteiza [Sun, 13 Nov 2016 00:04:36 +0000 (19:04 -0500)]
; Fix thinko
* lisp/auth-source.el (auth-source-backend-parse-parameters): Contain
cl-return within cl-dolist.
Mark Oteiza [Sat, 12 Nov 2016 00:05:23 +0000 (19:05 -0500)]
Update chart.el
* lisp/emacs-lisp/chart.el (chart-mode): Derive from special-mode.
(chart-draw): Wrap in with-silent-modifications. Instead of inserting a
fixed number of newlines, use window-height.
(chart-bar):
(chart-trim): Use dolist.
(chart-file-count): The previous implementation was buggy and missed
extensions. Use file-name-extension instead to detect file extensions.
Also use dolist and cl-incf to reduce verbosity.
Katsumi Yamaoka [Fri, 11 Nov 2016 08:17:41 +0000 (08:17 +0000)]
* lisp/net/shr.el (shr--preferred-image): Add CR to whitespace regexps.
(shr-collect-extra-strings-in-table):
Render extra tables in an invalid html as well.
Katsumi Yamaoka [Fri, 11 Nov 2016 00:27:48 +0000 (00:27 +0000)]
* lisp/net/shr.el (shr--preferred-image): Ignore whitespace (bug#24893).
Eli Zaretskii [Wed, 9 Nov 2016 18:45:38 +0000 (20:45 +0200)]
Resurrect 'memory-limit' on MS-Windows
* nt/mingw-cfg.site (ac_cv_func_sbrk): Set to "yes", otherwise
'memory-limit' will produce a trivial and useless result on Windows.
Mark Oteiza [Wed, 9 Nov 2016 17:54:36 +0000 (12:54 -0500)]
Update quickurl.el
* lisp/net/quickurl.el (quickurl-format-function):
(quickurl-sort-function): Use named function.
(quickurl-list-mode-map): Remove lines that are extraneous now that the
parent mode is special-mode.
(quickurl-format-url, quickurl-sort-urls): New functions.
(quickurl-read, quickurl): Use defun, as no cl-defun feature appears to
be used.
(quickurl-list-mode): Derive from special-mode. Nix setting
buffer-read-only: special-mode does that.
(quickurl-list-populate-buffer): Use dolist instead.
(quickurl-list-quit): Use quit-window. It looks like this was written
before the quit-window rewrite. quit-window is very useful now.
Michael Albinus [Wed, 9 Nov 2016 14:34:40 +0000 (15:34 +0100)]
Refine multi-hop specs in Tramp
* lisp/net/tramp.el (tramp-tramp-file-p): Suppress "/:" and "/c:".
* test/lisp/net/tramp-tests.el
(tramp-test01-file-name-syntax): Multi-hop specs don't need a
method. "/h:" is allowed on non MS Windows.
Daniel Colascione [Tue, 8 Nov 2016 23:26:43 +0000 (15:26 -0800)]
Avoid infloop in python
Fix bug#24905
* lisp/progmodes/python.el (python-info-docstring-p): Improve
infloop avoidance: replace (bobp) with generic test for
forward progress.
* test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Add
test for bug#24905
Daniel Colascione [Tue, 8 Nov 2016 20:37:30 +0000 (12:37 -0800)]
Make gnus/message.el work correctly under lexical binding
* lisp/gnus/message.el (message-send-mail): Rename `arg' to
`_' to shut up the byte compiler.
(sha1-maximum-internal-length, smtpmail-smtp-server)
(smtpmail-smtp-service): add missing defvars
Michael Albinus [Tue, 8 Nov 2016 19:45:59 +0000 (20:45 +0100)]
Fix Bug#24889
* lisp/net/tramp.el (tramp-file-name-regexp): Make it a
defvar. Fix docstring.
(tramp-completion-file-name-handler-alist): Fix docstring.
(tramp-register-file-name-handlers): Reassign
`tramp-file-name-regexp' to the car of
`tramp-file-name-structure'. (Bug#24889)
Paul Eggert [Tue, 8 Nov 2016 17:48:53 +0000 (09:48 -0800)]
Port to FreeBSD 11 AMD
Problem reported by Ashish Shukla (Bug#24892). I tested
this on FreeBSD 11 x86-64 with HAVE_SBRK manually undefined.
* configure.ac (system_malloc): Set to 'yes' if there is no sbrk.
(sbrk): Check whether it exists.
* src/alloc.c (my_heap_start) [!GNU_LINUX]:
Do not define, since this function is now used only on GNU/Linux,
and sbrk might not exist on other platforms.
(malloc_initialize_hook) [!GNU_LINUX]:
Do not call my_heap_start, since its side effect will never be used.
(Fmemory_limit) [!HAVE_SBRK]: Do not call sbrk.
* src/unexelf.c (unexec) [!HAVE_SBRK]: Assume that nothing like
sbrk exists.
Paul Eggert [Tue, 8 Nov 2016 16:54:23 +0000 (08:54 -0800)]
Port emacsclient to FreeBSD 11 etc.
* lib-src/emacsclient.c: Include <string.h>. This is needed on
platforms like FreeBSD 11 that use code involving strlen etc., and
because <config.h> no longer includes string.h.
Mark Oteiza [Tue, 8 Nov 2016 03:11:39 +0000 (22:11 -0500)]
Prescribe history for read-regexp in query-replace
In the fix for bug#24580, the history argument for read-regexp was
removed erroneously; read-regexp's history argument defaults to
regexp-history, not minibuffer-history.
* lisp/replace.el (query-replace-read-from): Tell read-regexp to use
minibuffer-history. Fixes bug#24873.
Mark Oteiza [Tue, 8 Nov 2016 02:31:47 +0000 (21:31 -0500)]
Remove obsolete default-FOO variables
* etc/NEWS: Indicate the removed variables.
* lisp/emacs-lisp/edebug.el (edebug-outside-mark): Fix comment.
* lisp/subr.el (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove obsolete declarations.
* src/buffer.c (default-mode-line-format, default-header-line-format):
(default-line-spacing, default-abbrev-mode, default-ctl-arrow):
(default-truncate-lines, default-left-margin, default-tab-width):
(default-case-fold-search, default-left-margin-width):
(default-right-margin-width, default-left-fringe-width):
(default-right-fringe-width, default-fringes-outside-margins):
(default-scroll-bar-width, default-vertical-scroll-bar):
(default-indicate-empty-lines, default-indicate-buffer-boundaries):
(default-fringe-indicator-alist, default-fringe-cursor-alist):
(default-scroll-up-aggressively, default-scroll-down-aggressively):
(default-fill-column, default-cursor-type):
(default-cursor-in-non-selected-windows):
(default-buffer-file-coding-system, default-major-mode):
(default-enable-multibyte-characters): Remove.
* src/fileio.c (choose_write_coding_system): Fix comment.
* src/lisp.h (DEFVAR_BUFFER_DEFAULTS): Remove.
Eli Zaretskii [Mon, 7 Nov 2016 17:55:25 +0000 (19:55 +0200)]
Improve the tutorial
* etc/tutorials/TUTORIAL: Minor copyedits. (Bug#24890)
* etc/tutorials/TUTORIAL.he: Follow suit.
Paul Eggert [Mon, 7 Nov 2016 06:55:30 +0000 (22:55 -0800)]
Restore file descriptor limit in subprocesses
Problem reported by Philipp Stephani (Bug#24869).
* src/callproc.c (child_setup) [!DOS_NT]:
Call restore_nofile_limit in the child.
* src/process.c (nofile_limit) [HAVE_SETRLIMIT]: New static var.
(restore_nofile_limit): New function.
(init_process_emacs) [HAVE_SETRLIMIT]: Set the new var.
Mark Oteiza [Sun, 6 Nov 2016 17:09:38 +0000 (12:09 -0500)]
; Reword
Mark Oteiza [Sun, 6 Nov 2016 16:53:47 +0000 (11:53 -0500)]
Remove some subr.el functions obsoleted in 22.1
* etc/NEWS: Document removed functions. Also mention the "face"
variables that have been removed recently.
* lisp/subr.el (window-dot, set-window-dot, read-input, show-buffer):
(eval-current-buffer, string-to-int, insert-string, makehash): Remove.
Paul Eggert [Sun, 6 Nov 2016 03:44:56 +0000 (20:44 -0700)]
Prefer comments /* like this */ in C code
Johan Bockgård [Sat, 5 Nov 2016 15:31:22 +0000 (16:31 +0100)]
* lisp/subr.el (copy-tree): Handle vector in cdr. (Bug#24876)
Nick Terrell [Sat, 5 Nov 2016 09:42:15 +0000 (11:42 +0200)]
Support zstd compressed files
* lisp/jka-cmpr-hook.el (jka-compr-compression-info-list): Add
zstd compression info: <http://facebook.github.io/zstd/>.
(jka-compr-mode-alist-additions): Handle .tzst suffix for zstd
compressed tar archives. (Bug#24853)
Copyright-paperwork-exempt: yes
Eli Zaretskii [Sat, 5 Nov 2016 08:21:23 +0000 (10:21 +0200)]
Enlarge DUMPED_HEAP_SIZE
* src/w32heap.c (DUMPED_HEAP_SIZE) [_WIN64 || WIDE_EMACS_INT]:
Enlarge to 21MB. Reported by Richard Copley <rcopley@gmail.com>.
Paul Eggert [Fri, 4 Nov 2016 22:12:09 +0000 (15:12 -0700)]
Update from gnulib
This incorporates:
2016-11-03 intprops: port to older XL C
* lib/intprops.h: Copy from gnulib.
Paul Eggert [Fri, 4 Nov 2016 22:07:01 +0000 (15:07 -0700)]
; Spelling fixes
Paul Eggert [Fri, 4 Nov 2016 22:02:03 +0000 (15:02 -0700)]
Merge from origin/emacs-25
acae275 ; Spelling fixes
d8fac73 Update README for precompiled windows Emacs.
23570fd Clarify documentation of 'vc-responsible-backend' wrt symlinks
f708cb2 Clarify doc string of 'transpose-sexps'
cd05b1d Fix docstring of 'browse-url-firefox-new-window-is-tab'
bdc89eb Improve documentation of 'font-lock-remove-keywords'
4a0c590 Fix documentation of the command summary key
0221b7a Mark relocation workarounds with REL_ALLOC
Paul Eggert [Fri, 4 Nov 2016 22:02:03 +0000 (15:02 -0700)]
; Merge from origin/emacs-25
The following commits were skipped:
5043e0a Fix documentation for 'eudc-options-file'
26038aa Fix documentation of 'eudc-inline-expansion-format'
Paul Eggert [Fri, 4 Nov 2016 22:01:17 +0000 (15:01 -0700)]
Merge from origin/emacs-25
dbb3410 python.el: Fix detection of native completion in Python 3 (bu...
91c97b6 * Makefile.in (install-arch-indep): Skip etc/refcards/emacsve...
9c1cb8d * lisp/subr.el (set-transient-map): Exit for unbound events (...
9c247d2 Update category-table for Chinese characters
43986d1 Inhibit buffer relocation during regex searches
fee4cef Revert fixes to allocation of regex matching
Paul Eggert [Fri, 4 Nov 2016 21:50:09 +0000 (14:50 -0700)]
; Spelling fixes
Phillip Lord [Fri, 4 Nov 2016 20:50:55 +0000 (20:50 +0000)]
Update README for precompiled windows Emacs.
* nt/README.W32: Describe 64 and 32-bit downloads, optional
dependencies bundle. Remove old material on sourcing dependencies.
Remove references to Windows 95. Update GUI references to recent
Windows. Remove references to Usenet.
Mark Oteiza [Fri, 4 Nov 2016 18:22:05 +0000 (14:22 -0400)]
; Restore nixed comments
Mark Oteiza [Fri, 4 Nov 2016 16:45:51 +0000 (12:45 -0400)]
Fix references to long obsoleted functions/aliases
* doc/lispintro/emacs-list-intro.texi (Miscellaneous):
* doc/misc/cl.texi (Conditionals):
* doc/misc/speedbar.texi (Major Display Modes): Use string-to-number,
not string-to-int.
* lisp/emulation/viper.el (viper-go-away): Use major-mode, not
default-major-mode.
* lisp/textmodes/reftex-toc.el (reftex-toc-visit-location): show-window
here is not a function call, but shorten the binding names anyways.
Also, use pop-to-buffer-same-window instead of switch-to-buffer cf
Bug#22244.
* lisp/textmodes/sgml-mode.el (html-tag-alist): Use read-string, not
read-input.
Mark Oteiza [Fri, 4 Nov 2016 14:23:46 +0000 (10:23 -0400)]
* lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.
Mark Oteiza [Fri, 4 Nov 2016 14:14:01 +0000 (10:14 -0400)]
; Fix warnings
Katsumi Yamaoka [Fri, 4 Nov 2016 10:33:26 +0000 (10:33 +0000)]
* lisp/net/shr.el (shr-collect-extra-strings-in-table) New function
that gathers extra strings in an invalid html. (bug#24831)
(shr-tag-table): Use it.
Hong Xu [Fri, 4 Nov 2016 10:06:00 +0000 (12:06 +0200)]
Clarify documentation of 'vc-responsible-backend' wrt symlinks
* lisp/vc/vc.el (vc-responsible-backend): Clarify that symlinks
are not resolved when the VC backend is reported.
* doc/lispref/files.texi (Truenames): Document
'vc-responsible-backend'. (Bug#23436)
* doc/emacs/maintaining.texi (Version Control Systems): Fix a
typo.
Eli Zaretskii [Fri, 4 Nov 2016 09:50:48 +0000 (11:50 +0200)]
Clarify doc string of 'transpose-sexps'
* lisp/simple.el (transpose-sexps): Clarify the conditions for
transposing sexps that are lists or strings. Mention the effect
of the prefix argument. (Bug#24860)
Tibor Csögör [Fri, 4 Nov 2016 09:24:21 +0000 (11:24 +0200)]
Fix docstring of 'browse-url-firefox-new-window-is-tab'
* lisp/net/browse-url.el (browse-url-firefox-new-window-is-tab):
Remove obsolete note from docstring (obsoleted by previous commits).
(Bug#24843)
Copyright-paperwork-exempt: yes
Eli Zaretskii [Fri, 4 Nov 2016 09:16:40 +0000 (11:16 +0200)]
Improve documentation of 'font-lock-remove-keywords'
* doc/lispref/modes.texi (Customizing Keywords): Clarify the
'keywords' argument of 'font-lock-remove-keywords'. Suggested by
Hong Xu <hong@topbug.net>. (Bug#24830)
Vasilij Schneidermann [Fri, 4 Nov 2016 09:09:31 +0000 (11:09 +0200)]
Add 'x-ctrl-keysym' support on X window system
* src/xterm.c (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers):
Support 'x-ctrl-keysym'.
(syms_of_xterm): DEFSYM "ctrl" and put a proper modifier-value
property on it.
<x-ctrl-keysym>: New DEFVAR_LISP.
<x-alt-keysym, x-hyper-keysym, x-meta-keysym, x-super-keysym>: Doc
fix. (Bug#24822)
* etc/NEWS: Mention the addition of 'x-ctrl-keysym'.
* doc/lispref/os.texi (X11 Keysyms): Document 'x-ctrl-keysym'.
Eli Zaretskii [Fri, 4 Nov 2016 08:56:11 +0000 (10:56 +0200)]
Fix documentation of the command summary key
* doc/misc/info.texi (Help-^L, Help-Xref, Top): Emacs Info uses
'?' for the summary of commands, whereas the stand-alone reader
uses 'H'. (Bug#24825)
Alexander Gramiak [Fri, 4 Nov 2016 08:41:21 +0000 (10:41 +0200)]
Improve autoload error reporting
* src/eval.c (Fautoload_do_load): Include the absolute file name
in the error message.
Eli Zaretskii [Fri, 4 Nov 2016 08:36:02 +0000 (10:36 +0200)]
Mark relocation workarounds with REL_ALLOC
* src/search.c (boyer_moore): Mark workarounds for ralloc.c
relocation of buffer text with "#ifdef REL_ALLOC".
Reuben Thomas [Tue, 25 Oct 2016 22:20:59 +0000 (23:20 +0100)]
Stop force parameter of whitespace-report-region having global effect
* lisp/whitespace.el (whitespace-report-region): Force parameter
previously changed whitespace-style globally. Fix this, and use
whitespace-active-style, to take account of any changes the user may
have made. Simplify the documentation: the force parameter simply
forces all classes of whitespace problem to be considered.
(Bug#24745)
Reuben Thomas [Tue, 25 Oct 2016 22:04:18 +0000 (23:04 +0100)]
Document use of `tab-width'
* lisp/whitespace.el: When talking about `8 or more spaces', mention
`tab-width' instead of 8. (Bug#24745)
Reuben Thomas [Fri, 21 Oct 2016 14:25:12 +0000 (15:25 +0100)]
Make whitespace-report-region respect current settings
* lisp/whitespace.el (whitespace-report-region): Make it respect
whitespace-style, including any additions made by the force parameter.
This means that the function does not return t unless a whitespace
problem that the user cares about is reported. (Bug#24745)
Reuben Thomas [Fri, 21 Oct 2016 14:23:08 +0000 (15:23 +0100)]
Fix whitespace-space-after-tab-regexp
* lisp/whitespace.el (whitespace-space-after-tab-regexp)
(whitespace-regexp): Match all the spaces after tabs for highlighting,
not just the first tab-width. Fix whitespace-space-after-tab::space
version so that it requires at least tab-width spaces, not just 1.
(Bug#24745)
Reuben Thomas [Fri, 21 Oct 2016 14:20:07 +0000 (15:20 +0100)]
Remove duplicate documentation
* lisp/whitespace.el: Remove duplicate documentation from the Commentary
section which duplicate and in some places contradict (due to being
out of date) the docstrings (Bug#24745).
Reuben Thomas [Thu, 20 Oct 2016 12:17:58 +0000 (13:17 +0100)]
Fix bob/eob checks
* lisp/whitespace.el (whitespace-empty-at-bob-regexp)
(whitespace-empty-at-eob-regexp, whitespace-cleanup): Make `empty' checks
work at beginning & end of buffer in whitespace-report-region, and only
there (i.e. they will never match in regions that don't include the
start or end of the buffer). (Bug#24745)
Tino Calancha [Thu, 3 Nov 2016 11:33:19 +0000 (20:33 +0900)]
(thing-at-point 'list) return nil if no list at point
* lisp/thingatpt.el (thing-at-point-bounds-of-list-at-point):
Check first if we are at the beginning of a top-level sexp (Bug#24627).
If point is inside a comment or string, look for a list out of the
comment/string.
Escape '[' in doc string.
* test/lisp/thingatpt-tests.el (thing-at-point-bug24627): Update
expected test result as pass.
Mark Oteiza [Thu, 3 Nov 2016 05:15:30 +0000 (01:15 -0400)]
Remove antlr face aliases obsoleted in 22.1
* lisp/progmodes/antlr-mode.el: Remove obsolete aliases
(antlr-default-face, antlr-keyword-face, antlr-syntax-face):
(antlr-ruledef-face, antlr-tokendef-face, antlr-ruleref-face):
(antlr-tokenref-face, antlr-literal-face):
(antlr-literal-face): Remove.
(antlr-font-lock-additional-keywords): Use face symbols instead.
Daniel Colascione [Thu, 3 Nov 2016 04:17:48 +0000 (21:17 -0700)]
Revert "Disable bracketed paste in a terminal in char mode"
This change causes regressions, and besides, disabling BPM frame-wide
for the sake of one buffer is the wrong solution.
This reverts commit
cf566b46a6cf85c6d54d0b0db80e32ed6ae8d1ca.
Mark Oteiza [Wed, 2 Nov 2016 20:23:48 +0000 (16:23 -0400)]
; Require eieio at run time
Mark Oteiza [Wed, 2 Nov 2016 20:18:49 +0000 (16:18 -0400)]
Revert change to eww-suggest-uris
The introduced append is ugly and can yield '(nil); doing delq on it
would be hacks on hacks.
* lisp/net/eww.el: Require cl-lib at run time.
(eww-suggest-uris): Restore eww-current-url, reverting previous change.
(eww): Remove erroneous append.
(eww-open-in-new-buffer): Check if the return from eww-suggested-uris is
equal to eww-current-url, which is nil anyways if we are not in an EWW
buffer.
Mark Oteiza [Wed, 2 Nov 2016 19:58:28 +0000 (15:58 -0400)]
Add eww-open-in-new-buffer to EWW
* doc/misc/eww.texi (Basic): Document new command and key.
* etc/NEWS: Mention new key and its purpose.
* lisp/net/eww.el (eww-suggest-uris): Remove eww-current-url.
(eww): Append (eww-current-url) to the prompt defaults.
(eww-open-in-new-buffer): New command.
(eww-mode-map): Bind it and add a menu item.
Mark Oteiza [Wed, 2 Nov 2016 18:56:40 +0000 (14:56 -0400)]
Migrate auth-source to cl-lib
* lisp/auth-source.el: Use cl-lib.
(auth-source-read-char-choice, auth-source-backend-parse-parameters):
(auth-source-search): Replace cl calls with cl-lib ones.
(auth-source-netrc-cache):
(auth-source-forget+): Use cl-do-symbols instead.
(auth-source-specmatchp, auth-source-netrc-parse):
(auth-source-netrc-search, auth-source-netrc-create):
(auth-source-netrc-saver, auth-source-secrets-listify-pattern):
(auth-source-secrets-search, auth-source-secrets-create):
(auth-source-macos-keychain-search, auth-source--decode-octal-string):
(auth-source-macos-keychain-search-items, auth-source-plstore-search):
(auth-source-plstore-create): Replace cl calls with cl-lib ones.
Thomas Fitzsimmons [Tue, 1 Nov 2016 09:00:25 +0000 (05:00 -0400)]
Fix documentation for 'eudc-options-file'
* doc/misc/eudc.texi (The Server Hotlist): Update the default
value of 'eudc-options-file'.
Backport:
(cherry picked from commit
0575fd95d0b92a9a0ebff8df183a449190f74dbc)
Tibor Csögör [Tue, 1 Nov 2016 08:57:53 +0000 (04:57 -0400)]
Fix documentation of 'eudc-inline-expansion-format'
* doc/misc/eudc.texi (Inline Query Expansion): Fix the default value of
'eudc-inline-expansion-format'. (Bug#24840)
Backport:
(cherry picked from commit
1fef1387c387d80f8ece326621539b89a6965702)
Lars Ingebrigtsen [Tue, 1 Nov 2016 19:57:28 +0000 (20:57 +0100)]
Don't segfault on timed-out TLS connections
* src/process.c (finish_after_tls_connection): Check that the
file descriptor is still alive before proceeding (bug#24811).
Also clean up the code slightly.
Eli Zaretskii [Tue, 1 Nov 2016 16:04:07 +0000 (18:04 +0200)]
Support 'TARGETS' in clipboard selections on MS-Windows
* src/w32select.c (Fw32_selection_targets): New function.
* lisp/term/w32-win.el (w32--get-selection): Call
'w32-selection-targets' to obtain the list of data formats
available in the clipboard.
Glenn Morris [Tue, 1 Nov 2016 10:18:02 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.
Thomas Fitzsimmons [Tue, 1 Nov 2016 09:00:25 +0000 (05:00 -0400)]
Fix documentation for 'eudc-options-file'
* doc/misc/eudc.texi (The Server Hotlist): Update the default
value of 'eudc-options-file'.
Tibor Csögör [Tue, 1 Nov 2016 08:57:53 +0000 (04:57 -0400)]
Fix documentation of 'eudc-inline-expansion-format'
* doc/misc/eudc.texi (Inline Query Expansion): Fix the default value of
'eudc-inline-expansion-format'. (Bug#24840)
Mark Oteiza [Tue, 1 Nov 2016 00:31:22 +0000 (20:31 -0400)]
Turn on lexical-binding in some more libs
* lisp/calendar/icalendar.el:
* lisp/emacs-lisp/regexp-opt.el:
* lisp/emacs-lisp/timer.el:
* lisp/gnus/message.el:
* lisp/hex-util.el: Turn on lexical-binding.
Mark Oteiza [Tue, 1 Nov 2016 00:19:21 +0000 (20:19 -0400)]
Turn on lexical-binding in some net libs
* lisp/net/dbus.el: Turn on lexical-binding.
(dbus-list-hash-table, dbus-list-known-names):
(dbus-introspect-get-node-names, dbus-introspect-get-interface-names):
(dbus-introspect-get-method-names, dbus-introspect-get-signal-names):
(dbus-introspect-get-property-names):
(dbus-introspect-get-argument-names, dbus-get-all-properties):
(dbus-property-handler, dbus-get-all-managed-objects):
(dbus-managed-object-handler): Replace add-to-list with push. Add
nreverse in some places where the APPEND argument of add-to-list was
used.
* lisp/net/network-stream.el: Turn on lexical-binding.
* lisp/net/newsticker.el: Turn on lexical-binding.
* lisp/net/shr.el: Turn on lexical-binding.
(shr-make-placeholder-image): Remove unused variable binding.
(shr-inspect-table): Replace ignored bindings with underscore.
Mark Oteiza [Mon, 31 Oct 2016 23:55:17 +0000 (19:55 -0400)]
Turn on lexical-binding in some url libs
* lisp/url/url-auth.el:
* lisp/url/url-expand.el:
* lisp/url/url-future.el:
* lisp/url/url-parse.el:
* lisp/url/url-util.el: Turn on lexical-binding.
Johan Bockgård [Fri, 21 Oct 2016 22:14:44 +0000 (00:14 +0200)]
* lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Fix debug spec
(Bug#24733)
Clément Pit--Claudel [Thu, 27 Oct 2016 02:46:28 +0000 (22:46 -0400)]
python.el: Fix detection of native completion in Python 3 (bug #24401)
With Python 3.5, (python-shell-completion-native-get-completions ... "")
would return an empty list, causing python.el to think that native
completion was unavailable (the difference between Python 2 and Python 3
is due to https://bugs.python.org/issue25660).
* lisp/progmodes/python.el (python-shell-completion-native-try): Use "_"
to check whether native completion is available instead of "".
Alan Mackenzie [Sun, 30 Oct 2016 17:29:52 +0000 (17:29 +0000)]
Handle chars of syntax word which are also flagged as comment delimiters
src/syntax.c (scan_sexps_forward): When chars of syntax word are also flagged
as the start/end of two char comment delimiters, recognize a comment delimiter
in preference to a portion of a word. This fixes bug #24767.
Daniel Colascione [Thu, 6 Oct 2016 19:46:36 +0000 (12:46 -0700)]
Speed up initialization by preferring /dev/urandom to GnuTLS
* src/sysdep.c (init_random): Try /dev/urandom before GnuTLS.
José L. Doménech [Sun, 30 Oct 2016 01:18:31 +0000 (21:18 -0400)]
Quote file names in dired compression commands
* lisp/dired-aux.el (dired-do-compress-to): Change the string
used as shell command for compression by quoting the filenames
used for input and output (Bug #24620).
Eli Zaretskii [Sat, 29 Oct 2016 14:39:54 +0000 (17:39 +0300)]
Avoid errors in posn-at-point for large images
* src/keyboard.c (Fposn_at_point): If pos-visible-in-window-p
returns a 6-member list for a partially visible glyph, pass the
sum of Y and RTOP to posn-at-x-y, since that's where the visible
portion of that glyph begins on display. (Bug#24804) (Bug#21832)
(Bug#23809)
Eli Zaretskii [Sat, 29 Oct 2016 07:40:38 +0000 (10:40 +0300)]
Unbreak MS-Windows build
* src/w32term.c (XCreateGC): Second argument is now HWND, and its
name is "wignore".
(x_set_cursor_gc, x_set_mouse_face_gc)
(x_draw_glyph_string_background, x_draw_glyph_string_bg_rect)
(x_draw_image_glyph_string, x_draw_stretch_glyph_string): Don't
use s->window, which doesn't exist anymore.
* src/w32term.h (XCreateGC): Adjust prototype.