Ikumi Keita [Wed, 1 Jun 2016 00:15:20 +0000 (09:15 +0900)]
Cosmetic change to kinsoku-eol. (tiny change)
* lisp/international/kinsoku.el (kinsoku-eol): Make the
order of characters match with the comments.
Ikumi Keita [Tue, 31 May 2016 23:33:05 +0000 (08:33 +0900)]
Add HIRAGANA ITERATION MARK to japanese-kana-table. (tiny change)
* lisp/language/japan-util.el (japanese-kana-table): Add an
entry for HIRAGANA ITERATION MARK (U+309D).
(japanese-alpha-numeric-table): Fix docstring.
K. Handa [Tue, 31 May 2016 23:07:18 +0000 (08:07 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Tue, 31 May 2016 22:53:03 +0000 (07:53 +0900)]
Fix incomplete handling of translation table in a coding system.
* coding.c (get_translation): New arg NCHARS. Even if TRANS
is an alist, return a character or a vector of character.
(produce_chars): Adjust for the above change.
(consume_chars): Likewise.
Paul Eggert [Tue, 31 May 2016 06:19:54 +0000 (23:19 -0700)]
; Spelling fixes
Stefan Monnier [Tue, 31 May 2016 03:22:49 +0000 (23:22 -0400)]
* lisp/emacs-lisp/autoload.el: Use radix-tree.
(autoload--make-defs-autoload): Rewrite.
(autoload--split-prefixes-1): Remove.
(autoload-def-prefixes-max-entries): Rename from
autoload-defs-autoload-max-size.
(autoload-popular-prefixes): Remove.
(autoload-def-prefixes-max-length): New const.
* lisp/emacs-lisp/radix-tree.el: New file.
Ken Brown [Tue, 31 May 2016 02:22:08 +0000 (22:22 -0400)]
* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Increase.
Paul Eggert [Mon, 30 May 2016 23:09:25 +0000 (16:09 -0700)]
Omit IF_LINT code that no longer seems needed
Nowadays GCC is smarter, or the Emacs code has mutated, or both,
and now is as good a time as any to remove uses of IF_LINT that
now seem to be unnecessary.
* lib-src/emacsclient.c (set_local_socket):
* lib-src/movemail.c (main) [MAIL_USE_MAILLOCK && HAVE_TOUCHLOCK]:
* src/buffer.c (fix_start_end_in_overlays, fix_overlays_before):
* src/casefiddle.c (casify_region):
* src/charset.c (load_charset_map):
* src/coding.c (decode_coding_object, encode_coding_object):
* src/data.c (Fmake_variable_buffer_local, Fmake_local_variable)
(cons_to_unsigned, cons_to_signed):
* src/frame.c (make_frame, x_set_frame_parameters):
* src/keyboard.c (read_event_from_main_queue):
* src/regex.c (regex_compile):
* src/syntax.c (back_comment):
* src/window.c (Frecenter):
* src/xfaces.c (Fx_list_fonts):
Remove IF_LINT that no longer seems necessary.
* src/image.c (png_load_body, jpeg_load_body): Simplify use of IF_LINT.
* src/keyboard.c (read_char): Use IF_LINT (volatile) rather than
a pragma dance to pacify GCC -Wclobbered.
* src/xdisp.c (x_produce_glyphs): Rewrite to avoid need for IF_LINT.
* src/xterm.c (x_connection_closed): Now _Noreturn, which should
mean we do not need IF_LINT any more.
(x_io_error_quitter): Now _Noreturn. Put an 'assume (false)’
at the end, to forestall warnings from older compilers.
Paul Eggert [Mon, 30 May 2016 23:09:25 +0000 (16:09 -0700)]
Port --enable-gcc-warnings to Cygwin, FreeBSD
These platforms have a bug where _Noreturn is empty when 'lint' is
defined. Problem reported by Ken Brown (Bug#23640).
* configure.ac (GCC_LINT): Rename from 'lint'.
* src/conf_post.h (IF_LINT): Use GCC_LINT, not just 'lint’.
Paul Eggert [Mon, 30 May 2016 23:09:25 +0000 (16:09 -0700)]
Update from gnulib
This incorporates:
2016-05-30 Use GCC_LINT, not lint
2016-05-29 secure_getenv: Port to many more platforms.
* doc/misc/texinfo.tex, lib/secure_getenv.c, lib/verify.h:
* m4/secure_getenv.m4: Copy from gnulib.
Stefan Monnier [Mon, 30 May 2016 20:35:00 +0000 (16:35 -0400)]
* lisp/emacs-lisp/pcase.el: Undo last change's spurious changes
Stefan Monnier [Mon, 30 May 2016 20:33:07 +0000 (16:33 -0400)]
* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates): Add `atom'.
Ken Brown [Mon, 30 May 2016 15:36:05 +0000 (11:36 -0400)]
* src/regex.c (IF_LINT): Remove; it’s in conf_post.h
Michael Albinus [Mon, 30 May 2016 13:00:14 +0000 (15:00 +0200)]
Fix Bug#23631 for Tramp
* lisp/net/tramp-adb.el (tramp-adb-handle-file-name-all-completions)
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions)
* lisp/net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Fix caching problems.
* lisp/net/tramp-sh.el (tramp-perl-file-name-all-completions): Simplify.
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files):
Move duplicate deletion ...
(tramp-smb-handle-file-name-all-completions): ... here.
* lisp/net/tramp.el (tramp-handle-file-name-completion):
Handle `completion-ignored-extensions'. (Bug#23631)
* test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
Test also `completion-regexp-list' and `completion-ignored-extensions'.
Stefan Monnier [Mon, 30 May 2016 00:45:43 +0000 (20:45 -0400)]
* lisp/wid-edit.el (link): Remove :follow-link property (bug#22434)
* lisp/recentf.el (recentf-dialog-mode-map): Remove unecessary mapping.
Lars Magne Ingebrigtsen [Sun, 29 May 2016 17:42:36 +0000 (19:42 +0200)]
Fix up remainder of the mml property change
* lisp/gnus/message.el (message-send-mail): Use the renamed
mml-buffer-substring-no-properties-except-some function.
(message-send-news): Ditto.
Lars Ingebrigtsen [Sun, 29 May 2016 15:59:33 +0000 (17:59 +0200)]
Allow preserving EXIF rotations when sending HTML messages
* lisp/gnus/mml.el (mml--possibly-alter-image): Allow image
rotation if you have exiftool installed and the image format
supports it.
(mml-expand-html-into-multipart-related): Use it.
(mml-buffer-substring-no-properties-except-some): Renamed and
copy display properties, too.
Lars Ingebrigtsen [Sun, 29 May 2016 15:16:07 +0000 (17:16 +0200)]
Make message-toggle-image-thumbnails work better
* lisp/gnus/message.el (message-toggle-image-thumbnails): Use
`insert-image' instead of `put-image' to make it possible to
edit the resulting text in a sensible manner.
Alan Mackenzie [Sun, 29 May 2016 12:22:17 +0000 (12:22 +0000)]
Rationalize the use of c-new-BEG and c-new-END in CC Mode.
Remove the now redundant c-old-BOM and c-old-EOM.
* lisp/progmodes/cc-engine.el (c-macro-cache-syntactic): Change and simplify
meaning.
(c-macro-cache-no-comment): New variable.
(c-invalidate-macro-cache, c-beginning-of-macro, c-end-of-macro): incorporate
the new c-macro-cache-no-comment.
(c-syntactic-end-of-macro): Make better use of c-macro-cache-syntactic.
(c-no-comment-end-of-macro): New function.
* lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Add
c-extend-font-lock-region-for-macros to C/C++/ObjC value.
* lisp/progmodes/cc-mode.el (c-old-BOM, c-old-EOM): Remove.
(c-extend-region-for-CPP): Put results in c-new-BEG/END rather than
c-old-BOM/EOM.
(c-extend-font-lock-region-for-macros): Simplify meaning, no longer returning
a cons for the new region, since the function is now called as an after-change
function. No longer adjust c-new-END for the length of inserted/deleted
text. Move the size restrictions on macros to here from
c-neutralize-syntax-in-and-mark-CPP.
(c-neutralize-syntax-in-and-mark-CPP): No longer adjust c-new-BEG/END here.
Use c-no-comment-end-of-macro rather than c-syntactic-end-of-macro to find the
upper boundary to "neutralize" syntactically obtrusive characters.
(c-change-expand-fl-region): Don't set c-new-END to next BOL when already at
one.
Ken Brown [Sat, 28 May 2016 17:56:54 +0000 (13:56 -0400)]
Avoid compiler warnings
* src/cygw32.c (chdir_to_default_directory): Use "void" as
argument list. Use SSDATA instead of SDATA.
* src/unexcw.c (fixup_executable): Use %td as format specifier for
argument of type ptrdiff_t. Use %zu for argument of type size_t.
Eli Zaretskii [Sat, 28 May 2016 15:33:50 +0000 (18:33 +0300)]
Fix 'next-line' and 'previous-line' during keyboard macro
* lisp/simple.el (line-move-visual): Handle the case when point
moves outside of the visible portion of the buffer while executing
a keyboard macro. (Bug#13452) (Bug#23551) (Bug#23555)
Alan Mackenzie [Sat, 28 May 2016 15:17:28 +0000 (15:17 +0000)]
C++ Mode: attribute in class declaration fouls up indentation. Fix!
* lisp/progmodes/cc-engine.el (c-looking-at-decl-block): Add code to skip
back over noise clauses and attribute clauses.
* lisp/progmodes/cc-langs.el (c-paren-nontype-key): New language variable.
Ken Olum [Sat, 28 May 2016 10:46:22 +0000 (13:46 +0300)]
Prevent locked-file errors in Rmail
* lisp/mail/rmail.el (rmail-get-new-mail-1): Lock file before
calling 'rmail-insert-inbox-text'. Unlock if
'rmail-insert-inbox-text' doesn't modify buffer.
(rmail-insert-inbox-text): Remove lock-checking code. (Bug#17706)
Michael Albinus [Sat, 28 May 2016 10:14:58 +0000 (12:14 +0200)]
Sync with Tramp repository.
* lisp/net/tramp-adb.el (tramp-adb-handle-start-file-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-start-file-process)
* lisp/net/tramp-smb.el (tramp-smb-handle-start-file-process):
Create BUFFER if it doesn't exist. Reported by Nikolay
Kudryavtsev <nikolay.kudryavtsev@gmail.com>.
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-attributes)
(tramp-gvfs-file-attributes-with-gvfs-ls-regexp)
(tramp-gvfs-file-attributes-with-gvfs-info-regexp): New defconst.
(tramp-gvfs-get-directory-attributes)
(tramp-gvfs-get-root-attributes)
(tramp-gvfs-get-file-attributes): New defun.
(tramp-gvfs-handle-file-attributes)
(tramp-gvfs-handle-file-name-all-completions): Use them.
(tramp-gvfs-handle-file-directory-p): Use `file-truename'.
(tramp-gvfs-maybe-open-connection): Set :noquery flag for process.
(tramp-gvfs-send-command): Add locale settings to `process-environment'.
(top): Suppress D-Bus error messages during zeroconf initialization.
* lisp/net/tramp.el (tramp-unknown-id-string)
(tramp-unknown-id-integer): New defconst.
(tramp-check-cached-permissions)
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes)
* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls)
(tramp-convert-file-attributes, tramp-get-remote-uid)
(tramp-get-remote-gid): Use them.
* lisp/net/tramp-sh.el (tramp-display-escape-sequence-regexp):
Rename from `tramp-color-escape-sequence-regexp'.
(tramp-sh-handle-insert-directory)
(tramp-convert-file-attributes): Adapt callees.
(tramp-device-escape-sequence-regexp): New defconst.
(tramp-wait-for-output): Use it. Reported by Matthías Páll
Gissurarson <icetritlo@gmail.com>.
* lisp/net/tramp-smb.el (tramp-smb-handle-file-name-all-completions):
Simplify.
* test/lisp/net/tramp-tests.el (tramp-test26-process-file)
(tramp-test28-shell-command):
Use `tramp-display-escape-sequence-regexp'.
Paul Eggert [Sat, 28 May 2016 01:16:24 +0000 (18:16 -0700)]
Don’t document declare-function internals
Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00618.html
* doc/lispref/functions.texi (Declaring Functions):
* lisp/subr.el (declare-function):
* lisp/emacs-lisp/bytecomp.el:
(byte-compile-macroexpand-declare-function):
Document as (fn file &optional arglist fileonly)
even though it is really (fn file &rest args).
Paul Eggert [Sat, 28 May 2016 01:11:44 +0000 (18:11 -0700)]
* src/puresize.h (BASE_PURESIZE): Increase it some more.
Glenn Morris [Fri, 27 May 2016 23:41:07 +0000 (19:41 -0400)]
* src/puresize.h (BASE_PURESIZE): Increase it by a little bit.
Glenn Morris [Fri, 27 May 2016 23:22:29 +0000 (19:22 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Tweak previous to
avoid build failure.
Paul Eggert [Fri, 27 May 2016 20:55:07 +0000 (13:55 -0700)]
Port to platforms where rlim_max < 0
* src/emacs.c (main): Do not treat a negative rlim_max as a limit;
this can happen if a special value like RLIM_INFINITY is negative.
Paul Eggert [Fri, 27 May 2016 20:39:34 +0000 (13:39 -0700)]
Robustify stack-size calculation
* src/emacs.c: Include getpagesize.h.
(main): Check for integer overflow when computing stack size.
Round new rlim_cur to pagesize boundary on all platforms, as this
is easy and would have prevented Bug#23622. If setrlimit
fails, use current limit to determine re_max_failures.
Paul Eggert [Fri, 27 May 2016 19:45:21 +0000 (12:45 -0700)]
; Add comment for declare-function
Ken Brown [Fri, 27 May 2016 18:55:34 +0000 (14:55 -0400)]
Adjust filenotify-tests on Cygwin
* test/lisp/filenotify-tests.el (file-notify--test-timeout):
Remove special case for Cygwin.
(file-notify-test07-backup): Update expected results on Cygwin.
Paul Eggert [Fri, 27 May 2016 16:46:44 +0000 (09:46 -0700)]
Improve define-function omitted-arg documentation
* doc/lispref/functions.texi (Declaring Functions):
* lisp/subr.el (declare-function):
Be clearer when documenting omitted args for define-function.
Stefan Monnier [Fri, 27 May 2016 16:34:33 +0000 (12:34 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add docstring to accessors.
Stefan Monnier [Fri, 27 May 2016 16:33:57 +0000 (12:33 -0400)]
* lisp/subr.el (definition-prefixes): Expand docstring
* lisp/emacs-lisp/autoload.el (autoload--split-prefixes):
Remove unused function.
Phillip Lord [Fri, 27 May 2016 15:49:12 +0000 (16:49 +0100)]
Fix broken viper deactivation
* lisp/emulation/viper.el (viper--deactivate-advice-list): Destructure
args to advice-remove.
(viper--advice-add): Use cons not list.
Addresses bug#23625
Mark Oteiza [Fri, 27 May 2016 01:47:18 +0000 (21:47 -0400)]
Preserve buffer point in windows by default (Bug#4041).
* doc/lispref/windows.texi: Mention new default.
* etc/NEWS: Mention new default.
* lisp/window.el (switch-to-buffer-preserve-window-point): Default to t.
Paul Eggert [Fri, 27 May 2016 02:10:26 +0000 (19:10 -0700)]
Fix byte-compiler pacification for declare-function
Problem reported by Michael Heerdegen in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00590.html
* lisp/emacs-lisp/bytecomp.el:
(byte-compile-macroexpand-declare-function):
Revert signature to previous value.
* lisp/subr.el (declare-function): Change signature to
match the reverted signature used in the byte compiler.
Paul Eggert [Thu, 26 May 2016 20:49:26 +0000 (13:49 -0700)]
Update texinfo.tex
This fixes Bug#23611 in a different (and presumably better) way.
* doc/misc/texinfo.tex: Update from gnulib.
Paul Eggert [Thu, 26 May 2016 20:38:28 +0000 (13:38 -0700)]
Pacify 'make check-declare'
Paul Eggert [Thu, 26 May 2016 20:20:29 +0000 (13:20 -0700)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Paul Eggert [Thu, 26 May 2016 20:02:07 +0000 (13:02 -0700)]
Repair damage from emacs-25 merge
* test/lisp/character-fold-tests.el:
Remove, as it was renamed to test/lisp/char-fold-tests.el.
* test/lisp/emulation/viper-tests.el:
Rename from test/automated/viper-tests.el.
Paul Eggert [Thu, 26 May 2016 19:55:06 +0000 (12:55 -0700)]
Merge from origin/emacs-25
c3489d0 * lisp/w32-fns.el (set-message-beep, w32-get-locale-info) (w3...
a4d882c Correct old cell name unbinding when renaming cell.
6c12c53 Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into...
0be6725 Document problem: slow screen refresh on missing font.
853b9b9 * admin/admin.el (add-release-logs): Basic check of existing ...
5fa80cf * build-aux/gitlog-to-emacslog: Handle empty generated Change...
3c79e51 * admin/admin.el (add-release-logs): Generate ChangeLog if ne...
42275df * doc/misc/texinfo.tex: Revert previous change (Bug#23611).
3f4a9d9 * admin/authors.el (authors): First update the ChangeLog.
897fb6f ; 'Changes from the pre-25.1 API' copyedits
825ca25 Rename vc-stay-local back to vc-cvs-stay-local
4efb3e8 * doc/emacs/files.texi (Comparing Files): * doc/emacs/trouble...
b995d1e * doc/misc/eww.texi (Advanced): Fix xref.
2e589c0 Fix cross-references between manuals
f3d2ded * doc/misc/vhdl-mode.texi (Sample Init File): Rename node to ...
906c810 ; * admin/release-process: Move etc/HISTORY from here... ; * ...
bea1b65 * admin/admin.el (add-release-logs): Also update etc/HISTORY.
503e752 ; * CONTRIBUTE: Fix a typo.
fbfd478 Avoid aborting due to errors in arguments of 'set-face-attrib...
bdfbe6d ; * admin/release-process: Copyedits.
44a6aed ; * test/automated/data-tests.el: Standardize license notice.
c33ed39 ; * test/automated/viper-tests.el: Standardize license notice.
df4a14b Add automated test for viper-tests.el
c0139e3 Fix viper undo breakage from undo-boundary changes
920d76c Fix reference to obsolete fn ps-eval-switch
18a9bc1 Do not trash symlinks to init file
2671179 Don't print the "decomposition" line for control chars in wha...
869092c Bring back xterm pasting with middle mouse
5ab0830 Provide workaround for xftfont rendering problem
c9f7ec7 * lisp/desktop.el: Disable restore frameset if in non-graphic...
30989a0 Mention GTK+ problems in etc/PROBLEMS
421e3c4 * lisp/emacs-lisp/package.el (package-refresh-contents):
dadfc30 Revert "epg: Add a way to detect gpg1 executable for tests"
e41a5cb Avoid errors with Czech and Slovak input methods
d4ae6d7 epg: Add a way to detect gpg1 executable for tests
ebc3a94 * lisp/emacs-lisp/package.el: Fix free variable warnings.
6e71295 * lisp/emacs-lisp/package.el (package--with-response-buffer):
c45d9f6 Improve documentation of 'server-name'
3b5e38c Modernize ASLR advice in etc/PROBLEMS
1fe1e0a * lisp/char-fold.el: Rename from character-fold.el.
Eli Zaretskii [Thu, 26 May 2016 19:48:35 +0000 (22:48 +0300)]
Avoid byte-compiler warnings due to 'declare-function'
* lisp/w32-fns.el (set-message-beep, w32-get-locale-info)
(w32-get-valid-locale-ids):
* lisp/progmodes/js.el (ido-mode): Specify arglist in
'declare-function' forms, to avoid byte-compiler warnings.
Glenn Morris [Thu, 26 May 2016 19:46:06 +0000 (15:46 -0400)]
* lisp/info.el (Info-default-directory-list): Don't check /share,info.
No-one puts info pages there. If /share does exist, it's likely to
contain remote file systems where access could be slow.
; Ref eg https://bugs.debian.org/786707
Paul Eggert [Thu, 26 May 2016 19:41:39 +0000 (12:41 -0700)]
; Merge from origin/emacs-25
The following commit was skipped:
a35826d Bump version to 25.0.94
Paul Eggert [Thu, 26 May 2016 19:41:38 +0000 (12:41 -0700)]
Merge from origin/emacs-25
2d76405 etc/AUTHORS: Update the AUTHORS file
Paul Eggert [Thu, 26 May 2016 19:41:38 +0000 (12:41 -0700)]
; Merge from origin/emacs-25
The following commit was skipped:
a8a2384 ; Auto-commit of loaddefs files.
Paul Eggert [Thu, 26 May 2016 19:41:38 +0000 (12:41 -0700)]
Merge from origin/emacs-25
06cb28f Fix bug#23462: Crash when iconifying frame on OS X.
Paul Eggert [Thu, 26 May 2016 19:41:38 +0000 (12:41 -0700)]
; Merge from origin/emacs-25
The following commit was skipped:
9ca5dbf Avoid shrinking windows with Gtk+ 3.20.3
Paul Eggert [Thu, 26 May 2016 19:41:37 +0000 (12:41 -0700)]
Merge from origin/emacs-25
939eb75 Fix bug in default setting of 'ps-paper-type'
Glenn Morris [Thu, 26 May 2016 18:57:29 +0000 (14:57 -0400)]
* lisp/w32-fns.el (set-message-beep, w32-get-locale-info)
(w32-get-valid-locale-ids): Improve declarations.
Glenn Morris [Thu, 26 May 2016 18:48:17 +0000 (14:48 -0400)]
* lisp/info.el (Info-default-directory-list): Remove obsolete suffixes.
; * etc/NEWS: Mention this.
Michael Albinus [Thu, 26 May 2016 17:57:13 +0000 (19:57 +0200)]
Fix Bug#23614.
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
Let-bind `process-coding-system-alist' in order to suppress
the value for "cmdproxy".
* lisp/net/tramp.el (tramp-encoding-shell):
`w32-shell-name' is a function.
(tramp-encoding-command-switch)
(tramp-encoding-command-interactive): Use `w32-shell-dos-semantics'.
* test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
Suppress some tests on MS Windows. (Bug#23614)
Stephen Berman [Thu, 26 May 2016 09:30:29 +0000 (11:30 +0200)]
hl-line.el: Fix flickering of highlighted line (bug#23510)
* lisp/hl-line.el (hl-line-maybe-unhighlight)
(global-hl-line-highlight-all)
(global-hl-line-maybe-unhighlight): New functions.
(hl-line-overlay-buffer): New variable.
(hl-line-mode): Use it. Replace hl-line-unhighlight on
pre-command-hook by hl-line-maybe-unhighlight on
post-command-hook, to prevent hl-line from flickering.
Adjust document string.
(global-hl-line-mode): Use global-hl-line-highlight-all to
simultaneously highlight the current line in all live windows.
Replace global-hl-line-unhighlight on pre-command-hook by
global-hl-line-maybe-unhighlight on post-command-hook, to
prevent global-hl-line from flickering. Remove
global-hl-line-unhighlight from change-major-mode-hook on
disabling the mode. Adjust document string.
Vincent Belaïche [Thu, 26 May 2016 09:03:21 +0000 (11:03 +0200)]
Correct old cell name unbinding when renaming cell.
Bug is to unbind old cell names when renaming a cell with
'makunbound'. when the old cell name is of A1 type, then
'kill-local-variable' must be used instead, so that only the current
spreadsheet is affected. When the old cell name is a renamed cell,
then 'ses--unbind-cell-name' must be used in order to remove the old
name from the name hashmap.
* ses.el (ses-rename-cell): check consistency of cell symbol from
text-property and from array object. Instead of 'makunbound', use
either 'ses--unbind-cell-name' or 'kill-local-variable' depending on
whether the cell old name is a named cell or an A1 type cell
Stefan Monnier [Thu, 26 May 2016 02:58:18 +0000 (22:58 -0400)]
Make autoloads populate a new definition-prefixes table
* lisp/subr.el (definition-prefixes): New hash table.
(register-definition-prefixes): New function.
* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): New var.
(autoload--split-prefixes-1, autoload--split-prefixes)
(autoload--make-defs-autoload): New functions.
(autoload-defs-autoload-max-size, autoload-popular-prefixes): New vars.
(autoload-generate-file-autoloads): Obey autoload-compute-prefixes.
(update-directory-autoloads): Don't touch loaddefs.el if the set of
autoloads hasn't changed (i.e. if only the timestamp would change).
* lisp/loadup.el: Purify definition-prefixes.
* lisp/w32-fns.el: Keep name space clean.
(w32-set-default-process-coding-system): Rename from
set-default-process-coding-system.
(w32-set-system-coding-system): Rename from set-w32-system-coding-system.
Vincent Belaïche [Wed, 25 May 2016 21:44:18 +0000 (23:44 +0200)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Vincent Belaïche [Wed, 25 May 2016 21:42:54 +0000 (23:42 +0200)]
Document problem: slow screen refresh on missing font.
See discussion of bug#22519 for more on this.
Glenn Morris [Wed, 25 May 2016 18:45:05 +0000 (14:45 -0400)]
* admin/admin.el (add-release-logs): Basic check of existing ChangeLog.
Glenn Morris [Wed, 25 May 2016 18:35:44 +0000 (14:35 -0400)]
* build-aux/gitlog-to-emacslog: Handle empty generated ChangeLog.
This is relevant for M-x add-release-logs right after M-x authors.
Glenn Morris [Wed, 25 May 2016 18:17:25 +0000 (14:17 -0400)]
* admin/admin.el (add-release-logs): Generate ChangeLog if needed.
Paul Eggert [Wed, 25 May 2016 17:39:14 +0000 (10:39 -0700)]
* doc/misc/texinfo.tex: Revert previous change (Bug#23611).
Glenn Morris [Wed, 25 May 2016 16:47:13 +0000 (12:47 -0400)]
* admin/authors.el (authors): First update the ChangeLog.
* admin/make-tarball.txt: Related updates.
Dmitry Gutov [Wed, 25 May 2016 01:01:12 +0000 (04:01 +0300)]
; 'Changes from the pre-25.1 API' copyedits
Dmitry Gutov [Wed, 25 May 2016 00:49:35 +0000 (03:49 +0300)]
Rename vc-stay-local back to vc-cvs-stay-local
* lisp/vc/vc-cvs.el (vc-cvs-stay-local): Rename back from
vc-stay-local (bug#19548). Improve the docstring.
(vc-cvs-stay-local-p): Update accordingly.
Ken Brown [Tue, 24 May 2016 20:12:03 +0000 (16:12 -0400)]
Allow network-stream-tests to work for out-of-tree builds
* test/lisp/net/network-stream-tests.el
(network-stream-tests--datadir): New defconst.
(make-tls-server): Use it.
Ken Brown [Tue, 24 May 2016 19:52:41 +0000 (15:52 -0400)]
Fix failing echo-server-nowait test
* test/lisp/net/network-stream-tests.el (echo-server-nowait):
Specify IPv4 for the client, to match the family of the server.
(Bug#23606)
Glenn Morris [Tue, 24 May 2016 18:58:27 +0000 (14:58 -0400)]
* doc/emacs/files.texi (Comparing Files):
* doc/emacs/trouble.texi (Sending Patches): Fix external xrefs.
Glenn Morris [Tue, 24 May 2016 18:37:54 +0000 (14:37 -0400)]
* doc/misc/eww.texi (Advanced): Fix xref.
Eli Zaretskii [Tue, 24 May 2016 18:24:45 +0000 (21:24 +0300)]
Fix cross-references between manuals
* doc/misc/viper.texi (Viper Specials):
* doc/misc/url.texi (Tramp):
* doc/misc/sem-user.texi (Smart Jump):
* doc/lispintro/emacs-lisp-intro.texi (Finding More):
* doc/misc/efaq.texi (Replacing text across multiple files): Fix
cross-references between manuals. (Bug#23612)
* doc/lispintro/emacs-lisp-intro.texi (etags): Node deleted: no
longer relevant to Emacs Lisp programming.
Glenn Morris [Tue, 24 May 2016 17:26:04 +0000 (13:26 -0400)]
* doc/misc/vhdl-mode.texi (Sample Init File): Rename node to avoid ".".
Glenn Morris [Tue, 24 May 2016 17:00:57 +0000 (13:00 -0400)]
; * admin/release-process: Move etc/HISTORY from here...
; * admin/make-tarball.txt: ... to here.
Glenn Morris [Tue, 24 May 2016 16:51:00 +0000 (12:51 -0400)]
* admin/admin.el (add-release-logs): Also update etc/HISTORY.
Eli Zaretskii [Tue, 24 May 2016 16:06:20 +0000 (19:06 +0300)]
; * CONTRIBUTE: Fix a typo.
Eli Zaretskii [Tue, 24 May 2016 16:04:16 +0000 (19:04 +0300)]
Avoid aborting due to errors in arguments of 'set-face-attribute'
* src/xfaces.c (Finternal_set_lisp_face_attribute): Check the
FRAME argument before using it. This avoids gratuitous aborts in
Emacs built with --enable-checking when the luser was unlucky
enough to get the argument list in wrong order.
Glenn Morris [Tue, 24 May 2016 15:59:09 +0000 (08:59 -0700)]
; * admin/release-process: Copyedits.
Ken Brown [Tue, 24 May 2016 15:33:24 +0000 (11:33 -0400)]
Allow shr-tests to work for out-of-tree builds
* test/lisp/net/shr-tests.el (shr-tests--datadir): New defconst.
(shr-test, rendering): Use it.
Ken Brown [Tue, 24 May 2016 15:05:09 +0000 (11:05 -0400)]
Update allowable arguments for open-network-stream
* src/coding.c (Ffind_operation_coding_system): Allow t as a
target for open-network-stream. (Bug #23540)
Dmitry Gutov [Tue, 24 May 2016 10:09:32 +0000 (13:09 +0300)]
Make js-mode's syntax highlighting work again
* lisp/progmodes/js.el (js-mode): Fix the assigned
font-lock-defaults value (bug#23603).
Stefan Monnier [Tue, 24 May 2016 00:25:28 +0000 (20:25 -0400)]
* lisp/progmodes/cc-mode.el: Add minor comments
(c-change-expand-fl-region): Mark args as unused.
Stefan Monnier [Tue, 24 May 2016 00:09:33 +0000 (20:09 -0400)]
* lisp/url/url-http.el: Use lexical-binding
(url-http-simple-after-change-function): Use buffer-size rather than `nd'.
(url-http-wait-for-headers-change-function): Remove unused var
`content-length'.
(url-http): Remove unused vars `host' and `port'.
Stefan Monnier [Mon, 23 May 2016 23:57:46 +0000 (19:57 -0400)]
* lisp/widget.el (define-widget): Use `declare' (which does work now).
(widget-plist-member): Mark as obsolete.
Stefan Monnier [Mon, 23 May 2016 19:12:24 +0000 (15:12 -0400)]
* lisp/image.el: Use lexical-binding
(image-scaling-factor, imagemagick-types-inhibit)
(imagemagick-enabled-types): Remove redundant :group.
(image--get-image): Apply de-Morgan and use car-safe.
(image-compute-scaling-factor): Use the argument.
Glenn Morris [Mon, 23 May 2016 16:51:44 +0000 (12:51 -0400)]
* lisp/image.el (image--get-image): Remove nonsensical code.
; 1) put-image does not add a display property to its overlay
; 2) it does add a display text property
; 3) an overlay is not a cons whose car is 'image
Glenn Morris [Mon, 23 May 2016 16:48:19 +0000 (12:48 -0400)]
* lisp/image.el (image--get-image): Avoid requiring a library for
one trivial operation.
Phillip Lord [Mon, 23 May 2016 15:59:24 +0000 (16:59 +0100)]
; * test/automated/data-tests.el: Standardize license notice.
Paul Eggert [Mon, 23 May 2016 15:56:42 +0000 (08:56 -0700)]
Don’t use only last protocol from getaddrinfo
Problem reported by Ken Brown in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00483.html
* src/process.c (conv_addrinfo_to_lisp): New function.
(connect_network_socket): Arg is now a list of addrinfos, not
merely IP addresses. All uses changed. Use protocol from
each addrinfo.
(Fmake_network_process): Accumulate protocols into addrinfos
rather than just using the last one found.
(check_for_dns): Accumulate protocols here, too.
* src/process.h (struct Lisp_Process): Remove ai_protocol;
no longer needed.
Glenn Morris [Mon, 23 May 2016 15:43:26 +0000 (08:43 -0700)]
; * test/automated/viper-tests.el: Standardize license notice.
Paul Eggert [Mon, 23 May 2016 15:13:03 +0000 (08:13 -0700)]
Fix seq requirement that broke bootstrap
* lisp/image.el (image--get-image): Require seq here, not at the
top level, to avoid ‘(require seq) while preparing to dump’ while
bootstrapping. Suggested by Tino Calancha in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00477.html
Phillip Lord [Mon, 23 May 2016 09:39:26 +0000 (10:39 +0100)]
Add automated test for viper-tests.el
Phillip Lord [Sat, 21 May 2016 09:06:12 +0000 (10:06 +0100)]
Fix viper undo breakage from undo-boundary changes
* lisp/simple.el (undo-auto-disable-boundaries): New variable
* lisp/emulation/viper-init.el (viper-undo-in-complex-command,
viper-undo-needs-adjustment): Rename
variable to reflect new purpose,
(viper-buffer-undo-list-mark): Remove
* lisp/emulation/viper-cmd.el (viper-set-complex-command-for-undo):
Add undo using `undo-boundary', disable default undo-boundary
addition.
* lisp/emulation/viper-cmd.el
(viper-complete-complex-command-for-undo,viper-adjust-undo):
Change function name, remove old undo list manipulation.
* lisp/emulation/viper-cmd.el (viper-undo,viper-repeat,
viper-change-state-to-vi,viper-change-state):
Update for function name change.
Addresses Bug #22295
Kaushal Modi [Mon, 23 May 2016 00:48:33 +0000 (17:48 -0700)]
Fix reference to obsolete fn ps-eval-switch
lpr-eval-switch is functionally the same as ps-eval-switch,
which was obsoleted in
2cdeb903c57126d3ad5f0cbd72e182584b76ee29.
So use that instead (Bug#19717).
* lisp/printing.el (pr-switches): Use lpr-eval-switch instead of
ps-eval-switch.
Paul Eggert [Mon, 23 May 2016 00:29:58 +0000 (17:29 -0700)]
Do not trash symlinks to init file
If the user’s init file is a symbolic link, do not break the link
when initializing the package system. Problem reported by Jackson
Hamilton (Bug#23050).
* lisp/emacs-lisp/package.el (package--ensure-init-file):
Bind find-file-visit-truename when visiting the init file, and
save and restore the buffer name the way cus-edit does in a
similar situation (Bug#454).
Glenn Morris [Mon, 23 May 2016 00:20:48 +0000 (17:20 -0700)]
; * test/lisp/mouse-tests.el: Standardize license notice.
Alan Mackenzie [Sun, 22 May 2016 21:02:34 +0000 (21:02 +0000)]
Don't print the "decomposition" line for control chars in what-cursor-position
This is a temporary workaround for bug #23594, where the decomposition line
for linefeed corrupted the display on a Linux virtual terminal.
* lisp/descr-text.el (describe-char): Remove `decomposition' from the list of
character code properties printed for control characters.
Paul Eggert [Sun, 22 May 2016 20:38:53 +0000 (13:38 -0700)]
Bring back xterm pasting with middle mouse
Problem reported by Jan Synáček.
Solution suggested by Stefan Monnier (Bug#23519).
* lisp/isearch.el (isearch-mode-map): Add a binding for xterm-paste.
(xterm--pasted-text): New decl.
(isearch-xterm-paste): New function.
* lisp/term/xterm.el (xterm--pasted-text): New function,
taken from xterm-paste internals.
(xterm-paste): Use it.
Nicolas Petton [Sun, 22 May 2016 19:51:11 +0000 (21:51 +0200)]
Add missing dependencies to seq.el
* lisp/emacs-lisp/find-func.el:
* lisp/ibuffer.el:
* lisp/image.el: Require seq.
Alp Aker [Sun, 22 May 2016 18:14:19 +0000 (14:14 -0400)]
* src/process.c (SOCK_NONBLOCK): Fix typo.
Eli Zaretskii [Sun, 22 May 2016 16:20:28 +0000 (19:20 +0300)]
Provide workaround for xftfont rendering problem
* src/xftfont.c (syms_of_xftfont) <xft-font-ascent-descent-override>:
New variable.
(xftfont_open): Use it to work around problems with rendering some
fonts. (Bug#23360)