]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 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.

8 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.

8 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.

8 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)

8 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.

8 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

8 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.

8 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.

8 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)

8 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)

8 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).

8 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.

8 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

8 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

8 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.

8 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".

8 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.

8 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

8 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.

8 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.

8 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

8 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.

8 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

8 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'.

8 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):

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

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

8 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.

8 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.

8 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)

8 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.

8 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.

8 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.

8 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.

8 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’.

8 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.

8 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

8 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'.

8 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

8 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).

8 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'.

8 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.

8 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.

8 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).

8 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

8 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.

8 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.

8 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.

8 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)

8 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.

8 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.

8 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)

8 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.

8 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.

8 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)

8 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'.

8 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)

8 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).

8 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.

8 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.

8 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.

8 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.

8 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.

8 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

8 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.

8 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.

8 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.

8 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.

8 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

8 years ago* src/dired.c (Ffile_name_all_completions): Doc fix. (Bug#23631)
Eli Zaretskii [Fri, 27 May 2016 13:06:57 +0000 (16:06 +0300)]
* src/dired.c (Ffile_name_all_completions): Doc fix.  (Bug#23631)

8 years agoPreserve buffer point in windows by default (Bug#4041).
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.

8 years agoFix infloop in 'number-sequence'
Eli Zaretskii [Fri, 27 May 2016 09:17:15 +0000 (12:17 +0300)]
Fix infloop in 'number-sequence'

* lisp/subr.el (number-sequence): Avoid overflow leading to an
infloop.  (Bug#23627)

* test/automated/subr-tests.el (number-sequence-test): New test.

8 years ago; Spelling and punctuation fixes in comments
Paul Eggert [Fri, 27 May 2016 02:21:56 +0000 (19:21 -0700)]
; Spelling and punctuation fixes in comments

8 years agoFix byte-compiler pacification for declare-function
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.

8 years ago* lisp/emacs-lisp/find-func.el (find-function-library):
Glenn Morris [Thu, 26 May 2016 23:50:54 +0000 (19:50 -0400)]
* lisp/emacs-lisp/find-func.el (find-function-library):

Update for symbol-function no longer erroring.  (Bug#23626)

8 years agoUpdate texinfo.tex
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.

8 years agoPacify 'make check-declare'
Paul Eggert [Thu, 26 May 2016 20:38:28 +0000 (13:38 -0700)]
Pacify 'make check-declare'

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Paul Eggert [Thu, 26 May 2016 20:20:29 +0000 (13:20 -0700)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoRepair damage from emacs-25 merge
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.

8 years agoMerge from origin/emacs-25
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.

8 years agoAvoid byte-compiler warnings due to 'declare-function'
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.

8 years ago* lisp/info.el (Info-default-directory-list): Don't check /share,info.
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

8 years ago; Merge from origin/emacs-25
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

8 years agoMerge from origin/emacs-25
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

8 years ago; Merge from origin/emacs-25
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.

8 years agoMerge from origin/emacs-25
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.

8 years ago; Merge from origin/emacs-25
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

8 years agoMerge from origin/emacs-25
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'

8 years ago* lisp/w32-fns.el (set-message-beep, w32-get-locale-info)
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.

8 years ago* lisp/info.el (Info-default-directory-list): Remove obsolete suffixes.
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.

8 years agoFix Bug#23614.
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)

8 years agohl-line.el: Fix flickering of highlighted line (bug#23510)
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.

8 years agoCorrect old cell name unbinding when renaming cell.
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

8 years agoMake autoloads populate a new definition-prefixes table
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.

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
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

8 years agoDocument problem: slow screen refresh on missing font.
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.

8 years ago* admin/admin.el (add-release-logs): Basic check of existing ChangeLog.
Glenn Morris [Wed, 25 May 2016 18:45:05 +0000 (14:45 -0400)]
* admin/admin.el (add-release-logs): Basic check of existing ChangeLog.

8 years ago* build-aux/gitlog-to-emacslog: Handle empty generated 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.

8 years ago* admin/admin.el (add-release-logs): Generate ChangeLog if needed.
Glenn Morris [Wed, 25 May 2016 18:17:25 +0000 (14:17 -0400)]
* admin/admin.el (add-release-logs): Generate ChangeLog if needed.

8 years ago* doc/misc/texinfo.tex: Revert previous change (Bug#23611).
Paul Eggert [Wed, 25 May 2016 17:39:14 +0000 (10:39 -0700)]
* doc/misc/texinfo.tex: Revert previous change (Bug#23611).