]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Ulf Jasper [Wed, 17 Dec 2014 19:54:28 +0000 (20:54 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoIntroduce tramp-histfile-override.
Ted Zlatanov [Wed, 17 Dec 2014 19:05:15 +0000 (14:05 -0500)]
Introduce tramp-histfile-override.

* net/tramp-sh.el (tramp-histfile-override): New variable.
(tramp-open-shell, tramp-maybe-open-connection): Use it.

9 years agoFix problem with images referenced within svg files. (bug#19373)
Ulf Jasper [Wed, 17 Dec 2014 19:50:12 +0000 (20:50 +0100)]
Fix problem with images referenced within svg files. (bug#19373)

Fixes: debbugs:19373
* src/image.c: Additional parameter 'filename' for
svg_load_image. Include "buffer.h".  Define library function
rsvg_handle_set_base_uri for WINDOWSNT.
(init_svg_functions): Initialize rsvg_handle_set_base_uri.
(fn_rsvg_handle_set_base_uri): Define fn_rsvg_handle_set_base_uri.
(svg_load): Pass a filename to svg_load_image: either name of
actual file or of current buffer's file.
(svg_load_image): New parameter 'filename', used for setting
base_uri, necessary for loading referenced images.

9 years ago* calc.texi (About This Manual): Update instructions
Jay Belanger [Wed, 17 Dec 2014 14:16:11 +0000 (08:16 -0600)]
* calc.texi (About This Manual): Update instructions
for building the manual.

9 years ago* lisp/vc/vc.el: Improve `dir-status-files' description
Dmitry Gutov [Wed, 17 Dec 2014 04:34:11 +0000 (06:34 +0200)]
* lisp/vc/vc.el: Improve `dir-status-files' description

9 years agoSpeed up package--list-loaded-files a bit
Dmitry Gutov [Wed, 17 Dec 2014 01:23:07 +0000 (03:23 +0200)]
Speed up package--list-loaded-files a bit

Fixes: debbugs:19390
* lisp/emacs-lisp/package.el (package--list-loaded-files): Don't call
file-truename on load-history elements.

9 years ago* lisp/emacs-lisp/seq.el: New file.
Nicolas Petton [Tue, 16 Dec 2014 23:42:30 +0000 (18:42 -0500)]
* lisp/emacs-lisp/seq.el: New file.

* doc/lispref/sequences.texi (Seq Library): Add documentation for seq.el.
* test/automated/seq-tests.el: New file.

9 years ago* lread.c (init_obarray): Declare Qt as special.
Paul Eggert [Tue, 16 Dec 2014 22:49:14 +0000 (14:49 -0800)]
* lread.c (init_obarray): Declare Qt as special.

This fixes a typo in the 2012-05-15 patch that
tried to declare Qt as special.

9 years ago* lisp/jit-lock.el (jit-lock-function): Don't defer if jit-lock-defer-time
Stefan Monnier [Tue, 16 Dec 2014 14:25:57 +0000 (09:25 -0500)]
* lisp/jit-lock.el (jit-lock-function): Don't defer if jit-lock-defer-time
is 0 and there is no input pending.

9 years ago* test/automated/data/flymake/Makefile: Comment.
Glenn Morris [Tue, 16 Dec 2014 03:30:50 +0000 (19:30 -0800)]
* test/automated/data/flymake/Makefile: Comment.

9 years agoDisable gcc color in test/automated/data/flymake/Makefile
Glenn Morris [Tue, 16 Dec 2014 02:08:40 +0000 (21:08 -0500)]
Disable gcc color in test/automated/data/flymake/Makefile

* test/automated/data/flymake/Makefile (check-syntax):
Prevent colorized gcc output from confusing flymake.

9 years agoMove flymake test data to more standard location
Glenn Morris [Tue, 16 Dec 2014 01:41:03 +0000 (20:41 -0500)]
Move flymake test data to more standard location

* test/automated/flymake-tests.el (flymake-tests-data-directory):
Change from flymake/warnpred to more standard data/flymake.

* .gitignore: Update for relocated flymake test data.

9 years agoFix query-replace-regexp when using lisp expressions for replacement
Juri Linkov [Mon, 15 Dec 2014 23:54:35 +0000 (01:54 +0200)]
Fix query-replace-regexp when using lisp expressions for replacement

* lisp/replace.el (query-replace-read-from): Use
query-replace-compile-replacement only on the return value.

Fixes: debbugs:19383
9 years agoLazy-highlight the whole string at point
Juri Linkov [Mon, 15 Dec 2014 23:45:12 +0000 (01:45 +0200)]
Lazy-highlight the whole string at point

* lisp/isearch.el (isearch-lazy-highlight-search): Extend the bound of
the wrapped search by the length of the search string to be able
to lazy-highlight the whole search string at point.

Fixes: debbugs:19353
9 years agoetc/NEWS: Mention `let-alist.
Artur Malabarba [Mon, 15 Dec 2014 22:54:44 +0000 (20:54 -0200)]
etc/NEWS: Mention `let-alist.

9 years ago* src/: Various fixes to use bool type and constants.
Stefan Monnier [Mon, 15 Dec 2014 20:41:11 +0000 (15:41 -0500)]
* src/: Various fixes to use bool type and constants.

* src/dispnew.c (update_single_window): Remove arg `force_p' since it's
always true.
* src/xfaces.c (clear_face_cache): Use bool for the argument type.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Alan Mackenzie [Mon, 15 Dec 2014 12:07:18 +0000 (12:07 +0000)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years ago"Advice" is a mass noun. Amend text accordingly.
Alan Mackenzie [Mon, 15 Dec 2014 12:04:52 +0000 (12:04 +0000)]
"Advice" is a mass noun.  Amend text accordingly.

cl.texi (Obsolete Macros): Replace "an advice" with "advice".

9 years ago"Advice" is a mass noun. Amend text accordingly.
Alan Mackenzie [Mon, 15 Dec 2014 11:54:42 +0000 (11:54 +0000)]
"Advice" is a mass noun.  Amend text accordingly.

functions.texi: (Advising Functions, Core Advising Primitives)
(Advising Named Functions, Advice combinators)
(Porting old advice): Replace, e.g., "an advice" with "advice".

9 years agoCorrect same_at_end when restoring window points
Paul Eggert [Mon, 15 Dec 2014 08:00:50 +0000 (00:00 -0800)]
Correct same_at_end when restoring window points

* fileio.c (Finsert_file_contents): Compute same_at_end character
position using the old buffer size, not the new one, since
restore_window_points wants the old size.
Fixes: debbugs:19161
9 years ago* net/shr.el (shr-fold-text): Don't bug out on zero-length text.
Lars Magne Ingebrigtsen [Mon, 15 Dec 2014 05:05:05 +0000 (06:05 +0100)]
* net/shr.el (shr-fold-text): Don't bug out on zero-length text.

9 years agoNew feature optionally to accelerate auto-repeated scrolling.
Alan Mackenzie [Sun, 14 Dec 2014 18:26:44 +0000 (18:26 +0000)]
New feature optionally to accelerate auto-repeated scrolling.

src/xdisp.c: Remove "static" from declaration of
Qfontification_functions.

src/window.c (window_scroll): bind fontification-functions to nil when
scrolling by whole screens and fast-but-imprecise-scrolling is non-nil.
(syms_of_window): New DEFVAR_BOOL fast-but-imprecise-scrolling.

src/lisp.h (bool): Declare Qfontification_functions extern.

lisp/cus-start.el (all): Add fast-but-imprecise-scrolling.

doc/emacs/display.texi (Scrolling): fast-but-imprecise-scrolling.
Describe new variable.

etc/NEWS: Add entry for fast-but-imprecise-scrolling.

9 years agoAdjust lisp/ChangeLog for custom-prompt-customize-unsaved-options.
Ted Zlatanov [Sun, 14 Dec 2014 17:05:26 +0000 (12:05 -0500)]
Adjust lisp/ChangeLog for custom-prompt-customize-unsaved-options.

Reworded ChangeLog entry based on Stefan Monnier's suggestions.

9 years agoLoad system's default trusted Certificate Authorities if available.
Eli Zaretskii [Sun, 14 Dec 2014 16:47:51 +0000 (18:47 +0200)]
Load system's default trusted Certificate Authorities if available.

 src/gnutls.c (gnutls_certificate_set_x509_system_trust)
 [GNUTLS >= 3.0.20]: Declare for WINDOWSNT.
 (init_gnutls_functions)(gnutls_certificate_set_x509_system_trust)
 [GNUTLS >= 3.0.20]: Load from shared library for WINDOWSNT.
 (fn_gnutls_certificate_set_x509_system_trust) [!WINDOWSNT]: Define
 new macro.
 (Fgnutls_boot) [GNUTLS >= 3.0.20]: Call
 gnutls_certificate_set_x509_system_trust.  Log an error message if
 it fails.

9 years agolet-alist.el: Version bump.
Artur Malabarba [Sun, 14 Dec 2014 13:17:00 +0000 (13:17 +0000)]
let-alist.el: Version bump.

9 years agolet-alist.el: Add lexical binding.
Artur Malabarba [Sun, 14 Dec 2014 13:15:50 +0000 (13:15 +0000)]
let-alist.el: Add lexical binding.

9 years agoAdd an extra column for Version in list-packages table
Steve Purcell [Sun, 14 Dec 2014 13:56:22 +0000 (15:56 +0200)]
Add an extra column for Version in list-packages table

* emacs-lisp/package.el (package-menu-mode): Use an extra column for
the "Version" column, to accomodate date-and-time-based versions.

9 years agoProvide custom-prompt-customize-unsaved-options.
Cameron Desautels [Sun, 14 Dec 2014 11:49:06 +0000 (06:49 -0500)]
Provide custom-prompt-customize-unsaved-options.

* doc/emacs/custom.texi (Saving Customizations): Mention
`custom-prompt-customize-unsaved-options'.

* etc/NEWS: Mention `custom-prompt-customize-unsaved-options'.

* etc/TODO: Remove its entry.

* lisp/cus-edit.el (custom-prompt-customize-unsaved-options): Add a
mechanism for prompting user about unsaved customizations.
(Bug#19328)

9 years agoFix Semantic completion-at-point functions in non-Semantic buffers
Dmitry Gutov [Sun, 14 Dec 2014 10:59:05 +0000 (12:59 +0200)]
Fix Semantic completion-at-point functions in non-Semantic buffers

Fixes: debbugs:19077
* lisp/cedet/semantic.el (semantic-analyze-completion-at-point-function)
(semantic-analyze-notc-completion-at-point-function)
(semantic-analyze-nolongprefix-completion-at-point-function): Do
nothing if the current buffer is not using Semantic.

9 years ago* lisp/fringe.el (fringe-bitmap-p): Fix 2014-12-05 breakage.
Dmitry Gutov [Sun, 14 Dec 2014 10:51:52 +0000 (12:51 +0200)]
* lisp/fringe.el (fringe-bitmap-p): Fix 2014-12-05 breakage.

9 years agoMove VC diff ASYNC argument to the fifth position
Dmitry Gutov [Sun, 14 Dec 2014 10:49:08 +0000 (12:49 +0200)]
Move VC diff ASYNC argument to the fifth position

* lisp/vc/vc-svn.el (vc-svn-diff):
* lisp/vc/vc-src.el (vc-src-diff):
* lisp/vc/vc-sccs.el (vc-sccs-diff):
* lisp/vc/vc-rcs.el (vc-rcs-diff):
* lisp/vc/vc-mtn.el (vc-mtn-diff):
* lisp/vc/vc-hg.el (vc-hg-diff):
* lisp/vc/vc-git.el (vc-git-diff):
* lisp/vc/vc-dav.el (vc-dav-diff):
* lisp/vc/vc-cvs.el (vc-cvs-diff):
* lisp/vc/vc-bzr.el (vc-bzr-diff):
* lisp/obsolete/vc-arch.el (vc-arch-diff): Move ASYNC argument to the end.

* lisp/vc/vc.el (vc-diff-internal): Pass `async' argument to the
backend `diff' command in the last position.

9 years ago* notes/unicode: Correct coding system
Paul Eggert [Sun, 14 Dec 2014 08:59:32 +0000 (00:59 -0800)]
* notes/unicode: Correct coding system

of lisp/international/titdic-cnv.el.

9 years ago* SKK-DIC/SKK-JISYO.L: Update to version 1.1216.
Paul Eggert [Sun, 14 Dec 2014 08:56:40 +0000 (00:56 -0800)]
* SKK-DIC/SKK-JISYO.L: Update to version 1.1216.

9 years agoSpelling fixes
Paul Eggert [Sun, 14 Dec 2014 07:40:04 +0000 (23:40 -0800)]
Spelling fixes

All uses changed.
* lib-src/etags.c (analyze_regex): Rename from analyse_regex.
* lisp/cedet/semantic/lex-spp.el:
(semantic-lex-spp-analyzer-do-replace):
Rename from semantic-lex-spp-anlyzer-do-replace.
* lisp/emacs-lisp/cconv.el (cconv--analyze-use):
Rename from cconv--analyse-use.
(cconv--analyze-function): Rename from cconv--analyse-function.
(cconv-analyze-form): Rename from cconv-analyse-form.
* src/regex.c (analyze_first): Rename from analyze_first.

9 years ago* notes/unicode: Track leim/quail file renames.
Paul Eggert [Sun, 14 Dec 2014 06:41:02 +0000 (22:41 -0800)]
* notes/unicode: Track leim/quail file renames.

9 years agoRemove lib-src/grep-changelog
Glenn Morris [Sun, 14 Dec 2014 02:38:21 +0000 (18:38 -0800)]
Remove lib-src/grep-changelog

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00145.html

* lib-src/grep-changelog: Remove file.

* lib-src/Makefile.in (INSTALLABLE_SCRIPTS): Remove.
(all, install, uninstall): Remove INSTALLABLE_SCRIPTS.

* doc/man/grep-changelog.1: Remove file.

* make-dist: No more lib-src/grep-changelog.

* INSTALL: No longer mention grep-changelog.

* admin/quick-install-emacs (PUBLIC_LIBSRC_SCRIPTS): Remove, and all uses.

* admin/authors.el (authors-valid-file-names): Add grep-changelog.

* etc/NEWS: Mention this.

9 years ago* INSTALL.REPO: Revert 2014-12-06 change.
Glenn Morris [Sun, 14 Dec 2014 01:57:46 +0000 (17:57 -0800)]
* INSTALL.REPO: Revert 2014-12-06 change.

You _can_ just run make after a clean checkout, thanks to the GNUmakefile.

9 years agoPlace ChangeLog entries in the correct files
Glenn Morris [Sun, 14 Dec 2014 01:50:06 +0000 (17:50 -0800)]
Place ChangeLog entries in the correct files

9 years agoConvert Czech and Slovakian refcards to UTF-8
Paul Eggert [Sat, 13 Dec 2014 23:56:10 +0000 (15:56 -0800)]
Convert Czech and Slovakian refcards to UTF-8

* admin/notes/unicode: Don't mention Czech and Slovakian refcards.
* etc/refcards/cs-dired-ref.tex, etc/refcards/cs-refcard.tex:
* etc/refcards/cs-survival.tex, etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex, etc/refcards/sk-survival.tex:
Convert from iso-latin-2 to utf-8.  Remove no-longer-necessary
coding comments and "\input utf8off" directives.

9 years ago* net/shr.el (shr-next-link): Don't error out at eob.
Andreas Schwab [Sat, 13 Dec 2014 18:03:31 +0000 (19:03 +0100)]
* net/shr.el (shr-next-link): Don't error out at eob.

9 years agoisearch-open-necessary-overlays: Open overlay ending at point
Nicolas Richard [Sat, 13 Dec 2014 15:54:14 +0000 (16:54 +0100)]
isearch-open-necessary-overlays: Open overlay ending at point

* lisp/isearch.el (isearch-open-necessary-overlays): Open overlay
ending at point (bug#19333).

9 years ago(shr-fold-text): Inhibit state from being altered.
Lars Magne Ingebrigtsen [Sat, 13 Dec 2014 15:32:17 +0000 (16:32 +0100)]
(shr-fold-text): Inhibit state from being altered.

9 years agoMake shr fold long title texts
Lars Magne Ingebrigtsen [Sat, 13 Dec 2014 15:23:40 +0000 (16:23 +0100)]
Make shr fold long title texts

* net/shr.el (shr-fold-text): New function.
(shr-show-alt-text, shr-urlify, shr-tag-img): Use it to fold long
alt/title texts.

9 years agoImplement a new function `directory-name-p'
Lars Magne Ingebrigtsen [Sat, 13 Dec 2014 15:10:04 +0000 (16:10 +0100)]
Implement a new function `directory-name-p'

* doc/lispref/files.texi (Relative File Names): Mention
`directory-name-p'.

* etc/NEWS: Mention directory-name-p.

(directory-name-p): New function.
(directory-files-recursively): Use it.

9 years agodirectory-files-recursively symlink fix
Lars Magne Ingebrigtsen [Sat, 13 Dec 2014 14:50:28 +0000 (15:50 +0100)]
directory-files-recursively symlink fix

* files.el (directory-files-recursively): Really check whether
files are symlinks.

9 years agoemacs-lisp/package.el (package-activate-1): Reload package after upgrade
Artur Malabarba [Sat, 13 Dec 2014 12:25:31 +0000 (12:25 +0000)]
emacs-lisp/package.el (package-activate-1): Reload package after upgrade

After installing a package, reloads files returned by
`package--list-loaded-files'.
Fix bug#10125, bug#18443, and bug#18448.

9 years agoemacs-lisp/package.el (package--list-loaded-files): New function
Artur Malabarba [Sat, 13 Dec 2014 11:48:08 +0000 (11:48 +0000)]
emacs-lisp/package.el (package--list-loaded-files): New function

List files in a given directory which correspond to already loaded
files.

9 years agognulib.mk (stddef.h): Sync with the latest change in lib/gnulib.mk.
Eli Zaretskii [Sat, 13 Dec 2014 14:26:12 +0000 (16:26 +0200)]
gnulib.mk (stddef.h): Sync with the latest change in lib/gnulib.mk.

9 years agoFix wrong humber arguments passed to vc-svn-diff.
Eric S. Raymond [Sat, 13 Dec 2014 11:15:33 +0000 (06:15 -0500)]
Fix wrong humber arguments passed to vc-svn-diff.

* vc/vc-svn.el (vc-svn-diff): Fix bug #19312.

9 years agoMerge remote-tracking branch 'origin/emacs-24'
Andreas Schwab [Sat, 13 Dec 2014 10:45:10 +0000 (11:45 +0100)]
Merge remote-tracking branch 'origin/emacs-24'

9 years agoFix dates in ChangeLog entries merged from emacs-24.
Eli Zaretskii [Sat, 13 Dec 2014 08:00:31 +0000 (10:00 +0200)]
Fix dates in ChangeLog entries merged from emacs-24.

9 years agoSpelling fixes
Paul Eggert [Sat, 13 Dec 2014 02:42:57 +0000 (18:42 -0800)]
Spelling fixes

9 years agoReplace union hack with C11-style max_align_t
Paul Eggert [Sat, 13 Dec 2014 01:51:03 +0000 (17:51 -0800)]
Replace union hack with C11-style max_align_t

* admin/merge-gnulib (GNULIB_MODULES): Add stddef, for max_align_t.
* lib/gnulib.mk: Regenerate.
* src/alloc.c (XMALLOC_BASE_ALIGNMENT): Use max_align_t instead of
a hack involving a union.

9 years agoMerge from gnulib (a couple more changes)
Paul Eggert [Sat, 13 Dec 2014 00:40:01 +0000 (16:40 -0800)]
Merge from gnulib (a couple more changes)

9 years agoRemove duplicate ChangeLog entries
Paul Eggert [Sat, 13 Dec 2014 00:48:06 +0000 (16:48 -0800)]
Remove duplicate ChangeLog entries

9 years agoMerge from origin/emacs-24
Ted Zlatanov [Sat, 13 Dec 2014 00:15:10 +0000 (19:15 -0500)]
Merge from origin/emacs-24

bd6c441 * simple.el (password-word-equivalents): Add "passcode", used for numeric secrets like PINs or RSA tokens.
16d4c1c A better fix for bug#19346
82ec808 * .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.
3cf7629 Git ignore lib/std*.h
301a401 Always define `gnutls-available-p' even if GnuTLS is not available.
d76b9b2 Don't break example string between 2 lines (bug#19257)
75b4857 Port commit-msg to mawk
9ac0332 Improve commit-msg messages and autosquash
0c2f254 Support overflow-newline-into-fringe together with word-wrap (bug#19300)
935ee05 * net/tramp-sh.el (tramp-get-remote-path): Use a login shell in order to determine `tramp-own-remote-path'.
c2db939 python.el: Support interpreter paths with spaces
d83f329 ChangeLog fix
0f9fbb9 Port commit-message checking to FreeBSD 9.
3db1ada admin/MAINTAINERS: Update my interests and responsibilities.
6382f24 * .gitignore: Ignore autosave files.

Conflicts:
ChangeLog
lisp/progmodes/python.el
src/gnutls.c

9 years agoMerge from gnulib
Paul Eggert [Fri, 12 Dec 2014 07:16:37 +0000 (23:16 -0800)]
Merge from gnulib

2014-12-12 stddef: support C11's max_align_t
2014-12-08 apply _GL_ATTRIBUTE_PURE to some inline functions
2014-12-02 support GNU format printf and scanf on mingw
* doc/misc/texinfo.tex, lib/stat-time.h, lib/stddef.in.h:
* lib/timespec.h, m4/extensions.m4, m4/stddef_h.m4, m4/stdio_h.m4:
Update from gnulib.
* lib/gnulib.mk: Regenerate.

9 years ago* lisp/progmodes/python.el (python-indent-line): Use `noindent' in strings.
Stefan Monnier [Fri, 12 Dec 2014 14:55:42 +0000 (09:55 -0500)]
* lisp/progmodes/python.el (python-indent-line): Use `noindent' in strings.
(python-indent-levels): Document extra value.
(python-indent-calculate-indentation): Return `noindent' in strings.
(python-indent-post-self-insert-function)
(python-indent-calculate-levels): Handle new value.

9 years ago* simple.el (password-word-equivalents): Add "passcode", used for
Michael Albinus [Fri, 12 Dec 2014 13:09:10 +0000 (14:09 +0100)]
* simple.el (password-word-equivalents): Add "passcode", used for
numeric secrets like PINs or RSA tokens.

9 years agoRemove more (fboundp 'gnutls-available-p)
Lars Magne Ingebrigtsen [Fri, 12 Dec 2014 11:32:42 +0000 (12:32 +0100)]
Remove more (fboundp 'gnutls-available-p)

* lisp/net/network-stream.el (network-stream-open-starttls): No need to
check for the availability of `gnutls-available-p'.

9 years agoIgnore directory symlinks in directory-files-recursively
Lars Magne Ingebrigtsen [Fri, 12 Dec 2014 10:52:58 +0000 (11:52 +0100)]
Ignore directory symlinks in directory-files-recursively

* files.el (directory-files-recursively): Don't follow symlinks to
other directories.

9 years agoRemove superfluous `gnutls-available-p' check
Lars Magne Ingebrigtsen [Fri, 12 Dec 2014 10:48:29 +0000 (11:48 +0100)]
Remove superfluous `gnutls-available-p' check

* lisp/url/url-http.el (url-http-parse-headers): `gnutls-available-p' is
now always available.

9 years agoA better fix for bug#19346
Eli Zaretskii [Fri, 12 Dec 2014 09:19:59 +0000 (11:19 +0200)]
A better fix for bug#19346

 src/gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move
 gnutls-available-p out of the HAVE_GNUTLS conditional, and define
 them only once.

9 years agolatest-on-branch-p is no longer a public method
Eric S. Raymond [Fri, 12 Dec 2014 04:29:41 +0000 (23:29 -0500)]
latest-on-branch-p is no longer a public method

* vc/vc-dav.el, vc/vc-git.el, vc/vc-hg.el, vc/vc-src.el, vc/vc.el:
latest-on-branch-p is no longer a public method.

9 years agoRemove VC rollback method.
Eric S. Raymond [Fri, 12 Dec 2014 03:44:32 +0000 (22:44 -0500)]
Remove VC rollback method.

* vc/vc.el, vc/vc-hg.el, vc/vc-git.el, vc/vc-hooks.el,
vc/vc-mtn.el, vc/vc-rcs.el, vc/vc-sccs.el, vc/vc-src.el: rrollback
method removed, to be replaced in the future by uncommit.

9 years ago* .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.
Paul Eggert [Fri, 12 Dec 2014 02:24:33 +0000 (18:24 -0800)]
* .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.

9 years agoGit ignore lib/std*.h
Paul Eggert [Fri, 12 Dec 2014 02:11:46 +0000 (18:11 -0800)]
Git ignore lib/std*.h

* .gitignore: Add lib/std*.h, to ignore stdarg.h, stdbool.h, and
stddef.h.  Remove subsumed entries.

9 years agoAlways define `gnutls-available-p' even if GnuTLS is not available.
Ted Zlatanov [Thu, 11 Dec 2014 22:55:36 +0000 (17:55 -0500)]
Always define `gnutls-available-p' even if GnuTLS is not available.

Fixes: debbugs:19346
* gnutls.c (Fgnutls_available_p syms_of_gnutls): Move later for
clarity.  Let the availability check return Qnil when the GnuTLS
integration is not available, instead of erroring out.

* gnutls.h: Always declare syms_of_gnutls.

* emacs.c (main): Always include gnutls.h and run syms_of_gnutls.

9 years agoFixes: debbugs:19161
Stefan Monnier [Thu, 11 Dec 2014 21:07:23 +0000 (16:07 -0500)]
Fixes: debbugs:19161
* src/fileio.c: Better preserve window-points during revert.

(Qget_buffer_window_list): New var.
(get_window_points_and_markers, restore_window_points): New functions.
(Finsert_file_contents): Use them to save and restore window-points.

9 years agoDon't break example string between 2 lines (bug#19257)
Eli Zaretskii [Thu, 11 Dec 2014 18:27:00 +0000 (20:27 +0200)]
Don't break example string between 2 lines (bug#19257)

 doc/lispref/text.texi (Comparing Text): Prevent a text string from being
 broken between 2 lines by using @w{}.

9 years agoFix a problem in url.el without GnuTLS
Lars Magne Ingebrigtsen [Thu, 11 Dec 2014 15:57:33 +0000 (16:57 +0100)]
Fix a problem in url.el without GnuTLS

Fixes: debbugs:19346
* lisp/url/url-http.el (url-http-parse-headers): Check that
`gnutls-available-p' is defined.

9 years agoNever pass an invalid X connection descriptor to an input reading loop
Dmitry Antipov [Thu, 11 Dec 2014 13:26:00 +0000 (16:26 +0300)]
Never pass an invalid X connection descriptor to an input reading loop

Fixes: debbugs:19147
* xterm.c (x_delete_terminal): Call emacs_close for X connection
descriptor if called from x_connection_closed and always delete
this descriptor from keyboard waiting set (Bug#19147).

9 years ago* automated/vc-tests.el (vc-test--revision-granularity-function):
Michael Albinus [Thu, 11 Dec 2014 12:01:45 +0000 (13:01 +0100)]
* 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.

9 years ago* vc/vc-hg.el (vc-hg-state): Make FILE absolute. Handle the case
Michael Albinus [Thu, 11 Dec 2014 10:12:13 +0000 (11:12 +0100)]
* vc/vc-hg.el (vc-hg-state): Make FILE absolute.  Handle the case
that there is empty output.

9 years agoPort commit-msg to mawk
Paul Eggert [Thu, 11 Dec 2014 07:17:04 +0000 (23:17 -0800)]
Port commit-msg to mawk

Problem reported by Ted Zlatanov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg01093.html
* build-aux/git-hooks/commit-msg (space, non_space, non_print):
New vars.  Use them as approximations to POSIX bracket expressions,
on implementations like mawk that do not support POSIX regexps.

9 years agoImprove commit-msg messages and autosquash
Paul Eggert [Thu, 11 Dec 2014 04:44:35 +0000 (20:44 -0800)]
Improve commit-msg messages and autosquash

Problem reported by Michal Nazarewicz in Bug#19337.
* build-aux/git-hooks/commit-msg: Add "commit message" to
diagnostics.  Distinguish better between tabs and other
unprintable chars in diagnostics.  Don't complain if a prefix
"fixup! " or "squash! " makes a summary line too long.

9 years ago* lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Change default.
Stefan Monnier [Thu, 11 Dec 2014 02:56:33 +0000 (21:56 -0500)]
* lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Change default.

(eldoc-mode, eldoc-schedule-timer): Adjust to new default.

9 years ago* lisp/let-alist.el: Cosmetic changes.
Glenn Morris [Wed, 10 Dec 2014 21:18:46 +0000 (16:18 -0500)]
* lisp/let-alist.el: Cosmetic changes.

9 years agoChangeLog fixes
Glenn Morris [Wed, 10 Dec 2014 21:17:44 +0000 (16:17 -0500)]
ChangeLog fixes

9 years agoAdd let-alist macro and package.
Artur Malabarba [Wed, 10 Dec 2014 15:15:22 +0000 (10:15 -0500)]
Add let-alist macro and package.

* let-alist.el: Add new package and macro.

9 years agoSupport overflow-newline-into-fringe together with word-wrap (bug#19300)
Eli Zaretskii [Wed, 10 Dec 2014 17:54:19 +0000 (19:54 +0200)]
Support overflow-newline-into-fringe together with word-wrap (bug#19300)

 src/xdisp.c (move_it_in_display_line_to, display_line): Don't
 disallow overflow-newline-into-fringe when word-wrap is in
 effect.

9 years agoFix out-of-memory condition in display of long bracketed lines (bug#19322)
Eli Zaretskii [Wed, 10 Dec 2014 17:39:37 +0000 (19:39 +0200)]
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.

9 years agoRighteous featurectomy of vc-keep-workfiles - always do it.
Eric S. Raymond [Wed, 10 Dec 2014 17:33:26 +0000 (12:33 -0500)]
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.

9 years ago(ange-ftp-switches-ok): Disallow flags causing trouble with ls over ftp.
Rasmus Pank Roulund [Wed, 10 Dec 2014 16:47:53 +0000 (17:47 +0100)]
(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.

9 years ago* net/tramp-sh.el (tramp-get-remote-path): Use a login shell in
Michael Albinus [Wed, 10 Dec 2014 13:15:51 +0000 (14:15 +0100)]
* net/tramp-sh.el (tramp-get-remote-path): Use a login shell in
order to determine `tramp-own-remote-path'.

9 years ago* files.el (file-tree-walk): Use file-name-as-directory
Andreas Schwab [Wed, 10 Dec 2014 08:44:26 +0000 (09:44 +0100)]
* files.el (file-tree-walk): Use file-name-as-directory
unconditionally.

9 years ago* automated/vc-tests.el (vc-test--register): Check, that the file
Michael Albinus [Wed, 10 Dec 2014 08:42:44 +0000 (09:42 +0100)]
* automated/vc-tests.el (vc-test--register): Check, that the file
still exists after register and unregister operations.

9 years agoFix glitches in gnutls.c, mostly memory-related
Paul Eggert [Wed, 10 Dec 2014 07:47:16 +0000 (23:47 -0800)]
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.

9 years agoSpeed up directory-files-recursively
Lars Magne Ingebrigtsen [Wed, 10 Dec 2014 04:38:23 +0000 (05:38 +0100)]
Speed up directory-files-recursively

* files.el (directory-files-recursively): Use
`file-name-all-completions' instead of `directory-files' for
greater speed.

9 years ago(shr-tag-object): Don't bug out on text elements in <object>
Lars Magne Ingebrigtsen [Wed, 10 Dec 2014 04:00:22 +0000 (05:00 +0100)]
(shr-tag-object): Don't bug out on text elements in <object>

9 years agoFix misspellings like "an unibyte buffer"
Paul Eggert [Wed, 10 Dec 2014 00:26:46 +0000 (16:26 -0800)]
Fix misspellings like "an unibyte buffer"

9 years agoeww.texi: Add missing "."
Glenn Morris [Tue, 9 Dec 2014 23:24:33 +0000 (18:24 -0500)]
eww.texi: Add missing "."

9 years agolisp/gnus/gnus-art.el: Refactored out gnus-article-mime-handles
Lars Magne Ingebrigtsen [Tue, 9 Dec 2014 22:32:44 +0000 (22:32 +0000)]
lisp/gnus/gnus-art.el: Refactored out gnus-article-mime-handles

9 years agoAdd a command for string quotes toggling to ruby-mode
Bozhidar Batsov [Tue, 9 Dec 2014 17:43:24 +0000 (19:43 +0200)]
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.

9 years agognutls.c (gnutls_protocol_get_name): Fix a copy/paste typo.
Andy Moreton [Tue, 9 Dec 2014 17:16:55 +0000 (19:16 +0200)]
gnutls.c (gnutls_protocol_get_name): Fix a copy/paste typo.

9 years agoAssociate more files with ruby-mode
Bozhidar Batsov [Tue, 9 Dec 2014 17:05:13 +0000 (19:05 +0200)]
Associate more files with ruby-mode

* progmodes/ruby-mode.el (auto-mode-alist): Add .rabl, Berksfile
and Puppetfile.

9 years agovc/vc-src.el (vc-src-do-comand): Prepend -- to file argument list
Eric S. Raymond [Tue, 9 Dec 2014 11:55:54 +0000 (06:55 -0500)]
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.

9 years agoTypo fix.
Eric S. Raymond [Mon, 8 Dec 2014 22:15:58 +0000 (17:15 -0500)]
Typo fix.

9 years agoSync with upstream verilog-mode revision aa4b777
Wilson Snyder [Tue, 9 Dec 2014 07:14:30 +0000 (23:14 -0800)]
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.

9 years agoSync with upstream vhdl mode v3.36.1
Reto Zimmermann [Tue, 9 Dec 2014 06:34:12 +0000 (22:34 -0800)]
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'.