Commit graph

118569 commits

Author SHA1 Message Date
Michael Albinus
9ff164ac6f * automated/vc-tests.el (vc-test--revision-granularity-function):
New defun.
(vc-test--create-repo-function): Rename from
`vc-test--create-repo-if-not-supported'.  Adapt all callees.
(vc-test--create-repo): Check also for revision-granularity.
(vc-test--unregister-function): Additional argument FILE.  Adapt
all callees.
(vc-test--working-revision): New defun.
(vc-test-*-working-revision): New tests.
2014-12-11 13:01:45 +01:00
Michael Albinus
452921cfc1 * vc/vc-hg.el (vc-hg-state): Make FILE absolute. Handle the case
that there is empty output.
2014-12-11 11:12:13 +01:00
Stefan Monnier
964f16e168 * lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Change default.
(eldoc-mode, eldoc-schedule-timer): Adjust to new default.
2014-12-10 21:56:33 -05:00
Glenn Morris
7b24460087 * lisp/let-alist.el: Cosmetic changes. 2014-12-10 16:18:46 -05:00
Glenn Morris
98582c0079 ChangeLog fixes 2014-12-10 16:17:44 -05:00
Artur Malabarba
a5b477aa92 Add let-alist macro and package.
* let-alist.el: Add new package and macro.
2014-12-10 13:59:11 -05:00
Eli Zaretskii
f3e16cbb52 Fix out-of-memory condition in display of long bracketed lines (bug#19322)
src/bidi.c (BIDI_CACHE_MAX_ELTS_PER_SLOT): New macro.
 (bidi_cache_max_elts): New global variable.
 (bidi_shelve_header_size): Add the sizeof bidi_cache_max_elts.
 (bidi_cache_shrink, bidi_initialize): Reset bidi_cache_max_elts to
 its initial value.
 (bidi_cache_search): Handle overflown cache.  Improve commentary.
 (bidi_cache_ensure_space): Limit allocations to the current value
 of bidi_cache_max_elts.  Force xpalloc not to over-allocate.  If
 less than a full BIDI_CACHE_CHUNK is left to the limit, decrease
 the increment to not exceed the limit.
 (bidi_cache_iterator_state): Now returns non-zero if succeeded to
 cache, zero otherwise (meaning the cache overflowed).  In the
 latter case, set bidi_cache_last_idx to -1.
 (bidi_peek_at_next_level): Handle overflown cache.
 (bidi_push_it): Increase the cache limit for iterating the new
 object.
 (bidi_pop_it): Decrease the cache limit back to previous value.
 (bidi_shelve_cache): Shelve the current value of the cache limit.
 (bidi_unshelve_cache): Restore the value of cache limit.
 (bidi_find_bracket_pairs): If the cache overflows while looking
 for the paired bracket, give up and let bidi_resolve_neutrals
 process the bracket as a simple neutral.
 (bidi_find_other_level_edge): If the cache overflows, fall back on
 Plan B, which effectively stops the reordering and restarts it on
 the next character (after resetting the cache).
 (bidi_move_to_visually_next): When the cache overflows, reset it
 after processing the last cached character.
2014-12-10 19:42:12 +02:00
Eric S. Raymond
8bc7ac5c25 Righteous featurectomy of vc-keep-workfiles - always do it.
* vc/vc-dispatcher.el, vc/vc-hooks.el, vc/vc-rcs.el, vc/vc-sccs.el,
vc/vc.el: Righteous featurectomy of vc-keep-workfiles, it's a
shoot-self-in-foot archaism.  Workfiles are always kept.
2014-12-10 12:33:26 -05:00
Rasmus Pank Roulund
bdc373bf45 (ange-ftp-switches-ok): Disallow flags causing trouble with ls over ftp.
Fixes: debbugs:19192

* net/ange-ftp.el (ange-ftp-switches-ok): Disallow flags causing
trouble with ls over ftp.  These flags result in ls returning no
output, causing Tramp-breakage.
2014-12-10 17:47:53 +01:00
Andreas Schwab
94a3f7648c * files.el (file-tree-walk): Use file-name-as-directory
unconditionally.
2014-12-10 09:47:36 +01:00
Michael Albinus
5c9a98bffb * automated/vc-tests.el (vc-test--register): Check, that the file
still exists after register and unregister operations.
2014-12-10 09:42:44 +01:00
Paul Eggert
99be75085c Fix glitches in gnutls.c, mostly memory-related
* gnutls.c: Sort macro definitions by name.
(fn_gnutls_transport_set_errno): Omit unreachable definition.
(fn_gnutls_x509_crt_get_signature): Omit unused symbol.
(gnutls_hex_string): Arg is now unsigned char *, to avoid a cast.
Prefer ptrdiff_t for sizes.  Check for arithmetic overflow when
calculating string length.  Use make_uninit_string, to avoid
copying the string.  Cast the char, not the pointer.
(gnutls_certificate_details): Use xmalloc and xfree, not malloc
and free.  Work even for dates past the year 9999.  Use void *
for buffers, to avoid casts.
2014-12-09 23:47:45 -08:00
Lars Magne Ingebrigtsen
c9e3deffab Speed up directory-files-recursively
* files.el (directory-files-recursively): Use
`file-name-all-completions' instead of `directory-files' for
greater speed.
2014-12-10 05:38:23 +01:00
Lars Magne Ingebrigtsen
ef8892db3c (shr-tag-object): Don't bug out on text elements in <object> 2014-12-10 05:00:32 +01:00
Paul Eggert
cc857dd0db Fix misspellings like "an unibyte buffer" 2014-12-09 16:27:23 -08:00
Glenn Morris
c54f8f8aeb eww.texi: Add missing "." 2014-12-09 18:24:33 -05:00
Lars Magne Ingebrigtsen
08a980a400 lisp/gnus/gnus-art.el: Refactored out gnus-article-mime-handles 2014-12-09 22:32:44 +00:00
Bozhidar Batsov
e8acfc7fb4 Add a command for string quotes toggling to ruby-mode
* progmodes/ruby-mode.el (ruby-toggle-string-quotes): New command that
allows you to quickly toggle between single-quoted and double-quoted
string literals.
2014-12-09 19:45:03 +02:00
Andy Moreton
9b185aa1ae gnutls.c (gnutls_protocol_get_name): Fix a copy/paste typo. 2014-12-09 19:16:55 +02:00
Bozhidar Batsov
fda355b5bd Associate more files with ruby-mode
* progmodes/ruby-mode.el (auto-mode-alist): Add .rabl, Berksfile
and Puppetfile.
2014-12-09 19:05:13 +02:00
Eric S. Raymond
baab20d73e vc/vc-src.el (vc-src-do-comand): Prepend -- to file argument list
* vc/vc-src.el (vc-src-do-comand): Prepend -- to file argument list,
avoids problems witth names containing hyphens.
2014-12-09 06:59:34 -05:00
Eric S. Raymond
bc71376cc0 Typo fix. 2014-12-09 06:58:32 -05:00
Wilson Snyder
d282d6a595 Sync with upstream verilog-mode revision aa4b777
* lisp/progmodes/verilog-mode.el (verilog-mode-version): Update.
(verilog-auto-end-comment-lines-re, verilog-end-block-ordered-re)
(verilog-set-auto-endcomments): Automatically comment property/
endproperty blocks to match other similar blocks like sequence/
endsequence, function/endfunction, etc.  Reported by Alex Reed.
(verilog-set-auto-endcomments): Fix end comments for functions of
type void, etc.  Detect the function- or task-name when
auto-commenting blocks that lack an explicit portlist.
Reported by Alex Reed.
(verilog-nameable-item-re): Fix nameable items that can have an
end-identifier to include endchecker, endgroup, endprogram,
endproperty, and endsequence.  Reported by Alex Reed.
(verilog-preprocessor-re, verilog-beg-of-statement):
Fix indentation of property/endproperty around pre-processor
directives.  Reported by Alex Reed.
(verilog-label-be): When auto-commenting a buffer, consider
auto-comments on all known keywords (not just a subset thereof).
Reported by Alex Reed.
(verilog-beg-of-statement): Fix labeling do-while blocks, bug842.
Reported by Alex Reed.
(verilog-beg-of-statement-1, verilog-at-constraint-p):
Fix hanging with many curly-bracket pairs, bug663.
(verilog-do-indent): Fix electric tab deleting form-feeds.
Note caused by indent-line-to deleting tabls pre 24.5.
(verilog-auto-output, verilog-auto-input, verilog-auto-inout)
(verilog-auto-inout-module, verilog-auto-inout-in): Doc fixes.
(verilog-read-always-signals, verilog-auto-sense-sigs)
(verilog-auto-reset): Fix AUTORESET with always_comb and always_latch,
bug844.  Reported by Greg Hilton.

