]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoMerge from origin/emacs-24
Glenn Morris [Tue, 2 Jun 2015 06:16:40 +0000 (23:16 -0700)]
Merge from origin/emacs-24

8b5f2f4 * doc/emacs/emacs.texi: Update the ISBN of the Emacs manual.

8 years ago; Merge from origin/emacs-24
Glenn Morris [Tue, 2 Jun 2015 06:16:39 +0000 (23:16 -0700)]
; Merge from origin/emacs-24

The following commits were skipped:

82e2ce9 Bump Emacs version to 24.5.50.
866501e * lisp/ChangeLog: Remove a duplicate
8272c1d lisp/ldefs-boot.el: Update for the 24.5 release
7cad9d5 Update the 24.5 release date in all ChangeLog files

8 years ago* admin/gitmerge.el (gitmerge-commit-message):
Glenn Morris [Tue, 2 Jun 2015 06:16:03 +0000 (23:16 -0700)]
* admin/gitmerge.el (gitmerge-commit-message):

Exclude "skipped" messages from ChangeLog.

8 years agoSync with Tramp repository
Michael Albinus [Mon, 1 Jun 2015 19:11:24 +0000 (21:11 +0200)]
Sync with Tramp repository

* lisp/net/tramp.el (tramp-message): Dump connection buffer error
messages.
(tramp-handle-make-auto-save-file-name): When calling
`make-auto-save-file-name' internally, make sure it uses Unix-like
behavior, not Windows-like behavior.

* lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Add a timeout for
the local case, because "chown" might fail on w32.

* lisp/net/trampver.el (tramp-repository-get-version): Don't run
for XEmacs.

8 years agoMS-Windows followup for batch stdout/stderr output changes
Eli Zaretskii [Mon, 1 Jun 2015 15:17:28 +0000 (18:17 +0300)]
MS-Windows followup for batch stdout/stderr output changes

* lisp/international/mule-cmds.el (set-locale-environment): In
batch mode, use console codepages for keyboard and terminal
encoding.  (Bug#20545)

8 years agoUpdate .gitattributes for DOS EOL files
Eli Zaretskii [Mon, 1 Jun 2015 15:01:49 +0000 (18:01 +0300)]
Update .gitattributes for DOS EOL files

* .gitattributes: Use "whitespace=cr-at-eol" for files with DOS
CRLF end-of-line format.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Jun 2015 10:21:38 +0000 (06:21 -0400)]
; Auto-commit of loaddefs files.

8 years agoAvoid grave accent quoting in stderr diagnostics
Paul Eggert [Mon, 1 Jun 2015 06:52:09 +0000 (23:52 -0700)]
Avoid grave accent quoting in stderr diagnostics

A few Emacs diagnostics go directly to stderr, and so can't easily
contain curved quotes (as non-UTF-8 locales might mishandle them).
Instead of bothering to add support for this rarity, reword the
diagnostics so that they don't use grave accent to quote.
* src/alloc.c (mark_memory): Fix comment.
* src/buffer.c (init_buffer):
* src/dispnew.c (init_display):
* src/emacs.c (main, sort_args):
* src/lread.c (dir_warning):
* src/term.c (init_tty):
* src/unexmacosx.c (unexec):
* src/xfns.c (select_visual):
* src/xterm.c (cvt_string_to_pixel, x_io_error_quitter):
Reword stderr diagnostics to avoid quoting `like this'.
* src/unexmacosx.c: Include errno.h.
* src/xfns.c (select_visual): Encode value for locale.

8 years agoTreat batch stdout/stderr like standard display
Paul Eggert [Mon, 1 Jun 2015 03:04:05 +0000 (20:04 -0700)]
Treat batch stdout/stderr like standard display

Calls like (print FOO) could generate improperly encoded or
hard-to-read output if FOO contains characters outside the system
locale.  Fix this by treating batch stdout and stderr like
interactive standard display, when it comes to transliterating and
encoding characters (Bug#20545).
* doc/emacs/mule.texi (Communication Coding):
* doc/lispref/display.texi (Active Display Table):
* doc/lispref/nonascii.texi (Locales):
* etc/NEWS:
* src/coding.c (syms_of_coding):
* src/dispnew.c (syms_of_display):
Document this.
* src/print.c: Include disptab.h.
(printchar_to_stream): New function, with much of the guts of the
old Fexternal_debugging_output, except this one also uses the
standard display table.
(printchar, strout, Fexternal_debugging_output): Use it.

8 years ago* src/emacs.c (syms_of_emacs) <system-configuration-features>: Doc fix.
Glenn Morris [Sun, 31 May 2015 23:27:36 +0000 (16:27 -0700)]
* src/emacs.c (syms_of_emacs) <system-configuration-features>: Doc fix.

8 years agoRemove unused DEFSYMs
Paul Eggert [Sun, 31 May 2015 18:47:35 +0000 (11:47 -0700)]
Remove unused DEFSYMs

Remove DEFSYMs that aren't used at the C level.  Also:
* src/decompress.c (Qzlib_dll):
* src/font.c (Qunicode_sip):
* src/frame.c (Qtip_frame):
* src/ftfont.c (Qserif):
* src/gnutls.c (Qgnutls_dll):
* src/xml.c (Qlibxml2_dll):
Move from here ...
* src/w32fns.c (syms_of_w32fns): ... to here,
as these are used only on MS-Windows.

8 years agoUse another default value for tramp-histfile-override
Michael Albinus [Sun, 31 May 2015 11:08:06 +0000 (13:08 +0200)]
Use another default value for tramp-histfile-override

* lisp/net/tramp-sh.el (tramp-histfile-override):
Use ".tramp_history" as default.

Fixes: debbugs:#20446
8 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 31 May 2015 10:23:02 +0000 (06:23 -0400)]
; Auto-commit of ChangeLog files.

