]> code.delx.au - gnu-emacs/log
gnu-emacs
7 years agoRemove ‘ert-with-function-mocked’ macro in favour of ‘cl-letf’ macro
Michal Nazarewicz [Tue, 7 Jun 2016 20:32:59 +0000 (22:32 +0200)]
Remove ‘ert-with-function-mocked’ macro in favour of ‘cl-letf’ macro

* lisp/emacs-lisp/ert-x.el (ert-with-function-mocked): Remove macro
in favour of ‘cl-letf’ macro which is more generic.  All existing
uses are migrated accordingly.  The macro has not been included in
an official release yet so it should be fine to delete it.

7 years ago* test/lisp/emacs-lisp/package-tests.el
Glenn Morris [Wed, 8 Jun 2016 16:47:08 +0000 (12:47 -0400)]
* test/lisp/emacs-lisp/package-tests.el
(package-test-update-archives-async): Try re-enabling on hydra.

7 years ago* src/fileio.c (auto_save_error): Omit unused local.
Paul Eggert [Wed, 8 Jun 2016 07:35:51 +0000 (00:35 -0700)]
* src/fileio.c (auto_save_error): Omit unused local.

7 years agoSimplify overflow check via INT_SUBTRACT_WRAPV
Paul Eggert [Wed, 8 Jun 2016 07:35:11 +0000 (00:35 -0700)]
Simplify overflow check via INT_SUBTRACT_WRAPV

* src/editfns.c (check_tm_member): Simplify integer overflow check.