Author: Alex Reed <acreed4@gmail.com> (tiny change)
* lisp/progmodes/verilog-mode.el (verilog-no-indent-begin-re):
Fix `verilog-indent-begin-after-if' nil not honoring 'forever',
'foreach', and 'do' keywords.
(verilog-endcomment-reason-re, verilog-beg-of-statement):
Fix labeling do-while blocks, bug842.
(verilog-backward-token): Fix indenting sensitivity lists with named
events, bug840.
2014-12-08 23:14:30 -08:00
Reto Zimmermann
fb0fcda820 Sync with upstream vhdl mode v3.36.1
* lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
(vhdl-compiler-alist): Anchor all error regexps.
(vhdl-compile-use-local-error-regexp): Change default to nil.
(vhdl-asort, vhdl-anot-head-p): Remove.
(vhdl-aput, vhdl-adelete, vhdl-aget): Simplify.
Remove optional argument of vhdl-aget and update all callers.
(vhdl-import-project): Also set `vhdl-compiler'.
2014-12-08 22:34:12 -08:00
Lars Magne Ingebrigtsen
11cf3e90c6 Implement a new function directory-files-recursively
* doc/lispref/files.texi (Contents of Directories): Document
directory-files-recursively.

* etc/NEWS: Mention directory-files-recursively.