8 years agoMake sure there's no explicit tag name
Dmitry Gutov [Sun, 31 May 2015 00:55:30 +0000 (03:55 +0300)]
Make sure there's no explicit tag name

* lisp/progmodes/etags.el (tag-implicit-name-match-p): Make sure
there's no explicit tag name (bug#20629).

8 years agoRemove format2
Paul Eggert [Sat, 30 May 2015 22:29:41 +0000 (15:29 -0700)]
Remove format2

* src/editfns.c, src/lisp.h (format2): Remove.
It is more trouble than it's worth, now that we have CALLN.
This is just a minor refactoring.
* src/buffer.c (Fkill_buffer):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/fileio.c (barf_or_query_if_file_exists):
Adjust to format2 going away.

8 years agoDon't misencode C-generated messages
Paul Eggert [Sat, 30 May 2015 18:17:56 +0000 (11:17 -0700)]
Don't misencode C-generated messages

Also, be more consistent about calls to 'Fmessage' vs 'message'.
* src/alloc.c (Fgc_status):
Prefer AUTO_STRING to build_string for Fmessage call.
* src/data.c (Fmake_variable_buffer_local)
(Fmake_local_variable, Fmake_variable_frame_local):
* src/doc.c (store_function_docstring):
Use Fmessage, not message, since the argument can contain
non-ASCII characters, and this can cause the resulting message
to be incorrectly encoded for the current environment.
* src/fns.c (maybe_resize_hash_table):
* src/xselect.c (x_clipboard_manager_save_all):
Use message, not Fmessage, since Fmessage's power isn't needed here.
* src/process.c (Fmake_network_process): Reword message to avoid %s.
* src/xdisp.c (vmessage): Document restrictions on message contents.
(message_nolog) [false]: Remove unused code.

8 years agoUse \r rather than ^M in string literals
Paul Eggert [Sat, 30 May 2015 16:43:57 +0000 (09:43 -0700)]
Use \r rather than ^M in string literals

This is less likely to cause problems on platforms that
use CRLF (or CR!) termination for lines.

8 years agoUpdate .gitattributes to match current sources
Paul Eggert [Sat, 30 May 2015 16:33:41 +0000 (09:33 -0700)]
Update .gitattributes to match current sources

http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00879.html
* .gitattributes: Accommodate tests that insist on DOS format.
Remove test/automated/data/decompress/foo-gzipped.
Add etc/e/eterm-color.

8 years agoDocument 'face-ignored-fonts'
Eli Zaretskii [Sat, 30 May 2015 12:59:39 +0000 (15:59 +0300)]
Document 'face-ignored-fonts'

