]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoMake a prefix to `eww-reload' work locally
Lars Magne Ingebrigtsen [Sun, 7 Dec 2014 19:49:16 +0000 (20:49 +0100)]
Make a prefix to `eww-reload' work locally

Fixes: debbugs:19086
* net/eww.el (eww-reload): Take a prefix to work locally (bug#19086).

9 years agoeww history restoration fix
Ivan Shmakov [Sun, 7 Dec 2014 19:38:38 +0000 (20:38 +0100)]
eww history restoration fix

Fixes: debbugs:18550
* net/eww.el (eww-list-histories): Restore the history in the
correct buffer.

9 years agoeww bookmark display fixup
Lars Magne Ingebrigtsen [Sun, 7 Dec 2014 19:32:07 +0000 (20:32 +0100)]
eww bookmark display fixup

Fixes: debbugs:16398
* net/eww.el (eww-bookmark-prepare): Display URLs in first by
displaying shortened titles first.

9 years ago(message-change-subject): Really check whether the subject changed
Lars Magne Ingebrigtsen [Sun, 7 Dec 2014 17:58:15 +0000 (18:58 +0100)]
(message-change-subject): Really check whether the subject changed

9 years ago* lisp/progmodes/python.el: Recognize docstrings.
Tom Willemse [Sun, 7 Dec 2014 16:24:35 +0000 (11:24 -0500)]
* lisp/progmodes/python.el: Recognize docstrings.

(python-docstring-at-p, python-font-lock-syntactic-face-function):
New functions.
(python-mode): Use them.

9 years agoFixes: debbugs:19133
Jan D [Sun, 7 Dec 2014 16:12:40 +0000 (17:12 +0100)]
Fixes: debbugs:19133
* nsimage.m (setPixmapData): Make bmRep local so class member is not
set.

9 years agofix last patch
Sam Steingold [Sat, 6 Dec 2014 23:53:39 +0000 (18:53 -0500)]
fix last patch

9 years agonewsticker: Context menu in treeview's tree.
UJ [Sat, 6 Dec 2014 19:56:56 +0000 (20:56 +0100)]
newsticker: Context menu in treeview's tree.

* net/newst-treeview.el (newsticker--treeview-list-add-item)
(newsticker--treeview-propertize-tag): Bind tree menu to mouse-3.
(newsticker--treeview-create-groups-menu)
(newsticker--treeview-create-tree-menu): Removed.
(newsticker--treeview-tree-open-menu): New.
(newsticker-treeview-tree-click): Pass event to
`newsticker-treeview-tree-do-click'.
(newsticker-treeview-tree-do-click): Open treemenu on mouse-3.

9 years ago* CONTRIBUTE: minor improvements
Stephen Leake [Sat, 6 Dec 2014 08:28:38 +0000 (02:28 -0600)]
* CONTRIBUTE: minor improvements

* ChangeLog: cleanup entries for my recent commits

9 years agoImprove CONTRIBUTE and related files.
Stephen Leake [Sat, 6 Dec 2014 08:11:36 +0000 (02:11 -0600)]
Improve CONTRIBUTE and related files.

* CONTRIBUTE: improve; add explicit web references, move some info from
  admin/notes/* here.

* INSTALL.REPO: You can't "just run make" after a clean checkout.

* admin/notes/commits: deleted; merged into ./CONTRIBUTE

* admin/notes/repo: move commit, branch info into ./CONTRIBUTE

9 years ago* automated/vc-tests.el: New file.
Michael Albinus [Sat, 6 Dec 2014 08:14:36 +0000 (09:14 +0100)]
* automated/vc-tests.el: New file.

9 years agoBetter support for milti-line shell input.
Juri Linkov [Fri, 5 Dec 2014 23:55:20 +0000 (01:55 +0200)]
Better support for milti-line shell input.

* lisp/comint.el (comint-history-isearch-search)
(comint-history-isearch-wrap): Use field-beginning instead of
comint-line-beginning-position.
(comint-send-input): Go to the end of the field instead of the end
of the line to accept whole multi-line input.
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html

9 years agoBetter check for displaying completions near the minibuffer.
Juri Linkov [Fri, 5 Dec 2014 23:42:11 +0000 (01:42 +0200)]
Better check for displaying completions near the minibuffer.

* lisp/minibuffer.el (minibuffer-completion-help): Compare
selected-window with minibuffer-window to check whether
completions should be displayed near the minibuffer.
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00311.html

Fixes: debbugs:17809
9 years agopreparing for further changes/cleanup to developers/contributors docs
Stephen Leake [Fri, 5 Dec 2014 19:13:55 +0000 (13:13 -0600)]
preparing for further changes/cleanup to developers/contributors docs

* etc/CONTRIBUTE: renamed to ./CONTRIBUTE,

(my first commit to emacs trunk ever :)

9 years agoFix minor bugs in vc.
Michael Albinus [Fri, 5 Dec 2014 20:36:47 +0000 (21:36 +0100)]
Fix minor bugs in vc.

* vc/vc-mtn.el (vc-mtn-root):
* vc/vc-svn.el (vc-svn-registered): Make FILE absolute.

9 years agoMerge from emacs-24
Stefan Monnier [Fri, 5 Dec 2014 20:30:09 +0000 (15:30 -0500)]
Merge from emacs-24

9 years agoMerge from origin/emacs-24
Stefan Monnier [Fri, 5 Dec 2014 20:22:15 +0000 (15:22 -0500)]
Merge from origin/emacs-24

The following commit was skipped:

f9f2509 Auto-commit of loaddefs files.

9 years agoMerge from emacs-24
Stefan Monnier [Fri, 5 Dec 2014 20:20:02 +0000 (15:20 -0500)]
Merge from emacs-24

9 years agoMerge from origin/emacs-24
Stefan Monnier [Fri, 5 Dec 2014 20:12:00 +0000 (15:12 -0500)]
Merge from origin/emacs-24

The following commit was skipped:

babb0ca ChangeLog fix (do not merge to master)

9 years agoMerge from origin/emacs-24
Stefan Monnier [Fri, 5 Dec 2014 20:12:00 +0000 (15:12 -0500)]
Merge from origin/emacs-24

bb19b22 Python.el: Update commentary on RET-behavior

9 years ago* lisp: Prefer inlinable functions to macros.
Stefan Monnier [Fri, 5 Dec 2014 17:49:53 +0000 (12:49 -0500)]
* lisp: Prefer inlinable functions to macros.

* lisp/fringe.el (fringe-bitmap-p): Make it a plain function.

* lisp/tooltip.el (tooltip-region-active-p): Remove.

* lisp/net/shr.el (shr-char-breakable-p, shr-char-kinsoku-bol-p)
(shr-char-kinsoku-eol-p, shr-char-nospace-p): Use define-inline.

* lisp/url/url-future.el (url-future-done-p, url-future-completed-p)
(url-future-errored-p, url-future-cancelled-p):
* lisp/url/url-dav.el (url-dav-http-success-p): Use define-inline.

* lisp/vc/ediff-init.el (ediff-odd-p): Remove.
(ediff-background-face): Use cl-oddp instead.
(ediff-buffer-live-p): Make it a defsubst.

9 years ago* lisp/emacs-lisp/eieio-core.el: Prefer inlinable functions over macros.
Stefan Monnier [Fri, 5 Dec 2014 17:13:09 +0000 (12:13 -0500)]
* lisp/emacs-lisp/eieio-core.el: Prefer inlinable functions over macros.

(class-p, generic-p, eieio-object-p, class-abstract-p):
Make them defsubst, so as to avoid corner case problems where
the arg might be evaluated in the condition-case, or it can't be passed
to higher-order functions like `cl-some'.

9 years ago(widget-choose) Let numeric keypad work
Nicolas Richard [Fri, 5 Dec 2014 06:29:26 +0000 (07:29 +0100)]
(widget-choose) Let numeric keypad work

Fixes: debbugs:19268
* wid-edit.el (widget-choose): Let numeric keypad work
and remove old menu-related code.

9 years ago* NEWS: Add some doc markers to the eww stuff.
Lars Magne Ingebrigtsen [Fri, 5 Dec 2014 16:05:09 +0000 (17:05 +0100)]
* NEWS: Add some doc markers to the eww stuff.

9 years ago* eww.texi (Basics): Document eww PDF viewing.
Lars Magne Ingebrigtsen [Fri, 5 Dec 2014 16:01:24 +0000 (17:01 +0100)]
* eww.texi (Basics): Document eww PDF viewing.

9 years agoMake eww use mailcap when displaying PDF files
Lars Magne Ingebrigtsen [Fri, 5 Dec 2014 15:51:51 +0000 (16:51 +0100)]
Make eww use mailcap when displaying PDF files

Fixes: debbugs:19270
* net/eww.el (eww-display-pdf): Let mailcap determine how to
display PDF files.

9 years agoMake it easier to use mailcap for viewing single files
Lars Magne Ingebrigtsen [Fri, 5 Dec 2014 15:40:45 +0000 (16:40 +0100)]
Make it easier to use mailcap for viewing single files

* mailcap.el (mailcap-mime-data): Add doc-view-mode as a viewer for
PDFs.
(mailcap-view-mime): New function.

9 years agofix last patch
Sam Steingold [Fri, 5 Dec 2014 15:31:25 +0000 (10:31 -0500)]
fix last patch

* nextstep/Makefile.in (links): Use abs_top_builddir et al; link over DOC.

9 years agofix a typo in doc string
Sam Steingold [Fri, 5 Dec 2014 14:39:59 +0000 (09:39 -0500)]
fix a typo in doc string

9 years ago .gitignore: Ignore test/biditest.txt.
Eli Zaretskii [Fri, 5 Dec 2014 11:19:14 +0000 (13:19 +0200)]
 .gitignore: Ignore test/biditest.txt.

9 years agoReduce memory footprint of struct bidi_it by a factor of 5.
Eli Zaretskii [Fri, 5 Dec 2014 10:17:15 +0000 (12:17 +0200)]
Reduce memory footprint of struct bidi_it by a factor of 5.

 src/dispextern.h (enum bidi_dir_t): Force NEUTRAL_DIR to be zero.
 (struct bidi_stack): Reduce size by using bit fields and by
 packing sos, override, and isolate_status into a single 8-bit
 byte called 'flags'.
 src/bidi.c (ISOLATE_STATUS, OVERRIDE): New macros.
 (bidi_push_embedding_level): Construct flags from individual
 bits.  Adapt to changes in prev_for_neutral and next_for_neutral
 members.
 (bidi_pop_embedding_level): Use ISOLATE_STATUS.  Extract 'sos'
 from flags.  Adapt to changes in prev_for_neutral,
 next_for_neutral, and last_strong members.
 (bidi_line_init): Initialize flags to zero.
 (bidi_resolve_explicit, bidi_resolve_weak, bidi_resolve_brackets)
 (bidi_resolve_neutral): Use ISOLATE_STATUS and OVERRIDE.

9 years agoCompare with the most recently used window by default.
Juri Linkov [Fri, 5 Dec 2014 00:50:41 +0000 (02:50 +0200)]
Compare with the most recently used window by default.

* lisp/vc/compare-w.el (compare-windows-get-window-function):
New defcustom.
(compare-windows-get-recent-window)
(compare-windows-get-next-window): New functions.
(compare-windows, compare-windows-sync-default-function):
Use `compare-windows-get-window-function' instead of `next-window'.
(compare-windows): Add diff/match messages with region boundaries.
Fixes: debbugs:19170
9 years ago* lisp/subr.el (filter): Remove. Use `cl-remove-if-not' or `seq-filter'.
Stefan Monnier [Thu, 4 Dec 2014 20:57:23 +0000 (15:57 -0500)]
* lisp/subr.el (filter): Remove.  Use `cl-remove-if-not' or `seq-filter'.

9 years ago* src/eval.c (backtrace_eval_unrewind): Rewind also the excursions.
Stefan Monnier [Thu, 4 Dec 2014 19:16:59 +0000 (14:16 -0500)]
* src/eval.c (backtrace_eval_unrewind): Rewind also the excursions.
(Fapply): Try and simplify the control flow.

9 years ago* src/eval.c (Fsignal): Remove duplicate test.
Lee Duhem [Thu, 4 Dec 2014 19:13:13 +0000 (14:13 -0500)]
* src/eval.c (Fsignal): Remove duplicate test.

(Fautoload_do_load): Fix up docstring.

9 years ago* lisp/progmodes/sh-script.el: Fix indentation rule of "| while".
Stefan Monnier [Thu, 4 Dec 2014 15:09:08 +0000 (10:09 -0500)]
* lisp/progmodes/sh-script.el: Fix indentation rule of "| while".

Fixes: debbugs:18031
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning
of the whole pipe when indenting an opening keyword after a |.
Generalize this treatment to opening keywords like "while".

9 years ago* net/shr.el (shr--extract-best-source): Ignore non-text children.
Lars Magne Ingebrigtsen [Thu, 4 Dec 2014 13:42:57 +0000 (14:42 +0100)]
* net/shr.el (shr--extract-best-source): Ignore non-text children.

9 years agoImplement copying of a buffer portion while preserving visual order.
Eli Zaretskii [Thu, 4 Dec 2014 09:31:33 +0000 (11:31 +0200)]
Implement copying of a buffer portion while preserving visual order.

 See http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02203.html
 and http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00063.html
 for the rationale.

 lisp/simple.el (bidi-directional-controls-chars)
 (bidi-directional-non-controls-chars): New variables.
 (squeeze-bidi-context-1, squeeze-bidi-context)
 (line-substring-with-bidi-context)
 (buffer-substring-with-bidi-context): New functions.

 doc/lispref/display.texi (Bidirectional Display): Document
 'buffer-substring-with-bidi-context'.
 doc/lispref/text.texi (Buffer Contents): Mention
 'buffer-substring-with-bidi-context' with a cross-reference.

 etc/NEWS: Mention 'buffer-substring-with-bidi-context'.

9 years agolisp/files.el (file-tree-walk): Doc fix.
Eli Zaretskii [Thu, 4 Dec 2014 07:58:19 +0000 (09:58 +0200)]
lisp/files.el (file-tree-walk): Doc fix.

9 years agolisp/autoinsert.el: Change default of auto-insert-alist.
Rüdiger Sonderfeld [Thu, 4 Dec 2014 06:08:18 +0000 (07:08 +0100)]
lisp/autoinsert.el: Change default of auto-insert-alist.

* lisp/autoinsert.el (auto-insert-alist): Update C/C++ header and
program support to match more extensions.  Replace non-alnum
characters when generating include guards (headers) and check for more
extensions when generating includes (programs)
(bug#19254).

9 years agoFix punctuation glitches in file-tree-walk docstring.
Eric S. Raymond [Wed, 3 Dec 2014 23:26:34 +0000 (18:26 -0500)]
Fix punctuation glitches in file-tree-walk docstring.

* files.el (file-tree-walk): Fix docstring.

9 years agoenable in-place GUI
Sam Steingold [Wed, 3 Dec 2014 20:45:23 +0000 (15:45 -0500)]
enable in-place GUI

* nextstep/Makefile.in (links): New phony target to create a fake
installation pointing back to the source tree to run GUI Emacs
in-place (http://article.gmane.org/gmane.emacs.devel:178330).

9 years agoFix bug whereby saving files hung in VC hook.
Karl Fogel [Wed, 3 Dec 2014 20:23:26 +0000 (14:23 -0600)]
Fix bug whereby saving files hung in VC hook.

Saving a buffer visiting a file under SVN control would hang if the
remote repository were unreachable, because the VC hooks tried to run
"svn status -u" on the file, where the "-u" tells svn to get update
information from the remote repository.
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00174.html

* vc/vc-svn.el (vc-svn-state): Remove optional `localp' argument
  and always pass "-v" to "svn status", never "-u".

9 years ago* lisp/emacs-lisp/inline.el: Cosmetic and minor fixes.
Stefan Monnier [Wed, 3 Dec 2014 18:51:36 +0000 (13:51 -0500)]
* lisp/emacs-lisp/inline.el: Cosmetic and minor fixes.

* lisp/emacs-lisp/inline.el: Fix up copyright header.
(inline-quote, inline-const-p, inline-const-val, inline-error):
Silence compiler warnings.
(inline-letevals): Fix edebug spec.
(inline--testconst-p): Consider lambda expressions as const-p.
(inline--getconst-val): Use inline--testconst-p.

9 years agoFixes: debbugs:19250
Stefan Monnier [Wed, 3 Dec 2014 18:42:20 +0000 (13:42 -0500)]
Fixes: debbugs:19250
* lisp/minibuffer.el (completion-table-dynamic): Add arg `switch-buffer'

and change default to stay in the minibuffer when called from
the minibuffer.
(lazy-completion-table): Use this new argument to preserve the
old behavior.

* lisp/progmodes/elisp-mode.el (elisp--local-variables): Don't burp on
incorrect lexical elements (bug#19250).

9 years agoetc/NEWS: Mention 'file-tree-walk'.
Eli Zaretskii [Wed, 3 Dec 2014 18:24:58 +0000 (20:24 +0200)]
etc/NEWS: Mention 'file-tree-walk'.

9 years agoFix gnutls.c build on MinGW
Chris Zheng [Wed, 3 Dec 2014 14:38:39 +0000 (15:38 +0100)]
Fix gnutls.c build on MinGW

Fixes: debbugs:19231
* gnutls.c (init_gnutls_functions, gnutls_certificate_details):
Use gnutls_sign_get_name directly because
gnutls_sign_algorithm_get_name is a macro on MinGW.
(init_gnutls_functions): Load missing gnutls_server_name_set.

9 years agoAdded file-tree-walk to files.el.
Eric S. Raymond [Wed, 3 Dec 2014 14:28:09 +0000 (09:28 -0500)]
Added file-tree-walk to files.el.

9 years ago* automated/tramp-tests.el (tramp-test29-vc-registered):
Michael Albinus [Wed, 3 Dec 2014 08:58:20 +0000 (09:58 +0100)]
* automated/tramp-tests.el (tramp-test29-vc-registered):
Fallback for changed `vc-register' argument list.

9 years agoFix tramp-tests, broken by incompatible vc.el change
Glenn Morris [Wed, 3 Dec 2014 06:15:54 +0000 (22:15 -0800)]
Fix tramp-tests, broken by incompatible vc.el change

* test/automated/tramp-tests.el (tramp-test29-vc-registered):
Update for recent incompatible change in vc-register.

9 years ago* lisp/whitespace.el (whitespace-big-indent-regexp): Add :version.
Glenn Morris [Tue, 2 Dec 2014 23:37:27 +0000 (18:37 -0500)]
* lisp/whitespace.el (whitespace-big-indent-regexp): Add :version.

9 years agoAdd filter macro, which does what you expect.
Eric S. Raymond [Tue, 2 Dec 2014 21:18:06 +0000 (16:18 -0500)]
Add filter macro, which does what you expect.

* subr.el (filter): New macro. Because it's just silly for a Lisp not
to have this in 2014.  And VC mode needs it.

9 years agoIn vc, abolish the dir-status method.
Eric S. Raymond [Tue, 2 Dec 2014 15:10:55 +0000 (10:10 -0500)]
In vc, abolish the dir-status method.

9 years agoAllow to search for characters whose bidi directionality was overridden.
Eli Zaretskii [Tue, 2 Dec 2014 14:13:47 +0000 (16:13 +0200)]
Allow to search for characters whose bidi directionality was overridden.

 src/bidi.c (bidi_find_first_overridden): New function.
 src/xdisp.c (Fbidi_find_overridden_directionality): New function.
 (syms_of_xdisp): Defsubr it.
 src/dispextern.h (bidi_find_first_overridden): Add prototype.

 doc/lispref/display.texi (Bidirectional Display): Document
 'bidi-find-overridden-directionality'.

 etc/NEWS: Mention 'bidi-find-overridden-directionality'.

9 years agoFixes: debbugs:9133
Jan Djärv [Tue, 2 Dec 2014 13:30:47 +0000 (14:30 +0100)]
Fixes: debbugs:9133
* nsimage.m (initFromSkipXBM:width:height:flip:length:): Set bmRep
to nil after release.

9 years agoMore flicker fixes for OSX, related to bug 18757.
Jan Djärv [Tue, 2 Dec 2014 13:05:27 +0000 (14:05 +0100)]
More flicker fixes for OSX, related to bug 18757.

* nsfns.m (ns_set_name_as_filename): Don't set represented filename
at once, call ns_set_represented_filename instead.

* nsterm.h: Declare ns_set_represented_filename.

* nsterm.m (represented_filename, represented_frame): New variables.
(ns_set_represented_filename): New function.
(sendEvent:): Set represented filename here to avoid flicker,
related to Bug#18757.

9 years agoEliminate an unuted function argument.
Eric S. Raymond [Tue, 2 Dec 2014 13:01:46 +0000 (08:01 -0500)]
Eliminate an unuted function argument.

* vc.el, all backends: API simplification: Remove 4th 'default-state'
argument from vc-dir-status files and its backend methods - no backend
method ever set it.  It was used only in the fallback method to to set
a default of 'up-to-date, though a convoluted call chain obscured
this.

9 years agoAnother longstanding to-do: bind vc-delete-file.
Eric S. Raymond [Tue, 2 Dec 2014 10:31:04 +0000 (05:31 -0500)]
Another longstanding to-do: bind vc-delete-file.

9 years agoClean up a longstanding to-do item.
Eric S. Raymond [Tue, 2 Dec 2014 09:38:08 +0000 (04:38 -0500)]
Clean up a longstanding to-do item.

* vc.el (vc-expand-dirs): Now takes a second BACKEND argument,
improving behavior on directories using multiple file-oriented VCSEs.

9 years agoRemove clear-headers from VC's public method set.
Eric S. Raymond [Tue, 2 Dec 2014 04:49:35 +0000 (23:49 -0500)]
Remove clear-headers from VC's public method set.

* vc/vc.el and all backends: API simplification; clear-headers is no
longer a public method.  It is now local to the one place it's used,
in the RCS steal-lock method.

9 years agoFix minor bug introduced in 'Terminate vc-disable-async-diff'
Eric S. Raymond [Tue, 2 Dec 2014 03:56:01 +0000 (22:56 -0500)]
Fix minor bug introduced in 'Terminate vc-disable-async-diff'

9 years agoUpdate the git backend's header comment.
Eric S. Raymond [Tue, 2 Dec 2014 01:00:40 +0000 (20:00 -0500)]
Update the git backend's header comment.

9 years agoRemove could-register from the set of public VC backend methods,
Eric S. Raymond [Mon, 1 Dec 2014 23:54:28 +0000 (18:54 -0500)]
Remove could-register from the set of public VC backend methods,

* vc/vc.el and all backends: API simplification; could-register
is no longer a public method.  (vc-cvs.el still has a private
implementation.)

9 years agoDocument a trap for the unwary.
Eric S. Raymond [Mon, 1 Dec 2014 23:03:38 +0000 (18:03 -0500)]
Document a trap for the unwary.

9 years agoTerminate vc-disable-async-diff with extreme prejudice.
Eric S. Raymond [Mon, 1 Dec 2014 22:56:41 +0000 (17:56 -0500)]
Terminate vc-disable-async-diff with extreme prejudice.

* vc/vc.el, and all backends: API cleanup; the backend diff method
takes an explicit async flag.  This eliminates a particularly ugly
global.

9 years agoRestore ChangeLog entry clobbered earlier today.
Glenn Morris [Mon, 1 Dec 2014 21:35:13 +0000 (16:35 -0500)]
Restore ChangeLog entry clobbered earlier today.

9 years ago* lisp/vc/vc-svn.el: Remove stray comment char introduced earlier today.
Glenn Morris [Mon, 1 Dec 2014 21:32:04 +0000 (16:32 -0500)]
* lisp/vc/vc-svn.el: Remove stray comment char introduced earlier today.

9 years agoMerge some of the differences from the standalone CC-mode.
Stefan Monnier [Mon, 1 Dec 2014 20:06:49 +0000 (15:06 -0500)]
Merge some of the differences from the standalone CC-mode.

The main change is to only use the `category' text-property only when
available.  For that many calls are changed to use c-get-char-property,
c-next-single-property-change, c-sc-scan-lists,
c-sc-parse-partial-sexp, c-unmark-<->-as-paren.

* lisp/progmodes/cc-align.el (c-lineup-respect-col-0): New function.

* lisp/progmodes/cc-cmds.el (c-forward-into-nomenclature)
(c-backward-into-nomenclature): Use cc-subword if subword-mode is
not available.
(c-beginning-of-defun, c-end-of-defun, c-mark-function)
(c-indent-line-or-region): Use c-region-is-active-p.

* lisp/progmodes/cc-defs.el (c-version): Bump up to 5.33.
(c-use-category): New const.
(c-next-single-property-change): New macro.
(c-region-is-active-p): Prefer region-active-p when available.
(c-search-backward-char-property): Fix old min/max typo; probably
a copy/paste error.
(c-mark-<-as-paren, c-mark->-as-paren, c-unmark-<->-as-paren):
Turn them into macros that obey c-use-category.
(c-sc-scan-lists-no-category+1+1, c-sc-scan-lists-no-category+1-1)
(c-sc-scan-lists-no-category-1+1, c-sc-scan-lists-no-category-1-1)
(c-sc-scan-lists, c-sc-parse-partial-sexp)
(c-looking-at-non-alphnumspace): New macros.
(c-sc-parse-partial-sexp-no-category): New function.
(c-emacs-features): Add `category-properties' element.

* lisp/progmodes/cc-engine.el (c-invalidate-state-cache, c-parse-state):
Handle the case where categories are not available.
(c-record-parse-state-state, c-replay-parse-state-state):
Handle marker values.
(c-before-change-check-<>-operators): Look for the `syntax-table'
property rather than for the corresponding `category'.
(c-looking-at-decl-block): Remove unused var
`c-disallow-comma-in-<>-arglists'.
(c-forward-<>-arglist-recur): Remove unused var
`orig-record-found-types'.

* lisp/progmodes/cc-langs.el (c-modified-constant): New lang var.
(c-known-type-key): Don't make a list just to throw it away.

* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-unbound-variables)
(cc-bytecomp-original-functions, cc-bytecomp-original-properties)
(cc-bytecomp-loaded-files): Re-set each time the file is loaded.
(cc-bytecomp-obsolete-var, cc-bytecomp-ignore-obsolete)
(cc-bytecomp-obsolete-fun): Delete unused functions.

* lisp/progmodes/cc-mode.el (c-just-done-before-change): New var.
(c-basic-common-init): Initialize it.
(c-common-init): Only use mode-require-final-newline when available.
(c-before-change): Check and set c-just-done-before-change.
(c-after-change): Re-set c-just-done-before-change.
(c-advise-fl-for-region): New macro.
(lazy-lock-defer-rest-after-change, lazy-lock-defer-line-after-change)
(font-lock-after-change-function, jit-lock-after-change):
Advise if needed.

9 years agobzr-state randomly/unpredictably fails on non-bzr files.
Eric S. Raymond [Mon, 1 Dec 2014 19:51:03 +0000 (14:51 -0500)]
bzr-state randomly/unpredictably fails on non-bzr files.

9 years agoshr-dom-print dom.el changes
Lars Magne Ingebrigtsen [Mon, 1 Dec 2014 19:17:39 +0000 (20:17 +0100)]
shr-dom-print dom.el changes

* net/shr.el (shr-dom-print): Fix up `shr-dom-print' after the
dom.el changes.

9 years agoChangeLog fix
Glenn Morris [Mon, 1 Dec 2014 18:48:43 +0000 (13:48 -0500)]
ChangeLog fix

9 years ago* admin/update_autogen (commit): Revert earlier change.
Glenn Morris [Mon, 1 Dec 2014 18:40:06 +0000 (13:40 -0500)]
* admin/update_autogen (commit): Revert earlier change.

This was based on a misunderstanding due to the mess that had been
made in trunk of this file and its ChangeLog.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 1 Dec 2014 18:36:14 +0000 (13:36 -0500)]
Auto-commit of loaddefs files.

9 years agoChangeLog fixes.
Glenn Morris [Mon, 1 Dec 2014 18:35:16 +0000 (13:35 -0500)]
ChangeLog fixes.

9 years ago* admin/update_autogen: Fix bogosity introduced in 2014-11-16 merge.
Glenn Morris [Mon, 1 Dec 2014 18:29:03 +0000 (13:29 -0500)]
* admin/update_autogen: Fix bogosity introduced in 2014-11-16 merge.

9 years ago* lisp/vc: Fix use of find-conflicted-file in Git.
Stefan Monnier [Mon, 1 Dec 2014 18:15:28 +0000 (13:15 -0500)]
* 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.

9 years ago* lisp/vc/diff-mode.el (diff-kill-applied-hunks): New command.
Stefan Monnier [Mon, 1 Dec 2014 18:12:37 +0000 (13:12 -0500)]
* lisp/vc/diff-mode.el (diff-kill-applied-hunks): New command.
* lisp/vc/smerge-mode.el (smerge-swap): New command.

9 years agonewsticker: Prevent multiple "Could not download..." messages. Fixes bug#19166.
Ulf Jasper [Mon, 1 Dec 2014 18:14:54 +0000 (19:14 +0100)]
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.

9 years ago* lisp/simple.el (newline): Place the hook buffer-locally,
Stefan Monnier [Mon, 1 Dec 2014 18:10:05 +0000 (13:10 -0500)]
* lisp/simple.el (newline): Place the hook buffer-locally,
to make sure it's first.

9 years ago* admin/update_autogen (commit): With git, call "add" before "commit".
Glenn Morris [Mon, 1 Dec 2014 17:58:51 +0000 (12:58 -0500)]
* admin/update_autogen (commit): With git, call "add" before "commit".

9 years agoCall `eww-after-render-hook' in the correct buffer
Ivan Shmakov [Mon, 1 Dec 2014 17:55:54 +0000 (18:55 +0100)]
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.

9 years ago* .gitignore: Avoid "**", as it requires Git 1.8.2 or later.
Paul Eggert [Mon, 1 Dec 2014 17:16:04 +0000 (09:16 -0800)]
* .gitignore: Avoid "**", as it requires Git 1.8.2 or later.

9 years ago* .gitignore: Remove redundant pattern (subsumed by _*).
Paul Eggert [Mon, 1 Dec 2014 17:13:35 +0000 (09:13 -0800)]
* .gitignore: Remove redundant pattern (subsumed by _*).

9 years agoTest checkin to attempt to tickle a bug reported on the dev list.
Eric S. Raymond [Mon, 1 Dec 2014 17:05:32 +0000 (12:05 -0500)]
Test checkin to attempt to tickle a bug reported on the dev list.

9 years ago* net/nsm.el (network-security-level): Change the default to `medium'.
Lars Magne Ingebrigtsen [Mon, 1 Dec 2014 16:46:28 +0000 (17:46 +0100)]
* net/nsm.el (network-security-level): Change the default to `medium'.

9 years agoChangeLog typo fix.
Eric S. Raymond [Mon, 1 Dec 2014 16:44:34 +0000 (11:44 -0500)]
ChangeLog typo fix.

9 years agoRefactor VC merging to fix a layer violation.
Eric S. Raymond [Mon, 1 Dec 2014 16:41:45 +0000 (11:41 -0500)]
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.

9 years ago* .gitignore: Ignore loaddefs directly under lisp, and in sub-sub-directories
Lars Magne Ingebrigtsen [Mon, 1 Dec 2014 16:11:50 +0000 (17:11 +0100)]
* .gitignore: Ignore loaddefs directly under lisp, and in sub-sub-directories

9 years agoMinor eww point placement fixup
Lars Magne Ingebrigtsen [Mon, 1 Dec 2014 16:09:01 +0000 (17:09 +0100)]
Minor eww point placement fixup

* net/eww.el (eww): Leave point in a place that doesn't cause
scrolling when displaying "Loading...".

9 years agoSmall but crucial change for new VC registration API.
Eric S. Raymond [Mon, 1 Dec 2014 15:59:05 +0000 (10:59 -0500)]
Small but crucial change for new VC registration API.

9 years agoUpdate some documentation changes and todo items.
Eric S. Raymond [Mon, 1 Dec 2014 15:57:09 +0000 (10:57 -0500)]
Update some documentation changes and todo items.

9 years agoFinish vc-stay-local containment.
Eric S. Raymond [Mon, 1 Dec 2014 15:47:27 +0000 (10:47 -0500)]
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.

9 years agoConfine vc-stay-local to CVS, because it was unusable in SVN.
Eric S. Raymond [Mon, 1 Dec 2014 15:11:42 +0000 (10:11 -0500)]
Confine vc-stay-local to CVS, because it was unusable in SVN.

9 years agoRemove stay-local support in svn back end, because...
Eric S. Raymond [Mon, 1 Dec 2014 15:03:17 +0000 (10:03 -0500)]
Remove stay-local support in svn back end, because...

...status -v is so slow that it's unusable.

9 years agoNew macro `define-inline'.
Stefan Monnier [Mon, 1 Dec 2014 14:45:15 +0000 (09:45 -0500)]
New macro `define-inline'.

* lisp/emacs-lisp/inline.el: New file.

9 years agoRemove vc-state-heuristic from the set of public methods.
Eric S. Raymond [Mon, 1 Dec 2014 14:41:54 +0000 (09:41 -0500)]
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.

9 years agoThe vc-mistrust-permissions configuration variable is gone.
Eric S. Raymond [Mon, 1 Dec 2014 14:08:26 +0000 (09:08 -0500)]
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.

9 years agoAPI simplification: remove vc-workfile-unchanged-p from pubic methods.
Eric S. Raymond [Mon, 1 Dec 2014 13:24:27 +0000 (08:24 -0500)]
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.

9 years agoRenove duplicate code.
Eric S. Raymond [Mon, 1 Dec 2014 12:39:15 +0000 (07:39 -0500)]
Renove duplicate code.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 1 Dec 2014 12:23:04 +0000 (07:23 -0500)]
Auto-commit of loaddefs files.