* lisp/files.el (find-files): New function.
2014-12-09 07:21:17 +01:00
Glenn Morris
931f6fb6f5 Correct ChangeLog attribution
Ref thread: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00306.html
2014-12-08 21:20:10 -08:00
Glenn Morris
d790c4de3b biditest: Change maintainer to emacs-devel rather than FSF.
The same thing was done for other files a while ago.
2014-12-08 20:46:38 -08:00
Lars Magne Ingebrigtsen
c3ea511964 Make inline SVGs work in shr again
* net/shr.el (shr-dom-print): Don't print comments.
(shr-tag-svg): Give inline SVG images the right type.
2014-12-09 05:18:12 +01:00
Lars Magne Ingebrigtsen
a005f61018 Make eww mark valid/invalid https pages
* lisp/net/eww.el (eww-update-header-line-format): Mark valid/invalid
certificates in the header line.
(eww-invalid-certificate, eww-valid-certificate): New faces.
2014-12-09 04:21:57 +01:00
Lars Magne Ingebrigtsen
0cc8da5cd8 Make the https logic in url-http work on redirects
(url-http-parse-headers): When being redirected, make sure we
flush the previous certificate.
2014-12-09 04:21:12 +01:00
Lars Magne Ingebrigtsen
d7e5255013 Make URL pass the TLS peer status to the caller
* lisp/url/url-http.el (url-http-parse-headers): Pass the GnuTLS
status of the connection to the caller.
2014-12-09 03:59:48 +01:00
Fabián Ezequiel Gallina
afa1d80fe0 python.el: Don't change `comint-prompt-read-only' globally
Fixes: debbugs:19288

* lisp/progmodes/python.el (inferior-python-mode): Set
`comint-prompt-read-only` to `t` only locally.
2014-12-08 22:19:37 -03:00
Matt Curtis
09ef13993b (pulse-momentary-highlight-one-line): Respect POINT
Fixes: debbugs:17260

* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line): Respect
the POINT argument.
2014-12-09 00:57:12 +01:00
Lars Magne Ingebrigtsen
e9aaf96966 Make NSM warn on `high' for older protocols, and document
* doc/emacs/misc.texi (Network Security): Mention the new protocol-level
`high' NSM checks.