7 years agoTry to avoid hangs and stray procs in network-stream-tests. (Bug#23560)
Glenn Morris [Wed, 8 Jun 2016 03:50:35 +0000 (20:50 -0700)]
Try to avoid hangs and stray procs in network-stream-tests.  (Bug#23560)

* test/lisp/net/network-stream-tests.el (connect-to-tls-ipv4-wait)
(connect-to-tls-ipv4-nowait, connect-to-tls-ipv6-nowait):
Ensure gnutls-serv process gets killed.
(echo-server-nowait, connect-to-tls-ipv4-nowait):
Limit the amount of time we might wait.

7 years agoReduce allout.el's pollution of the namespace.
Glenn Morris [Wed, 8 Jun 2016 01:34:51 +0000 (21:34 -0400)]
Reduce allout.el's pollution of the namespace.

* lisp/allout.el (allout-set-regexp): Rename from set-allout-regexp.
Keep old name as obsolete alias.
(allout-produce-mode-menubar-entries, allout-nullify-prefix-data)
(allout-solicit-char-in-string)
(allout-count-trailing-whitespace-region, allout-regexp-sans-escapes):
Rename to add an "allout-" prefix.

7 years ago* configure.ac (emacs_config_features): Add CANNOT_DUMP.
Glenn Morris [Wed, 8 Jun 2016 01:31:08 +0000 (21:31 -0400)]
* configure.ac (emacs_config_features): Add CANNOT_DUMP.

7 years agoMisc small webjump updates.
Glenn Morris [Wed, 8 Jun 2016 01:29:30 +0000 (21:29 -0400)]
Misc small webjump updates.

* lisp/net/webjump.el (webjump): Add custom group.
(webjump-sample-sites): Make it a constant.
Remove explicit, old list of GNU ftp mirrors.
(webjump-state-to-postal-alist): Make it a constant.
(webjump-sites): Make it a defcustom.
(webjump-to-iwin): Update for changed remote service.

7 years agoDo not hard-code port for package test server. (Bug#23708)
Glenn Morris [Wed, 8 Jun 2016 01:25:20 +0000 (21:25 -0400)]
Do not hard-code port for package test server.  (Bug#23708)

* test/lisp/emacs-lisp/package-resources/package-test-server.py:
Do not hard-code port.
* test/lisp/emacs-lisp/package-tests.el (package-test-update-archives-async):
Update for the above change.

7 years ago* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
Tino Calancha [Wed, 8 Jun 2016 00:35:24 +0000 (20:35 -0400)]
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case.  (Bug#23617)

7 years ago* src/fileio.c (auto_save_error): Use display-warning. (Bug#23703)
Glenn Morris [Tue, 7 Jun 2016 23:31:29 +0000 (19:31 -0400)]
* src/fileio.c (auto_save_error): Use display-warning.  (Bug#23703)

7 years ago* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Tino Calancha [Tue, 7 Jun 2016 23:24:51 +0000 (19:24 -0400)]
* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Fix non-file-visiting-buffer case.  (Bug#22678)

7 years agoPort --enable-gcc-warnings to clang 3.7.0
Paul Eggert [Tue, 7 Jun 2016 23:18:02 +0000 (16:18 -0700)]
Port --enable-gcc-warnings to clang 3.7.0

* configure.ac: Add -Wno-tautological-compare to avoid bogus
warnings about 0 <= rlim.rlim_max.  Remove flags that no longer
seem to be needed, at least in Fedora 23 x86-64.

7 years agoUse __builtin_assume_aligned on untagged Lisp vals
Paul Eggert [Tue, 7 Jun 2016 22:41:51 +0000 (15:41 -0700)]
Use __builtin_assume_aligned on untagged Lisp vals

* src/conf_post.h (__has_builtin, __builtin_assume_aligned):
New macros, for compilers not already defining them.
(__has_builtin___builtin_assume_aligned): New macro.
* src/lisp.h (lisp_h_XUNTAG): Use __builtin_assume_aligned.
This shrinks text space by 0.2% on x86-64 with GCC 6.1.

7 years ago* lisp/help-fns.el (describe-function-1): Avoid reporting advised
Glenn Morris [Tue, 7 Jun 2016 20:44:48 +0000 (16:44 -0400)]
* lisp/help-fns.el (describe-function-1): Avoid reporting advised
aliases as the type of their targets.

7 years ago* lisp/simple.el (process-menu-mode, list-processes--refresh):
Tino Calancha [Tue, 7 Jun 2016 19:06:38 +0000 (15:06 -0400)]
* lisp/simple.el (process-menu-mode, list-processes--refresh):
Include PID.  (Bug#21725)

7 years ago; * etc/NEWS: Fix a typo.
Glenn Morris [Tue, 7 Jun 2016 17:55:33 +0000 (13:55 -0400)]
; * etc/NEWS: Fix a typo.

7 years agoMerge from origin/emacs-25
Paul Eggert [Tue, 7 Jun 2016 16:34:27 +0000 (09:34 -0700)]
Merge from origin/emacs-25

6e3adf8 Fix crash in syntax.c after GC
973ce5a Improve squiggly heredoc support in non-SMIE Ruby mode
9d5cceb Fix doc string quoting
0b33a23 Fix mouse dragging of vertical dividers with scroll bars on l...
a5d05f4 * etc/PROBLEMS: Mention the link-time problems on FreeBSD 11.

7 years ago; Merge from origin/emacs-25
Paul Eggert [Tue, 7 Jun 2016 16:34:27 +0000 (09:34 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

9c28e70 ; Auto-commit of loaddefs files.

7 years agoMerge from origin/emacs-25
Paul Eggert [Tue, 7 Jun 2016 16:34:27 +0000 (09:34 -0700)]
Merge from origin/emacs-25

604f656 * test/automated/viper-tests.el (viper-test-undo-kmacro): Del...
20eb531 * lisp/mail/footnote.el (footnote-mode): Fix doc typo.
a7a2244 * doc/misc/smtpmail.texi (Encryption): Fix 2012-12-22 typo.
07bd972 * lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table): Fix...

7 years agoFix crash in syntax.c after GC
Paul Eggert [Tue, 7 Jun 2016 16:28:49 +0000 (09:28 -0700)]
Fix crash in syntax.c after GC

Problem reported by Vincent Belaïche (Bug#23704).
* src/syntax.c (skip_chars): Recompute pointers into the
buffer after every call to update_syntax_table_forward,
as it can GC.

7 years agoImprove squiggly heredoc support in non-SMIE Ruby mode
Dmitry Gutov [Tue, 7 Jun 2016 01:06:33 +0000 (04:06 +0300)]
Improve squiggly heredoc support in non-SMIE Ruby mode

* lisp/progmodes/ruby-mode.el (ruby-parse-partial): Support
squiggly heredocs here, too (port from upstream).

7 years agoUse standard Unicode names for Thai, Lao
Paul Eggert [Mon, 6 Jun 2016 17:43:10 +0000 (10:43 -0700)]
Use standard Unicode names for Thai, Lao

* lisp/language/lao-util.el, lisp/language/thai-util.el:
Don’t override standard Unicode character name (Bug#23698).

7 years ago* lisp/man.el (Man-reference-regexp, Man-default-man-entry):
Glenn Morris [Mon, 6 Jun 2016 17:04:43 +0000 (13:04 -0400)]
* lisp/man.el (Man-reference-regexp, Man-default-man-entry):
Handle U+2010 hyphen at eol, as used when LANG=en_US.utf8.

7 years agoFix doc string quoting
Stephen Berman [Mon, 6 Jun 2016 16:29:17 +0000 (09:29 -0700)]
Fix doc string quoting

* lisp/files.el (shell-quote-wildcard-pattern):
* lisp/progmodes/vhdl-mode.el (vhdl-mode):
* lisp/subr.el (replace-regexp-in-string):
* lisp/view.el (view-mode):
* src/nsfns.m (syms_of_nsfns):
* src/syntax.c (Fbackward_prefix_chars):
Fix quoting problems in doc strings (Bug#23696).

7 years agoSome fixes in filenotify-tests.el for cygwin
Michael Albinus [Mon, 6 Jun 2016 16:25:28 +0000 (18:25 +0200)]
Some fixes in filenotify-tests.el for cygwin

* test/lisp/filenotify-tests.el (file-notify--test-timeout):
Reintroduce value for cygwin, it's needed on slow systems.
(file-notify--wait-for-events): Move up definition.
(file-notify--test-no-descriptors): Use `file-notify--wait-for-events'.
(file-notify--test-with-events-check, file-notify--test-with-events)
(file-notify-test08-watched-file-in-watched-dir):
Use :random rather than `random.
(file-notify-test06-many-events): Do not skip for cygwin.

7 years ago* src/casefiddle.c (Fupcase_region): Add arg ‘region-noncontiguous-p’.
Juri Linkov [Sun, 5 Jun 2016 21:23:21 +0000 (00:23 +0300)]
* src/casefiddle.c (Fupcase_region): Add arg ‘region-noncontiguous-p’.

If non-nil, operate on multiple chunks.  (Bug#23655)

* src/search.c (Freplace_match): Use Qnil for new arg of Fupcase_region.

7 years ago* lisp/wdired.el (wdired-next-line, wdired-previous-line): Add "^"
Juri Linkov [Sun, 5 Jun 2016 21:16:17 +0000 (00:16 +0300)]
* lisp/wdired.el (wdired-next-line, wdired-previous-line): Add "^"

to interactive spec to handle shift-selection.  (Bug#23642)

7 years agoImprove robustness of filenotify-tests.el (Bug#23618)
Michael Albinus [Sun, 5 Jun 2016 17:49:16 +0000 (19:49 +0200)]
Improve robustness of filenotify-tests.el (Bug#23618)

* test/lisp/filenotify-tests.el (file-notify--test-no-descriptors)
(file-notify--test-no-descriptors-explainer)
(file-notify--test-cleanup-p): New defuns.
(file-notify--test-cleanup): Don't check for
`file-notify--test-event' anymore, that's done in
`file-notify--test-no-descriptors'.
(file-notify--test-with-events-check)
(file-notify--test-with-events): Handle the `random' marker.
(file-notify--test-with-events-explainer): Improve readability.
(file-notify-test00-availability)
(file-notify-test01-add-watch, file-notify-test02-events)
(file-notify-test03-autorevert)
(file-notify-test04-file-validity)
(file-notify-test05-dir-validity)
(file-notify-test06-many-events, file-notify-test07-backup)
(file-notify-test08-watched-file-in-watched-dir)
(file-notify-test09-sufficient-resources): Check also
`file-notify--test-cleanup-p'.
(file-notify-test04-file-validity)
(file-notify-test05-dir-validity): Use `ignore' as handler.
(file-notify-test05-dir-validity)
(file-notify-test06-many-events): Delete directory finally.
(file-notify-test08-watched-file-in-watched-dir): Add `random' marker.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Sun, 5 Jun 2016 11:49:55 +0000 (20:49 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoman.el: Fix links on hyphenated words (bug#23647)
Stephen Berman [Sun, 5 Jun 2016 11:14:44 +0000 (13:14 +0200)]
man.el: Fix links on hyphenated words (bug#23647)

* lisp/man.el (Man-bgproc-sentinel): Make links work on
hyphenated words.

7 years agoFix mouse dragging of vertical dividers with scroll bars on left (Bug#23690)
Martin Rudalics [Sun, 5 Jun 2016 09:50:47 +0000 (11:50 +0200)]
Fix mouse dragging of vertical dividers with scroll bars on left (Bug#23690)

* lisp/mouse.el (mouse-drag-line): With scroll bars on the left
adjust trailing edge of window on the left when dragging the
vertical divider of the mode line.  (Bug#23690)

7 years agoAdd category 'j' to more characters.
K. Handa [Sun, 5 Jun 2016 07:23:02 +0000 (16:23 +0900)]
Add category 'j' to more characters.

* lisp/international/characters.el: Add category 'j' (Japanese)
to characters in japanese-jisx0213.2004-1.

7 years agoisearch-edit-string resumes multi isearches
Tino Calancha [Sat, 4 Jun 2016 22:06:12 +0000 (01:06 +0300)]
isearch-edit-string resumes multi isearches

* lisp/isearch.el (with-isearch-suspended): Remember and restore
multi-isearch variables.  (Bug#21663)

7 years ago* etc/PROBLEMS: Mention the link-time problems on FreeBSD 11.
Eli Zaretskii [Sat, 4 Jun 2016 15:45:46 +0000 (18:45 +0300)]
* etc/PROBLEMS: Mention the link-time problems on FreeBSD 11.

(Bug#23641)

7 years agoFix Eshell display when RTL characters are involved
Eli Zaretskii [Sat, 4 Jun 2016 15:27:49 +0000 (18:27 +0300)]
Fix Eshell display when RTL characters are involved

* lisp/eshell/esh-mode.el (eshell-mode): Set
'bidi-paragraph-direction' to 'left-to-right'.  (Bug#23652)

7 years agoPort angle-bracket TZ settings to MS-Windows
Paul Eggert [Thu, 2 Jun 2016 04:00:58 +0000 (21:00 -0700)]
Port angle-bracket TZ settings to MS-Windows

* doc/lispref/os.texi (Time Zone Rules): Document MS-Windows
lack of support for numeric time zone abbreviations.
* src/w32.c (sys_putenv): Convert angle-bracket TZ syntax
to MS-compatible syntax if possible, and to "ZZZ" otherwise.
Problem reported by Kazuhiro Ito (Bug#23600).

7 years agoAvoid delving into Git internals for version
Paul Eggert [Wed, 1 Jun 2016 20:25:09 +0000 (13:25 -0700)]
Avoid delving into Git internals for version

* lisp/loadup.el (exec-path): Set it to nil later, so that
emacs-repository-get-version can invoke git commands in the PATH.
* lisp/version.el (emacs-repository--version-git-1): Remove.
(emacs-repository-get-version): Let Git do it rather than
delving into Git internals.

7 years ago* lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Expand less
Stefan Monnier [Wed, 1 Jun 2016 18:54:40 +0000 (14:54 -0400)]
* lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Expand less

7 years agoFix emacs-repository-get-version with packed .git
Paul Eggert [Wed, 1 Jun 2016 17:28:43 +0000 (10:28 -0700)]
Fix emacs-repository-get-version with packed .git

* lisp/version.el (emacs-repository-get-version):
Parse .git/packed-refs if it exists.
Problem reported by Martin Rudalics in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00554.html

7 years agoMinor change in tramp.texi
Michael Albinus [Wed, 1 Jun 2016 14:43:20 +0000 (16:43 +0200)]
Minor change in tramp.texi

* doc/misc/tramp.texi (Password handling): Do not discuss
anymore how to get password-cache.el.  It is bundled with
Emacs.

7 years agoCorrect fontification and indentation of C++'s "constexpr" expressions
Alan Mackenzie [Wed, 1 Jun 2016 13:31:47 +0000 (13:31 +0000)]
Correct fontification and indentation of C++'s "constexpr" expressions

* lisp/progmodes/cc-langs.el (c-type-modifier-kwds): Remove "constexpr".
(c-modifier-kwds): Add "constexpr".

7 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Jun 2016 11:18:41 +0000 (07:18 -0400)]
; Auto-commit of loaddefs files.

7 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Jun 2016 10:19:17 +0000 (06:19 -0400)]
; Auto-commit of loaddefs files.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Wed, 1 Jun 2016 00:16:32 +0000 (09:16 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoCosmetic change to kinsoku-eol. (tiny change)
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.

7 years agoAdd HIRAGANA ITERATION MARK to japanese-kana-table. (tiny change)
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.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Tue, 31 May 2016 23:07:18 +0000 (08:07 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoFix incomplete handling of translation table in a coding system.
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.

7 years ago* test/automated/viper-tests.el (viper-test-undo-kmacro):
Glenn Morris [Tue, 31 May 2016 22:24:07 +0000 (18:24 -0400)]
* test/automated/viper-tests.el (viper-test-undo-kmacro):
Delete temp-file at end.

7 years ago* lisp/mail/footnote.el (footnote-mode): Fix doc typo.
Glenn Morris [Tue, 31 May 2016 19:05:20 +0000 (15:05 -0400)]
* lisp/mail/footnote.el (footnote-mode): Fix doc typo.

7 years ago* doc/misc/smtpmail.texi (Encryption): Fix 2012-12-22 typo.
Glenn Morris [Tue, 31 May 2016 18:58:05 +0000 (14:58 -0400)]
* doc/misc/smtpmail.texi (Encryption): Fix 2012-12-22 typo.

7 years ago* lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table):
Glenn Morris [Tue, 31 May 2016 18:50:52 +0000 (14:50 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table):
Fix typo.  (Bug#23654)

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 31 May 2016 18:01:02 +0000 (20:01 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoImprove robustness for out-of-band copy in Tramp
Michael Albinus [Tue, 31 May 2016 18:00:21 +0000 (20:00 +0200)]
Improve robustness for out-of-band copy in Tramp

* lisp/net/tramp-adb.el (tramp-adb-execute-adb-command)
* lisp/net/tramp-cmds.el (tramp-append-tramp-buffers)
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Cosmetic changes.

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Use local `default-directory'.  Simplify command to send.
Don't check return code, this was already done in
`tramp-process-actions'.
(tramp-get-inline-coding): Don't set `default-directory'.

* lisp/net/tramp.el (tramp-action-out-of-band):
Throw `out-of-band-failed'.
(tramp-process-actions): Handle `out-of-band-failed'.
(tramp-call-process, tramp-call-process-region):
Use local `default-directory'.

7 years agoMerge from origin/emacs-25
Paul Eggert [Tue, 31 May 2016 15:07:41 +0000 (08:07 -0700)]
Merge from origin/emacs-25

788c9b6 ; Spelling fix
25c4a30 * lisp/recentf.el (recentf-dialog-mode-map): Remove follow-li...
0992ec3 Correct cl-flet usage (Bug#22317)
50caae3 Release MH-E manual version 8.6
602bb40 Update MH-E's documentation about HTML renderers
89018f0 Fx the we->the typo
845ee57 Restore frames into the current display by default
ee28b4c * lisp/recentf.el (recentf-open-files-item): Quick fix for (b...
01c3cd1 etc/TODO: Remove out-of-place issue
5e18486 Clarify doc string of 'file-name-sans-extension'
bffda22 Fix the MSDOS build
f907f98 * lisp/progmodes/elisp-mode.el (elisp-function-argstring): Ca...
1a2ffd0 * src/dired.c (Ffile_name_all_completions): Doc fix.  (Bug#23...
f7ffc4b Fix infloop in 'number-sequence'
4ab2673 ; Spelling and punctuation fixes in comments
71c152e * lisp/emacs-lisp/find-func.el (find-function-library):

7 years ago; Spelling fixes
Paul Eggert [Tue, 31 May 2016 06:19:54 +0000 (23:19 -0700)]
; Spelling fixes

7 years ago; Spelling fix
Paul Eggert [Tue, 31 May 2016 06:16:41 +0000 (23:16 -0700)]
; Spelling fix

7 years ago* lisp/emacs-lisp/autoload.el: Use radix-tree.
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.

7 years ago* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Increase.
Ken Brown [Tue, 31 May 2016 02:22:08 +0000 (22:22 -0400)]
* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Increase.

7 years ago* lisp/recentf.el (recentf-dialog-mode-map): Remove follow-link (bug#22434)
Stefan Monnier [Tue, 31 May 2016 00:46:24 +0000 (20:46 -0400)]
* lisp/recentf.el (recentf-dialog-mode-map): Remove follow-link (bug#22434)

7 years agoCorrect cl-flet usage (Bug#22317)
Bill Wohler [Mon, 30 May 2016 23:49:37 +0000 (16:49 -0700)]
Correct cl-flet usage (Bug#22317)

* mh-compat.el: Rename mh-cl-flet to mh-flet and convert alias to
macro using patch from Katsumi Yamaoka <yamaoka@jpl.org>.
* mh-thread.el (mh-thread-set-tables):
* mh-show.el (mh-gnus-article-highlight-citation):
* mh-mime.el (mh-display-with-external-viewer):
(mh-mime-display, mh-press-button, mh-push-button):
(mh-display-emphasis): Call mh-flet instead of mh-cl-flet.

7 years agoRelease MH-E manual version 8.6
Bill Wohler [Mon, 30 May 2016 23:15:32 +0000 (16:15 -0700)]
Release MH-E manual version 8.6

* doc/misc/mh-e.texi (VERSION, EDITION, UPDATED, UPDATE-MONTH):
Update for release 8.6.

7 years agoUpdate MH-E's documentation about HTML renderers
Mike Kupfer [Mon, 30 May 2016 23:13:10 +0000 (16:13 -0700)]
Update MH-E's documentation about HTML renderers

* doc/misc/mh-e.texi (HTML): Remove the footnote with the minimum Gnus
version (we are no longer trying to support multiple Emacs
releases). Sort the table of HTML renderers by name (the previous
ordering was based on a 10-year-old survey). Add shr and gnus-w3m to
the table. Remove the entry for w3 (no longer available).  Update
existing entries so that they are more consistent about what features
are discussed, and to reflect recent testing (Debian 8). Small tweaks
to existing text.

7 years agoOmit IF_LINT code that no longer seems needed
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.

7 years agoPort --enable-gcc-warnings to Cygwin, FreeBSD
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’.

7 years agoUpdate from gnulib
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.

7 years ago* lisp/emacs-lisp/pcase.el: Undo last change's spurious changes
Stefan Monnier [Mon, 30 May 2016 20:35:00 +0000 (16:35 -0400)]
* lisp/emacs-lisp/pcase.el: Undo last change's spurious changes

7 years ago* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates): Add `atom'.
Stefan Monnier [Mon, 30 May 2016 20:33:07 +0000 (16:33 -0400)]
* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates): Add `atom'.

7 years ago* src/regex.c (IF_LINT): Remove; it’s in conf_post.h
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

7 years agoFx the we->the typo
Dmitry Gutov [Mon, 30 May 2016 14:51:41 +0000 (17:51 +0300)]
Fx the we->the typo

* doc/emacs/trouble.texi (Sending Patches):
Fix the typo (bug#23657).

7 years agoFix Bug#23631 for Tramp
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'.

7 years agoRestore frames into the current display by default
Paul Eggert [Mon, 30 May 2016 05:45:33 +0000 (22:45 -0700)]
Restore frames into the current display by default

* lisp/desktop.el (desktop-restore-in-current-display):
Default to t, not nil (Bug#23604).
* etc/NEWS: Mention the change.

7 years ago* lisp/wid-edit.el (link): Remove :follow-link property (bug#22434)
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.

7 years ago* lisp/recentf.el (recentf-open-files-item): Quick fix for (bug#22434).
Stefan Monnier [Mon, 30 May 2016 00:32:32 +0000 (20:32 -0400)]
* lisp/recentf.el (recentf-open-files-item): Quick fix for (bug#22434).

7 years agoetc/TODO: Remove out-of-place issue
Stefan Monnier [Mon, 30 May 2016 00:29:47 +0000 (20:29 -0400)]
etc/TODO: Remove out-of-place issue

7 years agoFix up remainder of the mml property change
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.

7 years agoAllow preserving EXIF rotations when sending HTML messages
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.

7 years agoMake message-toggle-image-thumbnails work better
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.

7 years agoClarify doc string of 'file-name-sans-extension'
Eli Zaretskii [Sun, 29 May 2016 14:59:59 +0000 (17:59 +0300)]
Clarify doc string of 'file-name-sans-extension'

* lisp/files.el (file-name-sans-extension, file-name-extension):
Clarify in the doc strings what is the extension, and which
leading period doesn't count.  (Bug#23643)

7 years agoRationalize the use of c-new-BEG and c-new-END in CC Mode.
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.

7 years agoAvoid compiler warnings
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.

7 years agoFix 'next-line' and 'previous-line' during keyboard macro
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)

7 years agoC++ Mode: attribute in class declaration fouls up indentation. Fix!
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.

7 years agoFix the MSDOS build
Eli Zaretskii [Sat, 28 May 2016 12:27:47 +0000 (15:27 +0300)]
Fix the MSDOS build

* msdos/sed1v2.inp (PAXCTL_dumped, PAXCTL_notdumped): Define to
empty, and remove the lines which use them in recipes, as that
causes weird error message from Make and breaks the MSDOS build.

7 years agoPrevent locked-file errors in Rmail
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)

7 years agoSync with Tramp repository.
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'.

7 years ago* lisp/progmodes/elisp-mode.el (elisp-function-argstring): Call
Andreas Schwab [Sat, 28 May 2016 08:45:07 +0000 (10:45 +0200)]
* lisp/progmodes/elisp-mode.el (elisp-function-argstring): Call
substitute-command-keys to undo help--docstring-quote. (Bug#23634)

7 years agoDon’t document declare-function internals
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).

7 years ago* src/puresize.h (BASE_PURESIZE): Increase it some more.
Paul Eggert [Sat, 28 May 2016 01:11:44 +0000 (18:11 -0700)]
* src/puresize.h (BASE_PURESIZE): Increase it some more.

7 years ago* src/puresize.h (BASE_PURESIZE): Increase it by a little bit.
Glenn Morris [Fri, 27 May 2016 23:41:07 +0000 (19:41 -0400)]
* src/puresize.h (BASE_PURESIZE): Increase it by a little bit.

7 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Tweak previous to
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.

7 years agoPort to platforms where rlim_max < 0
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.

7 years agoRobustify stack-size calculation
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.

7 years ago; Add comment for declare-function
Paul Eggert [Fri, 27 May 2016 19:45:21 +0000 (12:45 -0700)]
; Add comment for declare-function

7 years agoAdjust filenotify-tests on Cygwin
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.

7 years agoImprove define-function omitted-arg documentation
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.

7 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add docstring to accessors.
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.

7 years ago* lisp/subr.el (definition-prefixes): Expand docstring
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.

7 years agoFix broken viper deactivation
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