Commit graph

127400 commits

Author SHA1 Message Date
Katsumi Yamaoka
99e7b99e43 * lisp/net/shr.el (shr-tag-table): Avoid duplication of images.
(shr-collect-extra-strings-in-table): Render images as well.
2016-11-14 06:48:06 +00:00
Ken Brown
cbed42838e 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.
2016-11-13 22:01:59 -05:00
Glenn Morris
181bd848eb 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.
2016-11-13 15:46:31 -08:00
Paul Eggert
9b3a853ab2 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.
2016-11-13 12:18:33 -08:00
Ken Brown
a611d7d7b4 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)
2016-11-13 11:34:02 -05:00
Ken Brown
2809012c8f 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'.
2016-11-12 21:54:45 -05:00
Ken Brown
462804da9c Unbreak the build on Cygwin
* configure.ac (system_malloc) [CYGWIN]: Unset.
2016-11-12 21:45:24 -05:00
Mark Oteiza
3958002f6f ; Fix thinko
* lisp/auth-source.el (auth-source-backend-parse-parameters): Contain
cl-return within cl-dolist.
2016-11-12 19:04:36 -05:00
Mark Oteiza
0588164418 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.
2016-11-11 19:05:23 -05:00
Katsumi Yamaoka
06b7e73b3e * 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.
2016-11-11 08:17:41 +00:00
Katsumi Yamaoka
dd91362565 * lisp/net/shr.el (shr--preferred-image): Ignore whitespace (bug#24893). 2016-11-11 00:27:48 +00:00
Eli Zaretskii
2bb02a3782 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.
2016-11-09 20:45:38 +02:00
Mark Oteiza
86cbd942bc 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.
2016-11-09 12:54:36 -05:00
Michael Albinus
dba9bc9752 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.
2016-11-09 15:34:40 +01:00
Daniel Colascione
112111c4e4 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
2016-11-08 15:26:43 -08:00
Daniel Colascione
06cfaa3dfa 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
2016-11-08 12:37:54 -08:00
Michael Albinus
39c0b8b6b1 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)
2016-11-08 20:45:59 +01:00
Paul Eggert
3b5e6774ed 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.
2016-11-08 09:49:27 -08:00
Paul Eggert
86baa208f8 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.
2016-11-08 08:54:51 -08:00
Mark Oteiza
d3e22a1210 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.
2016-11-07 22:11:39 -05:00
Mark Oteiza
73d47d2219 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.
2016-11-07 21:40:05 -05:00
Eli Zaretskii
8c9cc9f5c0 Improve the tutorial
* etc/tutorials/TUTORIAL: Minor copyedits.  (Bug#24890)
* etc/tutorials/TUTORIAL.he: Follow suit.
2016-11-07 19:55:25 +02:00
Paul Eggert
b6d9613df8 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.
2016-11-06 22:56:36 -08:00
Mark Oteiza
f1d19d1445 ; Reword 2016-11-06 12:09:38 -05:00
Mark Oteiza
949144c279 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.
2016-11-06 11:53:47 -05:00
Paul Eggert
3424c27abb Prefer comments /* like this */ in C code 2016-11-05 20:45:17 -07:00
Johan Bockgård
de75a1154e * lisp/subr.el (copy-tree): Handle vector in cdr. (Bug#24876) 2016-11-05 16:36:12 +01:00
Nick Terrell
f95bf3cd1f 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
2016-11-05 11:42:15 +02:00
Eli Zaretskii
ebaf39e3f2 Enlarge DUMPED_HEAP_SIZE
* src/w32heap.c (DUMPED_HEAP_SIZE) [_WIN64 || WIDE_EMACS_INT]:
Enlarge to 21MB.  Reported by Richard Copley <rcopley@gmail.com>.
2016-11-05 10:21:23 +02:00
Paul Eggert
44c34c2ed3 Update from gnulib
This incorporates:
2016-11-03 intprops: port to older XL C
* lib/intprops.h: Copy from gnulib.
2016-11-04 15:12:28 -07:00
Paul Eggert
a59f4bb5b8 ; Spelling fixes 2016-11-04 15:07:13 -07:00
Paul Eggert
ae0a1a890e 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
2016-11-04 15:02:03 -07:00
Paul Eggert
66b5222c3c ; 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'
2016-11-04 15:02:03 -07:00
Paul Eggert
6a20bd3579 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
2016-11-04 15:01:17 -07:00
Paul Eggert
acae275b27 ; Spelling fixes 2016-11-04 14:50:59 -07:00
Phillip Lord
d8fac734e5 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.
2016-11-04 20:50:55 +00:00
Mark Oteiza
29559361f5 ; Restore nixed comments 2016-11-04 14:22:05 -04:00
Mark Oteiza
2c6920a365 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.
2016-11-04 12:51:04 -04:00
Mark Oteiza
abe594c099 * lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring. 2016-11-04 10:23:46 -04:00
Mark Oteiza
6a4158022e ; Fix warnings 2016-11-04 10:14:01 -04:00
Katsumi Yamaoka
6ccb5f19f6 * 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.
2016-11-04 10:33:26 +00:00
Hong Xu
23570fd995 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.
2016-11-04 12:06:00 +02:00
Eli Zaretskii
f708cb22a1 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)
2016-11-04 11:50:48 +02:00
Tibor Csögör
cd05b1db33 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
2016-11-04 11:24:21 +02:00
Eli Zaretskii
bdc89eb4a6 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)
2016-11-04 11:16:40 +02:00
Vasilij Schneidermann
0adefe7ef9 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'.
2016-11-04 11:09:31 +02:00
Eli Zaretskii
4a0c590cbf 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)
2016-11-04 10:56:11 +02:00
Alexander Gramiak
e5d0efe8fc Improve autoload error reporting
* src/eval.c (Fautoload_do_load): Include the absolute file name
in the error message.
2016-11-04 10:41:21 +02:00
Eli Zaretskii
0221b7a9b5 Mark relocation workarounds with REL_ALLOC
* src/search.c (boyer_moore): Mark workarounds for ralloc.c
relocation of buffer text with "#ifdef REL_ALLOC".
2016-11-04 10:36:02 +02:00
Reuben Thomas
86bec41906 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)
2016-11-03 12:16:56 +00:00