(nsm-check-protocol): Also warn if using SSL3 or older.
2014-12-08 22:51:54 +01:00
Lars Magne Ingebrigtsen
be6767d59b Make the NSM prompting have more data
(nsm-format-certificate): Include more data about the connection.
(nsm-query): Fill the text to that it looks nicer.
2014-12-08 22:40:57 +01:00
Lars Magne Ingebrigtsen
7befee11a8 * lisp/net/nsm.el (nsm-check-protocol): Test for RC4 on `high'. 2014-12-08 22:23:51 +01:00
Lars Magne Ingebrigtsen
ad67503f50 Make gnutls-peer-status return even more data
* src/gnutls.c (Fgnutls_peer_status): Return the key exchange, cipher
and MAC algorithms.
2014-12-08 22:23:50 +01:00
Eric S. Raymond
8665a748f9 maintaining.texi: Suopport fo Arch has been moved to obolte.
Remove references that imply otherwise.
2014-12-08 15:30:49 -05:00
Lars Magne Ingebrigtsen
d81562f583 (Fgnutls_error_fatalp): Doc fix (bug#18210)
Fixes: debbugs:18210
2014-12-08 21:12:11 +01:00
Stefan Monnier
b76bea4c26 Various minor details accumulated over time
* lisp/info.el (Info-mode-map): Remove left-over binding.
* lisp/net/tramp.el (tramp-handle-make-symbolic-link): Mark unused arg.
* lisp/obsolete/gulp.el (gulp-create-m-p-alist): Remove unused var `mnt-tm'.
* lisp/progmodes/gud.el (gud-gdb-completions): Remove unused var `start'.
* lisp/url/url-http.el (url-http-activate-callback): Make debug more verbose.
* src/process.c: Whitespace and line-break nitpicks.
2014-12-08 15:02:26 -05:00
Lars Magne Ingebrigtsen
e0e2f363e8 Fatal GnuTLS errors are now silent by default
Fixes: debbugs:16253

(emacs_gnutls_handle_error): Fatal errors should be on level 1, so
that they are not messaged by default.
2014-12-08 20:57:49 +01:00
Stefan Monnier
28057ef3b5 * lisp/emacs-lisp/avl-tree.el: Use lexical-binding and cl-lib.
(avl-tree--root): Remove redundant defsetf.
2014-12-08 14:49:17 -05:00
Lars Magne Ingebrigtsen
b7768d785f (nsm-check-protocol): Check for weak Diffie-Hellman prime bits.
Fixes: debbugs:19153
2014-12-08 20:41:05 +01:00
Lars Magne Ingebrigtsen
7c67502647 * src/gnutls.c: Add Windows specs for gnutls_dh_get_prime_bits. 2014-12-08 20:09:31 +01:00
Lars Magne Ingebrigtsen
6b1ab80ef9 `network-security-level' documentation simplification
* lisp/net/nsm.el (network-security-level): Remove the detailed
description, which was already outdated, and refer the users to
the manual.
2014-12-08 20:06:50 +01:00
Lars Magne Ingebrigtsen
ca7ad4271c Put back :signature-algorithm into gnutls.c
(gnutls_certificate_details): Put :signature-algorithm back again,
which was removed by mistake.
2014-12-08 19:58:39 +01:00
Lars Magne Ingebrigtsen
a0fe9b0481 (Fgnutls_peer_status): Return the DH prime bits for the connection 2014-12-08 19:48:38 +01:00
Lars Magne Ingebrigtsen
c498441ee6 (gnutls_certificate_details): Clean up whitespace slightly. 2014-12-08 19:40:50 +01:00
Lars Magne Ingebrigtsen
172bcf6f9f Remove unused data from gnutls_certificate_details
* src/gnutls.c (gnutls_certificate_details): The :signature isn't
that useful, so remove it.
2014-12-08 19:35:57 +01:00
Lars Magne Ingebrigtsen
09e5e01605 * etc/NEWS: Mention the new eww `S' command. 2014-12-08 19:30:16 +01:00