Commit graph

62623 commits

Author SHA1 Message Date
Stefan Monnier
b34578dd88 * lisp/vc: Fix use of find-conflicted-file in Git.
* lisp/vc/vc.el (vc-find-conflicted-file): Look for conflicted files in the
current "project" rather than just the current directory.
* lisp/vc/vc-git.el (vc-git-conflicted-files): Clarify in which directory
the file names make sense.
2014-12-01 13:16:54 -05:00
Stefan Monnier
8dac9c34d8 * lisp/vc/diff-mode.el (diff-kill-applied-hunks): New command.
* lisp/vc/smerge-mode.el (smerge-swap): New command.
2014-12-01 13:16:53 -05:00
Ulf Jasper
581914e45f newsticker: Prevent multiple "Could not download..." messages. Fixes bug#19166.
* lisp/net/newst-backend.el (newsticker--get-news-by-url-callback):
Pass correct status to `newsticker--sentinel-work'.
(newsticker--sentinel-work): Use "newsticker--download-error" as
guid in order to prevent multiple "Could not download..."
messages.  Fixes bug#19166.

* lisp/net/newst-treeview.el (newsticker--treeview-item-show): Check
window liveliness before measuring its width.
2014-12-01 19:14:54 +01:00
Ivan Shmakov
52fab40c16 Call `eww-after-render-hook' in the correct buffer
Fixes: debbugs:19225