* doc/emacs/mule.texi (Modifying Fontsets): Document
face-ignored-fonts.  (Bug#20628)

8 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 30 May 2015 12:02:51 +0000 (15:02 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

8 years agoAdd etags test for the new -Q option
Eli Zaretskii [Sat, 30 May 2015 12:01:49 +0000 (15:01 +0300)]
Add etags test for the new -Q option

* test/etags/ETAGS.good_1, test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3, test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5, test/etags/CTAGS.good: Adjust to
test-case changes below.
* test/etags/ETAGS.good_6: New file.

* test/etags/cp-src/x.cc: New file.
* test/etags/Makefile (CPSRC): Add x.cc.
(check): Add one more test, for -Q.

8 years agoUse list for the tags completion table, not obarray
Dmitry Gutov [Sat, 30 May 2015 11:35:55 +0000 (14:35 +0300)]
Use list for the tags completion table, not obarray

* lisp/progmodes/etags.el (etags-tags-completion-table): Return a
list instead of an obarray
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00876.html).
(tags-completion-table): Combine those lists.
(tags-completion-table): Update the docstring.

8 years agoRestore EOL format testing in etags
Eli Zaretskii [Sat, 30 May 2015 11:00:06 +0000 (14:00 +0300)]
Restore EOL format testing in etags

* test/etags/ETAGS.good_1, test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3, test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5, test/etags/CTAGS.good: Adjust to
test-case changes below.
* test/etags/html-src/algrthms.html: Convert back to DOS EOL format.
* test/etags/cp-src/c.C (B): Add back stray CR character.
* test/etags/c-src/dostorture.c: Add back.
* test/etags/Makefile (CSRC): Add back c-src/dostorture.c.

8 years agoDeclare Emacs on MS-Windows to be DPI-aware
Vitaly Takmazov [Sat, 30 May 2015 10:28:53 +0000 (13:28 +0300)]
Declare Emacs on MS-Windows to be DPI-aware

* nt/emacs-x86.manifest (asmv3:windowsSettings): Add dpiAware.
* nt/emacs-x64.manifest (asmv3:windowsSettings): Add dpiAware.
This avoids Windows entering compatibility mode for Emacs,
which causes fonts to look less nice.

Copyright-paperwork-exempt: yes

8 years agoImprove Tramp traces.
Michael Albinus [Sat, 30 May 2015 09:54:32 +0000 (11:54 +0200)]
Improve Tramp traces.

* lisp/net/trampver.el (tramp-repository-get-version): New defun.

* lisp/net/tramp.el (tramp-debug-message): Use it.

8 years agobackup-buffer minor reworking of internals
Paul Eggert [Sat, 30 May 2015 06:17:28 +0000 (23:17 -0700)]
backup-buffer minor reworking of internals

* lisp/files.el (backup-buffer): Rework to avoid a couple of
unused locals inadvertently introduced in the previous change.

8 years agobackup-buffer now reports .emacs.d/%backup% ills
Paul Eggert [Sat, 30 May 2015 06:02:07 +0000 (23:02 -0700)]
backup-buffer now reports .emacs.d/%backup% ills

* lisp/files.el (backup-buffer): If the write to .emacs.d/%backup%
fails due to disk space exhaustion or whatever, do not pretend
that it succeeded.  More generally, do a better job of checking
for I/O failures, and limit the scope of the condition-case to
just the operations where file errors should be caught and ignored
(Bug#20595).  Also, don't bother trying to delete later backups if
an earlier deletion fails, as this is a sign of trouble and it's
better to stop when there's trouble.

8 years agocopy-file now truncates output after writing
Paul Eggert [Sat, 30 May 2015 05:55:25 +0000 (22:55 -0700)]
copy-file now truncates output after writing

* src/fileio.c (Fcopy_file): Truncate output after writing rather
than before.  This is more likely to work than truncation before
writing, if the file system is out of space or the user is over
disk quota (Bug#20595).  Also, check for read errors.

8 years ago* lisp/emacs-lisp/package.el: Don't load from parent dir
Artur Malabarba [Fri, 29 May 2015 20:41:53 +0000 (21:41 +0100)]
* lisp/emacs-lisp/package.el: Don't load from parent dir

(package-load-all-descriptors): Don't load descriptors from
directories above the package directories.

8 years agoMerge from gnulib
Paul Eggert [Fri, 29 May 2015 19:42:59 +0000 (12:42 -0700)]
Merge from gnulib

This incorporates the following (Bug#20681):
2015-05-29 acl-permissions: Fix build on Mac OS X and older AIX
2015-05-29 acl-permissions: Fix build on Solaris and Cygwin
* lib/set-permissions.c: Copy from gnulib.

8 years agoImprove Tramp traces.
Michael Albinus [Fri, 29 May 2015 17:45:59 +0000 (19:45 +0200)]
Improve Tramp traces.

* lisp/net/tramp.el (tramp-call-process-region): New defun.

* lisp/net/tramp-sh.el (tramp-get-inline-coding): Use it.

8 years ago* test/automated/vc-tests.el: Try enabling tests on hydra.nixos.org.
Glenn Morris [Fri, 29 May 2015 15:33:11 +0000 (08:33 -0700)]
* test/automated/vc-tests.el: Try enabling tests on hydra.nixos.org.

8 years ago* src/xfns.c (x_set_menu_bar_lines): Fix calls to x_clear_area.
Wolfgang Jenkner [Fri, 29 May 2015 13:14:27 +0000 (15:14 +0200)]
* src/xfns.c (x_set_menu_bar_lines): Fix calls to x_clear_area.

The signature was changed in the cairo branch, merged on 2015-05-23.
This oversight broke compiling only the non-toolkit X version.

8 years ago* doc/emacs/emacs.texi: Update the ISBN of the Emacs manual.
Nicolas Petton [Fri, 29 May 2015 10:36:29 +0000 (12:36 +0200)]
* doc/emacs/emacs.texi: Update the ISBN of the Emacs manual.

8 years ago* doc/lispref/os.texi: Update initial-buffer-choice docs.
Samer Masterson [Fri, 29 May 2015 07:54:45 +0000 (00:54 -0700)]
* doc/lispref/os.texi: Update initial-buffer-choice docs.

8 years ago* test/automated/vc-tests.el (vc-test-rcs04-checkout-model):
Glenn Morris [Fri, 29 May 2015 07:12:15 +0000 (00:12 -0700)]
* test/automated/vc-tests.el (vc-test-rcs04-checkout-model):

Mark as an expected failure.

8 years agoChange package test to look for curved quotes
Paul Eggert [Fri, 29 May 2015 04:45:55 +0000 (21:45 -0700)]
Change package test to look for curved quotes

* test/automated/package-test.el (package-test-describe-package)
(package-test-signed): Search for curved single quotes as well as
for grave accent and apostrophe.

8 years agognus-art.el: Re-revert last change
Katsumi Yamaoka [Thu, 28 May 2015 23:56:39 +0000 (23:56 +0000)]
gnus-art.el: Re-revert last change

* lisp/gnus/gnus-art.el (gnus-button-alist): Re-revert last change.
cf. <http://news.gmane.org/group/gmane.emacs.devel/thread=186896>

8 years agoShow files when `initial-buffer-choice' is non-nil
Samer Masterson [Thu, 28 May 2015 21:30:31 +0000 (14:30 -0700)]
Show files when `initial-buffer-choice' is non-nil

* startup.el (command-line-1): When Emacs is given a file as an
argument and `initial-buffer-choice' is non-nil, display both the file
and `initial-buffer-choice'.  For more than one file, show
`initial-buffer-choice' and *Buffer List*.  Refactor display-changing
commands out of the command line arg parser.
(initial-buffer-choice): Clarify docstring.

8 years agoFix last commit
Eli Zaretskii [Thu, 28 May 2015 18:44:23 +0000 (21:44 +0300)]
Fix last commit

* nt/gnulib.mk (libgnu_a_SOURCES): Add get-permissions.c back.
(gnulib module qcopy-acl): Add back, as it is harmless.  This
minimizes differences wrt lib/gnulib.mk.

8 years agoFix the MS-Windows build as followup to gnulib update
Eli Zaretskii [Thu, 28 May 2015 17:40:51 +0000 (20:40 +0300)]
Fix the MS-Windows build as followup to gnulib update

* nt/gnulib.mk (libgnu_a_SOURCES): Remove get-permissions.c and
set-permissions.c, as they don't compile on MinGW.
(gnulib module qcopy-acl): Remove, as it needs set-permissions.c.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 28 May 2015 10:21:55 +0000 (06:21 -0400)]
; Auto-commit of loaddefs files.

8 years agoRevert my change to gnus-art.el
Paul Eggert [Thu, 28 May 2015 08:19:34 +0000 (01:19 -0700)]
Revert my change to gnus-art.el

* lisp/gnus/gnus-art.el (gnus-button-alist): Revert last change.
It wasn't that important, and it caused a Gnus build to fail.  See:
http://www.randomsample.de:4456/builders/emacs-devel/builds/734

8 years agoNew minor mode Electric Quote
Paul Eggert [Thu, 28 May 2015 07:46:59 +0000 (00:46 -0700)]
New minor mode Electric Quote

This lets you easily insert quotes ‘like this’ by typing
quotes `like this', and similarly you can easily insert
quotes “like this” by typing quotes ``like this'' (Bug#20545).
* doc/emacs/basic.texi (Inserting Text):
* doc/emacs/modes.texi (Minor Modes):
* etc/NEWS: Document it.
* doc/emacs/text.texi (Quotation Marks): New section.
* lisp/electric.el (electric-quote-comment)
(electric-quote-string, electric-quote-paragraph):
New custom vars.
(electric--insertable-p)
(electric-quote-post-self-insert-function): New functions.
(electric-quote-mode, electric-quote-local-mode): New minor modes.
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
Add curved single quotes to electric-pair-text-pairs.
Set electric-quote-string in this buffer.

8 years agoA few more doc string fixes (Bug#20385)
Paul Eggert [Thu, 28 May 2015 07:44:32 +0000 (00:44 -0700)]
A few more doc string fixes (Bug#20385)

8 years agoAccept curved quotes in doc strings
Paul Eggert [Thu, 28 May 2015 07:06:14 +0000 (00:06 -0700)]
Accept curved quotes in doc strings

* lisp/info-look.el (info-lookup-guess-custom-symbol):
(info-lookup-alist): Treat ‘’ like `' when parsing help buffers etc.

8 years agoGenerate curved quotes in pseudo-info nodes
Paul Eggert [Thu, 28 May 2015 07:06:14 +0000 (00:06 -0700)]
Generate curved quotes in pseudo-info nodes

* lisp/info.el (Info-virtual-index-find-node)
(Info-virtual-index, Info-apropos-find-node, info-apropos):
Quote ‘like this’, not `like this', when generating pseudo-info nodes.

8 years agoFix minor quoting problems in doc strings
Paul Eggert [Thu, 28 May 2015 07:06:14 +0000 (00:06 -0700)]
Fix minor quoting problems in doc strings

Most of these fixes involve escaping grave accents that are
actually intended to be grave accents, not left quotes.
(Bug#20385)

8 years agoSupport curved quotes in doc strings
Paul Eggert [Thu, 28 May 2015 07:06:14 +0000 (00:06 -0700)]
Support curved quotes in doc strings

Emacs's traditional doc string style has been to quote symbols
`like this'.  This worked well on now-obsolete terminals where
` and ' were symmetric quotes, but nowadays curved quotes
‘like this’ look better.  Support quoting the new way too.
(Bug#20385)
* doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted
‘like-this’ as well as `like-this'.
* etc/NEWS: Mention this.
* lisp/cedet/mode-local.el (overload-docstring-extension)
(mode-local-print-binding, mode-local-describe-bindings-2):
* lisp/cus-theme.el (describe-theme-1):
* lisp/descr-text.el (describe-text-properties-1, describe-char):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
* lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
(eieio-help-constructor):
* lisp/emacs-lisp/package.el (describe-package-1):
* lisp/faces.el (describe-face):
* lisp/help-fns.el (help-fns--key-bindings)
(help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete):
(help-fns--interactive-only, describe-function-1):
(describe-variable):
* lisp/help.el (describe-mode):
* lisp/international/mule-cmds.el (describe-input-method)
(describe-language-environment):
* lisp/international/mule-diag.el (describe-character-set)
(print-coding-system-briefly, list-input-methods)
(list-input-methods-1):
Insert curved quotes rather than grave accent and apostrophe.
* lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
(checkdoc-proper-noun-region-engine):
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2):
* lisp/finder.el (finder-font-lock-keywords):
* lisp/gnus/gnus-art.el (gnus-button-alist):
* lisp/help-fns.el (help-do-arg-highlight)
(describe-function-1, describe-variable):
* lisp/help-mode.el (help-xref-symbol-regexp)
(help-xref-info-regexp, help-xref-url-regexp):
* lisp/help.el (describe-mode):
* lisp/international/mule-cmds.el (help-xref-mule-regexp-template):
* lisp/wid-edit.el (widget-documentation-link-regexp):
Parse symbols quoted ‘like-this’ as well as `like-this'.
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
Add "‘" and "’" to electric-pair-text-pairs.
(elisp--form-quoted-p): Also allow "‘" as a quoting char.
(elisp-completion-at-point, elisp--preceding-sexp):
Also treat "‘" and "’" as quoting chars.

8 years agosubstitute-command-keys now curves quotes
Paul Eggert [Thu, 28 May 2015 07:06:13 +0000 (00:06 -0700)]
substitute-command-keys now curves quotes

So, for example, it turns "`abc'" into "‘abc’" (Bug#20385).
* doc/lispref/help.texi (Keys in Documentation):
* etc/NEWS: Document this.
* src/doc.c (Fsubstitute_command_keys): Implement it.

8 years ago* lisp/mail/rmailsum.el (rmail-summary-by-recipients)
Glenn Morris [Thu, 28 May 2015 06:16:29 +0000 (23:16 -0700)]
* lisp/mail/rmailsum.el (rmail-summary-by-recipients)

(rmail-summary-by-topic, rmail-summary-by-senders):
No longer strip leading/trailing whitespace.

8 years ago* lisp/progmodes/f90.el (f90-type-def-re): Add "type, extends".
Glenn Morris [Thu, 28 May 2015 06:10:46 +0000 (23:10 -0700)]
* lisp/progmodes/f90.el (f90-type-def-re): Add "type, extends".

(f90-no-block-limit): Add "enum".  (Bug#20680)

* test/automated/f90.el (f90-test-bug20680, f90-test-bug20680b):
New tests.

8 years ago* lisp/isearch.el (isearch--current-buffer): Give a default value.
Stefan Monnier [Thu, 28 May 2015 02:43:08 +0000 (22:43 -0400)]
* lisp/isearch.el (isearch--current-buffer): Give a default value.

8 years agoUn-revert changes mistakenly dropped by f9fabb2b
Stefan Monnier [Thu, 28 May 2015 02:42:33 +0000 (22:42 -0400)]
Un-revert changes mistakenly dropped by f9fabb2b

8 years agoMerge from gnulib
Paul Eggert [Thu, 28 May 2015 00:46:15 +0000 (17:46 -0700)]
Merge from gnulib

This incorporates:
2015-05-27 qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
2015-05-27 file-has-acl: Split feature tests again (Bug#20667)
2015-05-27 string: fix build failure on BSD/OSX with FORTIFY_SOURCE
2015-05-26 stdio: limit __gnu_printf__ witness to gcc 4.4+
2015-05-26 inttypes: force correct mingw PRIdMAX even without <stdio.h>
2015-05-26 stdio: fix probe on mingw under gcc 5.1
* admin/merge-gnulib (GNULIB_MODULES):
Replace qacl with qcopy-acl, since we don't need the rest of qacl.
* doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
* lib/inttypes.in.h, lib/qcopy-acl.c, lib/qset-acl.c:
* lib/string.in.h, m4/acl.m4, m4/stdio_h.m4:
Get latest versions from gnulib.
* lib/get-permissions.c, lib/set-permissions.c: New files.
* lib/gnulib.mk, m4/gnulib-comp.m4:
Regenerate.
* nt/gnulib.mk: Merge lib/gnulib.mk changes by hand.

8 years agoDelete the old process in vc-setup-buffer
Dmitry Gutov [Wed, 27 May 2015 23:16:00 +0000 (02:16 +0300)]
Delete the old process in vc-setup-buffer

* lisp/vc/vc-dispatcher.el (vc-setup-buffer): Delete the old
process here.
(vc-do-command): Rather than here (bug#20608).

8 years agoAvoid gratuitous delete-dups in face-at-point.
Ivan Shmakov [Wed, 27 May 2015 22:15:27 +0000 (22:15 +0000)]
Avoid gratuitous delete-dups in face-at-point.

* lisp/faces.el (face-at-point): Do not compute the properly
ordered, duplicate-free list if only a single value is
requested anyway.  (Bug#20519)

8 years agoShow the exact C-x 8 RET invocation in describe-char.
Ivan Shmakov [Wed, 27 May 2015 22:14:57 +0000 (22:14 +0000)]
Show the exact C-x 8 RET invocation in describe-char.

* lisp/descr-text.el (describe-char): Show the exact C-x 8 RET
invocation instead of a template.  (Bug#20522)

8 years ago* lisp/emacs-lisp/package.el: Don't erase tags on refresh
Artur Malabarba [Tue, 26 May 2015 08:57:17 +0000 (09:57 +0100)]
* lisp/emacs-lisp/package.el: Don't erase tags on refresh

(package-menu--post-refresh): Call `tabulated-list-print' with the
UPDATE argument.  This only affects the refresh action, the revert
action still erases tags.
(package-menu-get-status): Change `assq' to `assoc'.
(package-menu--mark-upgrades-1): New function.
(package-menu--mark-upgrades-pending): New variable.
(package-menu-mark-upgrades): Use them to delay marking until
after refresh is done.
(package-menu--post-refresh): Call mark-upgrades-1 if
mark-upgrades-pending is non-nil.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 27 May 2015 16:49:29 +0000 (18:49 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

Conflicts:
lisp/net/tramp.el

8 years agoFix typo in commit 3953c4be2816537be95520605d45b866dc731f4b
Michael Albinus [Wed, 27 May 2015 16:42:33 +0000 (18:42 +0200)]
Fix typo in commit 3953c4be2816537be95520605d45b866dc731f4b

8 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Wed, 27 May 2015 16:19:35 +0000 (19:19 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

8 years ago; etc/NEWS: Document recent changes in 'etags'.
Eli Zaretskii [Wed, 27 May 2015 16:19:02 +0000 (19:19 +0300)]
; etc/NEWS: Document recent changes in 'etags'.

8 years ago* lisp/isearch.el (isearch--current-buffer): New var
Stefan Monnier [Wed, 27 May 2015 16:16:16 +0000 (12:16 -0400)]
* lisp/isearch.el (isearch--current-buffer): New var

(isearch-update): Set cursor-sensor-inhibit here.
(isearch-done): Unset cursor-sensor-inhibit in the right buffer (bug#20532).

8 years ago; * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name): Fix previous.
Glenn Morris [Wed, 27 May 2015 15:57:39 +0000 (08:57 -0700)]
; * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name): Fix previous.

8 years agoChange inhibit-point-motion-hooks to t
Stefan Monnier [Wed, 27 May 2015 15:52:28 +0000 (11:52 -0400)]
Change inhibit-point-motion-hooks to t

* src/textprop.c (syms_of_textprop): Default Vinhibit_point_motion_hooks
to t and document it as obsolete.

8 years agoSupport ZIP files that use Zip64 extensions
Eli Zaretskii [Wed, 27 May 2015 14:35:11 +0000 (17:35 +0300)]
Support ZIP files that use Zip64 extensions

* lisp/arc-mode.el (archive-zip-summarize): Handle the new ZIP
format of central directory offsets used by Zip64 extensions.
(Bug#20665)

8 years agoNew test tramp-test30-make-auto-save-file-name
Michael Albinus [Wed, 27 May 2015 13:48:13 +0000 (15:48 +0200)]
New test tramp-test30-make-auto-save-file-name

* tramp-tests.el (tramp-test30-make-auto-save-file-name): New test.
(tramp-test31-special-characters)
(tramp-test31-special-characters-with-stat)
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls, tramp-test32-utf8)
(tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl)
(tramp-test32-utf8-with-ls, tramp-test33-asynchronous-requests)
(tramp-test34-recursive-load, tramp-test35-unload): Rename.

8 years agoImprove tramp-handle-make-auto-save-file-name
Michael Albinus [Wed, 27 May 2015 13:47:16 +0000 (15:47 +0200)]
Improve tramp-handle-make-auto-save-file-name

* tramp.el (tramp-auto-save-directory): Add :tags.
(tramp-handle-make-auto-save-file-name): Let native
`make-auto-save-file-name' use `auto-save-file-name-transforms',
if `tramp-auto-save-directory' is not set.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 27 May 2015 10:18:31 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.

8 years agoNo longer set dired-directory in eshell. (Bug#16477)
Glenn Morris [Wed, 27 May 2015 06:42:59 +0000 (23:42 -0700)]
No longer set dired-directory in eshell.  (Bug#16477)

* lisp/eshell/esh-mode.el (eshell-mode):
* lisp/eshell/em-dirs.el (eshell/cd): No longer set dired-directory.

8 years ago* lisp/mail/sendmail.el (mail-position-on-field): Doc fix.
Glenn Morris [Wed, 27 May 2015 06:29:51 +0000 (23:29 -0700)]
* lisp/mail/sendmail.el (mail-position-on-field): Doc fix.

8 years agoMake c-submit-bug-report file reports at debbugs.gnu.org. (Bug#15784)
Glenn Morris [Wed, 27 May 2015 06:29:25 +0000 (23:29 -0700)]
Make c-submit-bug-report file reports at debbugs.gnu.org.  (Bug#15784)

* lisp/progmodes/cc-mode.el (c-mode-help-address):
Change to submit@debbugs.
(c-mode-bug-package): New constant.
(mail-position-on-field): Declare.
(c-submit-bug-report): Insert X-Debbugs-Package header.

* doc/misc/cc-mode.texi (Mailing Lists and Bug Reports):
Mention debbugs.gnu.org.

8 years ago* lisp/mail/rmailsum.el: Commas no longer separate regexps. (Bug#19026)
Glenn Morris [Wed, 27 May 2015 01:04:19 +0000 (21:04 -0400)]
* lisp/mail/rmailsum.el: Commas no longer separate regexps.  (Bug#19026)

(rmail-summary-by-recipients, rmail-summary-by-topic)
(rmail-summary-by-senders): No longer use mail-comma-list-regexp.

* doc/emacs/rmail.texi (Rmail Make Summary): Update for this change.

; * etc/NEWS: Mention this.

8 years agoHandle curved quotes in info files
Paul Eggert [Tue, 26 May 2015 19:29:38 +0000 (12:29 -0700)]
Handle curved quotes in info files

* lisp/calc/calc-help.el (calc-describe-thing):
* lisp/info.el (Info-find-index-name)
(Info-try-follow-nearest-node, Info-fontify-node):
* lisp/vc/ediff-help.el (ediff-help-for-quick-help):
In info files, process quotes ‘like this’ the same way we process
quotes `like this'.  This catches a few places we missed earlier.

8 years agoxref-prompt-for-identifier: Use a list value
Dmitry Gutov [Tue, 26 May 2015 16:28:38 +0000 (19:28 +0300)]
xref-prompt-for-identifier: Use a list value

* lisp/progmodes/xref.el (xref-prompt-for-identifier): Allow list
value, to be interpreted as a list of commands.
(xref--prompt-p): New function.
(xref--read-identifier): Use it.

8 years agoTeach MS-Windows font back-end return per-glyph ascent/descent
Eli Zaretskii [Tue, 26 May 2015 15:29:40 +0000 (18:29 +0300)]
Teach MS-Windows font back-end return per-glyph ascent/descent

* src/w32font.h (struct w32_metric_cache): Add ascent and descent
values.

* src/w32font.c (w32font_text_extents): Compute, cache, and
accumulate per-glyph ascent and descent values, instead of copying
global values from the font.  If the values are not available from
the font data, i.e., non-TTF fonts, fall back on font-global values.
(compute_metrics): Compute and return per-glyph ascent and descent
values, if returned by GetGlyphOutlineW, falling back on
font-global values.  (Bug#20628)

* src/w32term.c (w32_draw_rectangle): Add 1 pixel to width and
height of rectangle to be drawn, to be compatible with
XDrawRectangle.  Fixes glyphless-char display as hex codes in a
box, when per-glyph ascent/descent values are used.

8 years ago* lisp/emacs-lisp/tabulated-list.el: Don't sort without sorter
Artur Malabarba [Tue, 26 May 2015 08:32:45 +0000 (09:32 +0100)]
* lisp/emacs-lisp/tabulated-list.el: Don't sort without sorter

(tabulated-list-print): Don't sort if sorter is nil

8 years agoFix Bug#20621
Michael Albinus [Tue, 26 May 2015 07:35:38 +0000 (09:35 +0200)]
Fix Bug#20621

* lisp/net/tramp-sh.el (tramp-set-auto-save): Remove it.  There
are major modes which set `auto-save-mode' on their own rules;
Tramp shall not overwrite such settings.

Fixes: debbugs:20621
8 years ago* lisp/desktop.el: If modes aren't autoloaded, try simple guesswork.
Glenn Morris [Tue, 26 May 2015 06:27:55 +0000 (23:27 -0700)]
* lisp/desktop.el: If modes aren't autoloaded, try simple guesswork.

(desktop-load-file): Guess that "foobar" defines "foobar-mode".
(desktop-buffer-mode-handlers, desktop-minor-mode-handlers):
Doc updates.
(vc-dir-mode): Remove unnecessary autoload.

; Ref: http://debbugs.gnu.org/19226#14

8 years ago* lisp/term/xterm.el: Add gui-get-selection support via OSC-52
Philipp Stephani [Mon, 25 May 2015 21:03:50 +0000 (17:03 -0400)]
* lisp/term/xterm.el: Add gui-get-selection support via OSC-52

(xterm--extra-capabilities-type): Add `getSelection'.
(xterm--query): Add `no-async' argument.
(xterm--init-activate-get-selection): New function.
(terminal-init-xterm): Use it.
(xterm--init-modify-other-keys): Rename from
terminal-init-xterm-modify-other-keys.
(xterm--init-bracketed-paste-mode): Rename from
terminal-init-xterm-bracketed-paste-mode.
(xterm--init-activate-set-selection): Rename from
terminal-init-xterm-activate-set-selection.
(xterm--selection-char): New function.
(gui-backend-set-selection): Use it.  Use the &context to only apply
this method in terminals where we enabled the feature.
(gui-backend-get-selection): New method.

8 years agoAdd C-language keyword constants to C++
Daniel Colascione [Mon, 25 May 2015 20:51:35 +0000 (13:51 -0700)]
Add C-language keyword constants to C++

* lisp/progmodes/cc-langs.el (c-constant-kwds): Add C-language
keyword constants to C++.

8 years agoMake TAGS files more portable to MS-Windows
Paul Eggert [Mon, 25 May 2015 20:06:11 +0000 (13:06 -0700)]
Make TAGS files more portable to MS-Windows

* etc/NEWS: Document this.
* lib-src/etags.c (readline_internal) [DOS_NT]:
Don't treat CRs differently from GNUish hosts.
* lisp/progmodes/etags.el (etags-goto-tag-location):
Adjust STARTPOS to account for the skipped CRs in dos-style files.

8 years agoImprove fix of debbugs:20634 in tramp-sh.el
Michael Albinus [Mon, 25 May 2015 18:31:54 +0000 (20:31 +0200)]
Improve fix of debbugs:20634 in tramp-sh.el

8 years agoFix a typo in last commit
Eli Zaretskii [Mon, 25 May 2015 15:08:09 +0000 (18:08 +0300)]
Fix a typo in last commit

* lib-src/etags.c (C_entries): Fix a typo.

* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/CTAGS.good: Update due to the change in etags.c.

8 years agoFix tagging of class members in C-like OO languages
Eli Zaretskii [Mon, 25 May 2015 15:02:21 +0000 (18:02 +0300)]
Fix tagging of class members in C-like OO languages

* lib-src/etags.c (longopts): Add new option --class-qualify and
its shorthand -Q.
(print_help): Add help text for --class-qualify.
(main): Add handling of -Q.
(consider_token, C_entries) <omethodparm>: Append argument types
to Objective C methods only if --class-qualify was specified.
Qualify C++, Objective C, and Java class members with their class
names only if --class-qualify was specified.
(C_entries): If --class-qualify was not specified, remove the
namespace and class qualifiers from tag names of C++ methods.
This allows to use etags.el as xref back-end without the
tag-symbol-match-p method, which greatly increases the number of
potentially false positives.  (Bug#20629)

* doc/man/etags.1: Update to document the new --class-qualify
option.

* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/CTAGS.good: Update due to changes in etags.c.

8 years ago(cl-generic-define-method): Side effects are evil (bug#20644)
Stefan Monnier [Mon, 25 May 2015 14:53:52 +0000 (10:53 -0400)]
(cl-generic-define-method): Side effects are evil (bug#20644)

* lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Don't reuse
cons-cells that might be used as keys in an `equal' hash-table.

8 years agoMake erc timestamps visible again
Lars Magne Ingebrigtsen [Mon, 25 May 2015 14:45:17 +0000 (16:45 +0200)]
Make erc timestamps visible again

* lisp/erc/erc-stamp.el (erc-munge-invisibility-spec): Make
timestamps visible again (if requested).

8 years agoFix last change in etags.c that broke tagging compresed files
Eli Zaretskii [Mon, 25 May 2015 14:24:33 +0000 (17:24 +0300)]
Fix last change in etags.c that broke tagging compresed files

* lib-src/etags.c (process_file_name) [MSDOS || DOS_NT]: Fix
quoting of decompression shell command for MS-Windows/MS-DOS.

8 years ago* lisp/emacs-lisp/cl-macs.el (cl-tagbody): Scope cl--tagbody-alist
Stefan Monnier [Mon, 25 May 2015 13:39:35 +0000 (09:39 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-tagbody): Scope cl--tagbody-alist

Fixes: debbugs:20639
8 years agoFix typo in 89035e247591c8d688fce922b7079881aa110f33
Michael Albinus [Mon, 25 May 2015 10:40:57 +0000 (12:40 +0200)]
Fix typo in 89035e247591c8d688fce922b7079881aa110f33

8 years agoFix IPv6 addresses in Tramp
Orivej Desh [Mon, 25 May 2015 10:25:39 +0000 (12:25 +0200)]
Fix IPv6 addresses in Tramp

* lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
Add sqare brackets around host name.

Copyright-paperwork-exempt: yes

8 years agoInhibit `epa-file-handler' in Tramp
Michael Albinus [Mon, 25 May 2015 08:44:51 +0000 (10:44 +0200)]
Inhibit `epa-file-handler' in Tramp

Fixes: debbugs:20634
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
(tramp-sh-handle-insert-file-contents-literally): Inhibit also
`epa-file-handler'.

8 years ago* lisp/emacs-lisp/pcase.el: Use PAT rather than UPAT in docstring
Stefan Monnier [Mon, 25 May 2015 02:38:05 +0000 (22:38 -0400)]
* lisp/emacs-lisp/pcase.el: Use PAT rather than UPAT in docstring

(pcase-let): Document the behavior in case the pattern doesn't match.

8 years ago* lisp/emacs-lisp/tabulated-list.el: New optional print method
Artur Malabarba [Sun, 24 May 2015 22:38:53 +0000 (23:38 +0100)]
* lisp/emacs-lisp/tabulated-list.el: New optional print method

(tabulated-list-print): New optional argument, UPDATE.  If
non-nil, the list is printed by only adding and deleting the
changed entries, instead of erasing the whole buffer.  This method
is much faster when few or no entries have changed.

* doc/lispref/modes.texi (Tabulated List Mode): Document it.

* etc/NEWS: Document it.

8 years ago* lisp/emacs-lisp/tabulated-list.el: Improve printing
Artur Malabarba [Sun, 24 May 2015 21:57:24 +0000 (22:57 +0100)]
* lisp/emacs-lisp/tabulated-list.el: Improve printing

(tabulated-list--get-sorter): New function.
(tabulated-list-print): Restore window-line when remember-pos is
passed and optimize away the `nreverse'.

8 years agoSimpilify etags TEX mode scanning
Paul Eggert [Sun, 24 May 2015 21:20:10 +0000 (14:20 -0700)]
Simpilify etags TEX mode scanning

* lib-src/etags.c (TEX_mode, TEX_esc, TEX_opgrp, TEX_clgrp):
Remove static vars.
(TeX_commands): Deduce escapes here instead.
(TEX_LESC, TEX_SESC, TEX_mode): Remove; all uses removed.
This removes the need for a reset_input call.

8 years agoImprove etags I/O error reporting
Paul Eggert [Sun, 24 May 2015 21:20:09 +0000 (14:20 -0700)]
Improve etags I/O error reporting

* lib-src/etags.c:
Don't include sys/types.h and sys/stat.h; no longer needed.
(infilename): New static var.
(process_file_name): Don't call 'stat'.  Instead, just open the
file for reading and report any errors.  Don't bother making
a copy of the file argument; it's not needed.  Be more careful to
use the failing errno when reporting an error.
Quote the real name better (though no perfectly)
when passing it to the shell.
(reset_input): New function, which reports I/O errors.
All uses of 'rewind' changed to use this function.
(perhaps_more_input): New function, which also checks for
I/O errors.  All uses of 'feof' changed to use this function.
(analyze_regex): Report an error if fclose fails.
(readline_internal): Report an error if getc fails.
(etags_mktmp): Return an error if close fails.

8 years agoetags.c: avoid side effects in 'if'
Paul Eggert [Sun, 24 May 2015 21:20:09 +0000 (14:20 -0700)]
etags.c: avoid side effects in 'if'

* lib-src/etags.c (process_file_name, Perl_functions)
(TEX_decode_env): Hoist side effects into previous statement.

8 years ago.gitignore tweaks
Paul Eggert [Sun, 24 May 2015 15:04:03 +0000 (08:04 -0700)]
.gitignore tweaks

* .gitignore: Ignore all *.stamp files.  Sort.
Ignore [0-9]*.txt (commonly used name for git patches)
and /vc-dwim-log-* (vc-dwim temporary).