1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 12:26:15 +00:00
Commit Graph

124152 Commits

Author SHA1 Message Date
Lars Ingebrigtsen
a2158f6c9a Use built-in encryption in imap.el
* lisp/net/imap.el (imap-ssl-program): Remove (bug#21134).
(imap-starttls-open): Use open-network-stream instead of starttls.el.
(imap-tls-open): Use open-network-stream instead of tls.el.
2015-12-26 21:47:39 +01:00
Eli Zaretskii
4c361a95cc Don't try using /bin/sh in artist.el on MS-Windows
* lisp/textmodes/artist.el (artist-figlet-get-font-list-windows):
New function.
(artist-figlet-choose-font): Use it on MS-Windows and MS-DOS.
(Bug#20167)
2015-12-26 22:35:48 +02:00
Wolfgang Jenkner
4b1436b702 Always define gmalloc etc. in src/gmalloc.c
This is a work-around to prevent the compiler from using semantic
knowledge about malloc for optimization purposes.  E.g., gcc 5.2
with -O2 replaces most of calloc's definition by a call to calloc;
see Bug#22085.
* src/gmalloc.c [!HYBRID_MALLOC] (malloc, realloc, calloc)
(aligned_alloc, free): Do not undef.  Instead, define these as
functions (perhaps renamed to gmalloc etc.) in terms of gmalloc etc.
2015-12-26 12:12:43 -08:00
Eli Zaretskii
0191077d6a Fix documentation of browse-url browser-related functions
* lisp/net/browse-url.el (browse-url)
(browse-url-default-browser, browse-url-default-windows-browser)
(browse-url-default-macosx-browser, browse-url-chromium)
(browse-url-kde, browse-url-text-xterm): Clarify the usage of ARGS
and NEW-WINDOW arguments in these functions.  (Bug#19421)
2015-12-26 20:47:42 +02:00
Paul Eggert
b45828ee13 Propagate Bug#14412 fix to backtrace_eval_unrewind
* src/eval.c (unbind_to): Redo so that the FALLTHROUGH!! comment
becomes accurate again. This shouldn’t affect behavior.
(backtrace_eval_unrewind): Apply the recent unbind_to fix here, too.
2015-12-26 09:32:03 -08:00
Eli Zaretskii
9e9f6fb2a2 ; * etc/NEWS: Update entries for VHDL and Calculator. 2015-12-26 19:08:15 +02:00
Eli Zaretskii
1490096652 Don't produce non-ASCII characters in *scratch*
* lisp/startup.el (initial-scratch-message): Quote apostrophes to
avoid producing non-ASCII characters in the *scratch* buffer's
commentary.
2015-12-26 18:58:04 +02:00
Eli Zaretskii
dd86e5a227 Document changes in 'compare-windows'
* lisp/vc/compare-w.el (compare-windows-removed)
(compare-windows-added): Doc fix.

* doc/emacs/files.texi (Comparing Files): Document the changes in
window selection by 'compare-windows'.
2015-12-26 18:30:07 +02:00
Eli Zaretskii
42ae568b3d Document 'vc-annotate-background-mode'
* doc/emacs/maintaining.texi (Old Revisions): Document
'vc-annotate-background-mode'.
2015-12-26 18:04:03 +02:00
Eli Zaretskii
ca13f61dea Document 'vc-region-history'
* doc/emacs/maintaining.texi (VC Change Log): Document
'vc-region-history'.
2015-12-26 17:52:53 +02:00
Eli Zaretskii
78744677ce Improve documentation of 'vc-push'
* doc/emacs/maintaining.texi (Pulling / Pushing): Expand and
improve the documentation of 'vc-push'.

* lisp/vc/vc.el (vc-pull, vc-push): Doc fix.
2015-12-26 17:09:25 +02:00
Eli Zaretskii
388f193be7 ; * etc/NEWS: Document new features of SQL Mode. 2015-12-26 16:30:22 +02:00
Alain Schneble
4b5b3985ad Include the tests for the URL parsing fixes 2015-12-26 14:53:08 +01:00
Alain Schneble
8dea6fe5b5 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
* test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
* test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
* lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
information in URL-struct.
* lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
path and query into nil path and query, respectively.
* lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
empty path into an absolute ("/") path.
* lisp/url/url-expand.el (url-expand-file-name): Properly resolve
fragment-only URIs. Do not just return them unchanged.
* lisp/url/url-expand.el (url-default-expander): An empty path in the relative
reference URI should not drop the last segment.

Backport:

(cherry picked from commit b792ecea17)
2015-12-26 14:53:08 +01:00
Eli Zaretskii
4021027db7 ; * etc/NEWS: Mark some URL entries as not requiring documentation changes 2015-12-26 15:49:42 +02:00
Eli Zaretskii
bda3c4600b Document 'url-user-agent'.
* lisp/url/url-http.el (url-user-agent): Move from here...
* lisp/url/url-vars.el (url-user-agent): ...to here.  This is to
keep all the URL defcustoms in one place, and also have it defined
whenever the URL library is loaded.

* doc/misc/url.texi (Customization): Document 'url-user-agent'.
2015-12-26 15:31:32 +02:00
Eli Zaretskii
3a9664d092 Document protocols supported by URL library via Tramp
* doc/misc/url.texi (Tramp): New node, describes the URL schemes
supported via Tramp.
(Supported URL Types, file/ftp, rlogin/telnet/tn3270): Mention
Tramp.
2015-12-26 14:59:50 +02:00
Eli Zaretskii
293bd4f632 Document changes in Shell-script mode
* lisp/progmodes/sh-script.el (sh-mode, sh-set-shell): Document
the 'sh-shell' file-local variable.
(top level): Add an auto-load form to avoid byte-compiler warning
about 'comint-send-string'.
2015-12-26 13:48:00 +02:00
Eli Zaretskii
297e558c56 Fix documentation of 'ses-define-local-printer'
* doc/misc/ses.texi (Printer functions): Fix whitespace between
sentences and punctuation.  Add an index entry for
'ses-define-local-printer'.
2015-12-26 13:16:15 +02:00
Shakthi Kannan
406d132244 Document 'ert-summarize-tests-batch-and-exit'
* doc/misc/ert.texi (Running Tests in Batch Mode): Document
'ert-summarize-tests-batch-and-exit'.
2015-12-26 13:05:06 +02:00
Eli Zaretskii
23c3caf602 Avoid assertion violation in unbind_to
* src/eval.c (unbind_to) <SPECPDL_LET>: Avoid assertion violation
if we get here with an object that is not a symbol.  (Bug#14412)
2015-12-26 12:43:08 +02:00
Andreas Schwab
490dcf2ae3 Don't treat /foo/bar:mumble as ange-ftp address
* lisp/net/browse-url.el (browse-url-filename-alist): Match colons
	only in the first component.  (bug#5362)
2015-12-25 23:36:45 +01:00
Lars Ingebrigtsen
ba82d68819 Follow <meta> redirects in eww
Merge conflict, but I think I resolved it.

    Follow meta refresh tags in eww

    * eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).

Backport:
2015-12-25 20:52:05 +01:00
Lars Ingebrigtsen
24228d28dc Allow http://user:pass@foo/ URLs again
* lisp/url/url-auth.el (url-basic-auth): Allow explicit
user/passwords in URLs (bug#19046).

Backport:

(cherry picked from commit b563715a2d)
2015-12-25 20:22:02 +01:00
Samer Masterson
f41c54b763 Autoload url-insert-buffer-contents
* lisp/url/url-handlers.el: Add autoload cookie so that
`package-list-packages' doesn't bug out (bug#21927) (tiny change)

Backport:

(cherry picked from commit 7a7b5b492f)
2015-12-25 19:05:21 +01:00
Eli Zaretskii
b6ad4608be Make sure *scratch* etc. use forward slashes in its default-directory
* lisp/startup.el (normal-top-level): On MS-Windows, convert
backslashes to forward slashes while decoding default-directory
of the initially-created buffers.
2015-12-25 18:37:31 +02:00
Lars Ingebrigtsen
e59b2ee8cd More eww file name coding fixes
* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.

Backport:

(cherry picked from commit a8627008ab)
2015-12-25 17:05:39 +01:00
Lars Ingebrigtsen
6c12691a4b Always save eww history
* eww.el (eww-setup-buffer): Always save history, even when
called from outside the eww buffer (bug#19638).

Backport:

(cherry picked from commit 2a0f18d9b6)
2015-12-25 17:05:20 +01:00
Lars Ingebrigtsen
1a99bd69ea Default web pages to right-to-left
* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).

Backport:

(cherry picked from commit 9e089ec8a3)
2015-12-25 17:05:00 +01:00
Lars Ingebrigtsen
2d33a9ca0b Make toggling checkboxes work again
* eww.el (eww-update-field): Make toggling checkboxes work
again (bug#21881).

Backport:

(cherry picked from commit 5e56f60695)
2015-12-25 17:04:08 +01:00
Lars Ingebrigtsen
eeff251924 Don't store cookies with empty names
* lisp/url/url-cookie.el (url-cookie-store): Refuse to store
cookies with empty names (bug#21936).

Backport:

(cherry picked from commit 9f0fd7cb1a)
2015-12-25 17:03:53 +01:00
Lars Ingebrigtsen
5b2401d38f Stop rendering HTML before specdlr exhaustion
Fixes: 22117

* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).

Backport:

(cherry picked from commit 248da292fe)
2015-12-25 17:03:34 +01:00
Lars Ingebrigtsen
ec2a509cfb Use cl-reduce, not reduce.
Backport:

(cherry picked from commit fe4606f93b)
2015-12-25 17:03:18 +01:00
Lars Ingebrigtsen
96ac31425d Allow several <tbody> tags in shr
* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).

Backport:

(cherry picked from commit cdaf33029d)
2015-12-25 17:03:06 +01:00
Lars Ingebrigtsen
a7143faf48 Make prettier unique file names in eww
(eww-make-unique-file-name): Make unique file names by making
files like foo(2).jpg instead of foo(1)(2).jpg.

Backport:

(cherry picked from commit edfdd0a6cb)
2015-12-25 17:02:48 +01:00
Lars Ingebrigtsen
90f82ffa5d Decode hex-encoded URLs before using them as file names
* eww.el (eww-decode-url-file-name): New function.
(eww-download-callback): Use it to decode file names before
saving them.

Backport:

(cherry picked from commit af22a010d8)
2015-12-25 17:02:31 +01:00
Ashish SHUKLA
5bd3a0c9e0 Add FreeBSD cert bundle
* doc/misc/emacs-gnutls.texi (Help For Users): Document
FreeBSD bundle.

* lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.

Backport:

(cherry picked from commit 60c0f1a18a)
2015-12-25 17:02:03 +01:00
Lars Ingebrigtsen
6ef896cc78 Ignore invalid SVG images
* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.

Backport:

(cherry picked from commit 821107d53c)
2015-12-25 17:01:27 +01:00
Lars Ingebrigtsen
cc3de97ad3 shr table rendering fix
* shr.el (shr-tag-table): Allow rendering body-less tables
that have headers.

Backport:

(cherry picked from commit b05471e42c)
2015-12-25 16:59:49 +01:00
Eli Zaretskii
2dd3581b78 Restore info about the build host in bug reports
* lisp/mail/emacsbug.el (report-emacs-bug): Report the system on
which Emacs was built.  This is important information for
investigating bug reports reported by users who don't build their
Emacs.
2015-12-25 13:35:08 +02:00
Eli Zaretskii
94a3606243 Fix bootstrap broken by changes related to OS X file-name encoding
* lisp/international/ucs-normalize.el (eval-when-compile): Make
sure char-code-property-alist includes elements that allow access
to 'decomposition' and 'canonical-combining-class' Unicode
properties, as compiling ucs-normalize.el requires that.
* lisp/loadup.el (featurep 'ns): Load ucs-normalize and ns-win
only of charprop.el was already loaded.

* src/Makefile.in ($(lispsource)/international/ucs-normalize.elc):
New order-only dependency.
2015-12-25 13:23:17 +02:00
Leo Liu
b2b84b166a * ido.el (ido-add-virtual-buffers-to-list): Use bookmark-get-filename. 2015-12-25 19:10:13 +08:00
Anders Lindgren
3e7f6338d8 ; Re-enabled "File-name completion of non-ASCII characters on OS X (bug#22169)""
; This reverts commit d107eda498.

; A follow-up to this will be made to ucs-normalize.el etc. to ensure that building from scratch works.
2015-12-25 10:55:38 +01:00
Michael Albinus
dfad97b653 Make tramp-test29-vc-registered more robust
* test/automated/tramp-tests.el (tramp-test29-vc-registered):
Move `bzr' case down.  Skip test when `vc-create-repo' fails.
Remove instrumentation.
2015-12-25 10:45:20 +01:00
Anders Lindgren
d107eda498 ; Revert "File-name completion of non-ASCII characters on OS X (bug#22169)"
; This reverts commit 0905307522.

; This caused a build from scratch to fail.
2015-12-24 09:50:26 +01:00
YAMAMOTO Mitsuharu
076172ba82 * lisp/term/x-win.el (x-gtk-stock-map): Fix typo. 2015-12-24 17:46:01 +09:00
Katsumi Yamaoka
9576e885ef Fix gnus-union' so as to behave like cl-union'
* lisp/gnus/gnus-group.el (gnus-group-prepare-flat):
Make gnus-union use `equal' to compare items in lists.

* lisp/gnus/gnus-util.el (gnus-union):
Make it behave like cl-union partially.
2015-12-23 23:08:55 +00:00
Paul Eggert
04dd5a502e Fix dired.c typo with ptrdiff_t vs Lisp_Object
* src/dired.c (file_name_completion): Don't assume Lisp_Object is
an integer type, fixing a problem introduced in the recent fix for
Bug#22169.
2015-12-23 11:49:22 -08:00
Eli Zaretskii
68218d8264 Document default process sentinel more prominently
* doc/lispref/processes.texi (Asynchronous Processes): Mention the
defaults for process filter and sentinel.  Provide cross-references.
(Process Information): Provide cross-references to where filters
and sentinels are described.
(Filter Functions): Add an index entry for "default filter".
(Sentinels): Add a few status messages not documented previously.
Resolve the "killed" confusion.  Document and describe the default
sentinel.  (Bug#22220)
2015-12-23 20:06:28 +02:00
Eli Zaretskii
30cc4e4b12 Fix file-name completion on OS X
* src/dired.c (file_name_completion): Reject false matches due to
file-name-coding-systems that decompose characters when encoding
file names, by comparing decoded file names as well.  (Bug#22169)
(syms_of_dired) <Qdecomposed_characters>: New DEFSYM.

* lisp/international/ucs-normalize.el (utf-8-hfs): Give it a
non-nil 'decomposed-characters' property.
2015-12-23 19:34:00 +02:00