* net/eww.el (eww-render): Call `eww-after-render-hook' in the
correct buffer.
2014-12-01 18:56:02 +01:00
Eric S. Raymond
40ce283460 Test checkin to attempt to tickle a bug reported on the dev list. 2014-12-01 12:06:19 -05:00
Lars Magne Ingebrigtsen
f8b82217c7 * net/nsm.el (network-security-level): Change the default to `medium'. 2014-12-01 17:47:05 +01:00
Eric S. Raymond
8bb7019c27 ChangeLog typo fix. 2014-12-01 11:44:34 -05:00
Eric S. Raymond
d17bae9039 Refactor VC merging to fix a layer violation.
* vc/vc.el, vc/vc-cvs.el, vc/vc-rcs.el, vc/vc-svn.el: The 'merge'
backend method of RCS/CVS/SVN is now 'merge-file', to contrast with
'merge-branch'. Prompting for merge revisions is pushed down to the
back ends; this fixes a layering violation that caused bad behavior
with SVN.
2014-12-01 11:43:10 -05:00
Lars Magne Ingebrigtsen
31410dcb09 Minor eww point placement fixup
* net/eww.el (eww): Leave point in a place that doesn't cause
scrolling when displaying "Loading...".
2014-12-01 17:09:01 +01:00
Eric S. Raymond
cb8ed25555 Small but crucial change for new VC registration API. 2014-12-01 10:59:05 -05:00
Eric S. Raymond
4893831f69 Update some documentation changes and todo items. 2014-12-01 10:57:09 -05:00
Eric S. Raymond
185320a5fe Finish vc-stay-local containment.
* vc/vc.el, vc-hooks.el, and all backends: API simplification;
vc-stay-local-p and repository-hostname are no longer public
methods. Only the CVS and SVN backends used these, and the SVN
support was conditioned out because svn status -v is too slow.
The CVS back end retaiin this machibery and the vc-stay-local
configuration variable now only affects it.
2014-12-01 10:47:27 -05:00
Eric S. Raymond
2a81c5d94d Confine vc-stay-local to CVS, because it was unusable in SVN. 2014-12-01 10:11:42 -05:00
Eric S. Raymond
c108372525 Remove stay-local support in svn back end, because...
...status -v is so slow that it's unusable.
2014-12-01 10:04:10 -05:00
Stefan Monnier
f0e8c1eac2 New macro `define-inline'.
* lisp/emacs-lisp/inline.el: New file.
2014-12-01 09:45:15 -05:00
Eric S. Raymond
578d91ac50 Remove vc-state-heuristic from the set of public methods.
* vc/vc.el, vc-hooks.el, and all backends: API simplification;
vc-state-heuristic is no longer a public method, having been removed
where it is redundant, unnecessary, or known buggy. This eliminated
all backends except CVS.  Eliminates bug#7850.
2014-12-01 09:41:54 -05:00
Eric S. Raymond
33b4235db6 The vc-mistrust-permissions configuration variable is gone.
* vc/vc-cvs.el, vc/vc-hooks.el, vc/vc-rcs.el, vc/vc-sccs.el: Eliminate
vc-mistrust-permissions.  It was only relevant to the RCS and SCCS
back ends and defaulted to t. Code now always mistrusts permissions -
by actual measurement the effect on performance is negligible. As a
side effect bug#11490 is now irrelevant.
2014-12-01 09:08:26 -05:00
Eric S. Raymond
f82f3f1f17 API simplification: remove vc-workfile-unchanged-p from pubic methods.
* vc/vc.el, vc-hooks.el, and all backends: API simplification;
vc-workfile-unchanged-p is no longer a public method (but the RCS and
SCCS back ends retain it as a private method used in state
computation). This method was redundant with vc-state and usually
implemented as a trivial call to same. Fixes the failure mode
described in bug#694.
2014-12-01 08:24:27 -05:00
Eric S. Raymond
2532d74a5f Renove duplicate code. 2014-12-01 07:39:15 -05:00
Eric S. Raymond
9e9e3432fa Argument removal inadvertently omitted from my previous commit. 2014-12-01 07:08:40 -05:00
Eric S. Raymond
2f4f920079 VC API simplification: remove ability to set initial revision.
This hasn't made any sense since RCS, and was a dumb stunt then.

* vc/vc.el and all backends: API simplification; init-revision is
gone, and vc-registered functions no longer take an initial-revision
argument.
2014-12-01 06:23:10 -05:00
Glenn Morris
7536c8645e * lisp/gnus/gnus-cloud.el (gnus-cloud): Add :version tag. 2014-12-01 00:28:08 -08:00
Glenn Morris
6228c5d4d9 ChangeLog fix: standardize some bug refs. 2014-11-29 13:50:13 -08:00
Glenn Morris
9457d88b43 Add missing ChangeLog entry. 2014-11-29 13:44:31 -08:00
Glenn Morris
9402d80f25 * lisp/vc/vc-filewise.el: Comment fixes. 2014-11-29 13:38:29 -08:00
Glenn Morris
741f5e15dd * lisp/vc/vc-src.el: Fix copy-pasted :version tags. 2014-11-29 13:34:29 -08:00
Glenn Morris
1252594e56 ChangeLog fix 2014-11-29 13:31:57 -08:00
Glenn Morris
aa1459ae2a Fix up merged ChangeLog entries (dates, duplication, etc) 2014-11-29 13:25:50 -08:00
Paul Rankin
287740d6ed * outline.el (outline-move-subtree-down): Refactor and improve code. 2014-11-29 14:56:59 +01:00
Paul Eggert
0cce3623b1 Merge branch 'emacs-24'. 2014-11-28 23:07:16 -08:00
Stefan Monnier
ac4532a232 * lisp/simple.el (execute-extended-command--shorter): Fix the "M-p" case.
Fixes: debbugs:19152
2014-11-28 18:14:38 -05:00
Martin Rudalics
7b79b1abad Fix two issues around help-window-select. (Bug#11039) (Bug#19012)
* help.el (help-window-old-frame): New variable.
(help-window-select): Default to nil (Bug#11039).  Rewrite
doc-string.
(help-window-setup): When the help window appears on another
frame and `help-window-select' is non-nil, give that frame input
focus too (Bug#19012).
(with-help-window): Store selected frame in
help-window-old-frame.
2014-11-28 18:12:32 +01:00
Ulf Jasper
d36439ca66 newsticker: Take care of nil value for `newsticker-groups-filename'.
* lisp/net/newst-treeview.el (newsticker--treeview-load): Take care of
nil value for `newsticker-groups-filename'.
2014-11-28 16:27:34 +01:00
Daiki Ueno
f33ec1f529 epg: Use epg-context-set-*-callback for extra treatment of args
* epa.el (epa-sign-file, epa-encrypt-file, epa-decrypt-region)
(epa-sign-region, epa-encrypt-region): Use
`epg-context-set-{passphrase,progress}-callback', instead of
`setf'.  This partially reverts commit 9e48a95c (bug#19150).
Reported by José A. Romero L.
2014-11-28 15:59:23 +09:00
Lars Magne Ingebrigtsen
d931478266 Fix typo in last checkin
* eww.el (eww-restore-history): Bind
`inhibit-modification-hooks' instead of `after-change-functions'.
2014-11-27 21:26:49 +01:00
Lars Magne Ingebrigtsen
a5fde629ff * net/eww.el (eww-restore-history): Bind `inhibit-modification-hooks'
instead of `after-change-functions'.
2014-11-27 20:28:34 +01:00
Lars Magne Ingebrigtsen
370258f761 (eww-process-text-input): Try to keep track of the size more reliably. 2014-11-27 20:26:31 +01:00
Ulf Jasper
cceb7a8921 newsticker: Handle embedded (x)html in atom feeds.
* lisp/net/newst-backend.el (newsticker--parse-atom-1.0): Handle
embedded (x)html in summary node.
2014-11-27 19:32:08 +01:00
Sam Steingold
07efa3f0ba Use `mouse-menu-bar-map' when no other menus are available.
* lisp/menu-bar.el (menu-bar-open): When everything else fails,
use (mouse-menu-bar-map).
2014-11-27 13:17:42 -05:00
Ulf Jasper
5749885098 newsticker: Change wording of confirmation prompt regarding obsolete variable `newsticker-groups-filename'.
Fixes: debbugs:19165

* lisp/net/newst-treeview.el (newsticker-groups-filename): Change
default value to nil.  Point out that variable is obsolete in doc
string.
(newsticker--treeview-load): Change wording of the questions the
user is asked when `newsticker-groups-filename' is found to be
used and we offer to read and remove the groups file.
2014-11-27 18:37:47 +01:00
Lars Magne Ingebrigtsen
9ec7bd97fa (eww-mode): Revert mistanken removal of `buffer-disable-undo'. 2014-11-27 17:52:08 +01:00
Lars Magne Ingebrigtsen
7c449b8f0d Add more sanity checks to the last eww after-change-function patch 2014-11-27 17:50:05 +01:00
Lars Magne Ingebrigtsen
604ce9124e (eww-process-text-input): Fix deletion at the start of the field, too. 2014-11-27 17:42:28 +01:00
Lars Magne Ingebrigtsen
5519c34ef8 (eww-restore-history): Inhibit change functions while restoring the history. 2014-11-27 17:23:32 +01:00
Lars Magne Ingebrigtsen
a5b07aa6b5 eww input field fixup
Fixes: debbugs:19085

(eww-process-text-input): Don't shorten the input field if
deleting at the last character.
2014-11-27 17:19:52 +01:00
Lars Magne Ingebrigtsen
4c555e9afa Record the right URL in eww
* net/eww.el (eww): Record the new URL immediately, so that if the
HTTP fetch fails, we have the right URL in the buffer.
2014-11-27 17:06:26 +01:00
Lars Magne Ingebrigtsen
2d431afee4 Add a DOM pretty-printing function
* doc/lispref/text.texi (Document Object Model): Mention `dom-pp'.

* lisp/dom.el (dom-pp): New function.
2014-11-27 16:57:22 +01:00
Stephen Berman
b3910f6539 outline.el: Fix subtree movement.
Fixes: debbugs:19102

Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
* outline.el (outline-move-subtree-down): Make sure we can move
forward to find the end of the subtree and the insertion point.
2014-11-27 11:03:58 +01:00
Leonard Randall
b66511f768 Backport regexp stack overflow fix from emacs-24.
* textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
for comment lines non-greedy and stopping at newlines to fix stack
overflows with large files. [Backport]

Signed-off-by: Tassilo Horn <tsdh@gnu.org>
2014-11-27 09:38:21 +01:00
Fabián Ezequiel Gallina
7bf7edf53f * lisp/progmodes/python.el (python-shell-completion-setup-code): Use
__builtin__ module (or builtins in Python 3) and catch all errors
when importing readline and rlcompleter.
2014-11-26 23:45:24 -03:00