]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years agoMerge from origin/emacs-24
Paul Eggert [Thu, 29 Jan 2015 21:53:12 +0000 (13:53 -0800)]
Merge from origin/emacs-24

The following commit was skipped:

ba10f4b Fix issues with BibTeX entries containing ")".

9 years agoCommit src/ChangeLog for previous commit.
Eli Zaretskii [Thu, 29 Jan 2015 18:46:03 +0000 (20:46 +0200)]
Commit src/ChangeLog for previous commit.

9 years agoUse bool for boolean in w32menu.c, w32font.c, w32uniscribe.c.
Eli Zaretskii [Thu, 29 Jan 2015 17:16:56 +0000 (19:16 +0200)]
Use bool for boolean in w32menu.c, w32font.c, w32uniscribe.c.

 src/w32uniscribe.c (uniscribe_list, uniscribe_match): Use bool where
 appropriate.
 src/w32font.c (struct font_callback_data, w32font_list_internal)
 (w32font_driver, w32font_match_internal): Use bool where appropriate.
 src/w32menu.c (x_activate_menubar, set_frame_menubar)
 (w32_dialog_show, initialize_frame_menubar, w32_menu_show)
 (is_simple_dialog): Use bool where appropriate.

9 years agolisp/gnus/nnimap.el (nnimap-request-group): Make it possible to enter nnimap groups...
Lars Magne Ingebrigtsen [Thu, 29 Jan 2015 14:02:04 +0000 (14:02 +0000)]
lisp/gnus/nnimap.el (nnimap-request-group): Make it possible to enter nnimap groups again

9 years agolisp/gnus/nnimap.el (nnimap-request-group): nnimap group activation problems fixed
Lars Magne Ingebrigtsen [Thu, 29 Jan 2015 09:20:48 +0000 (09:20 +0000)]
lisp/gnus/nnimap.el (nnimap-request-group): nnimap group activation problems fixed

9 years ago* lisp/calc/calc-units.el (calc-convert-exact-units): Improve the
Jay Belanger [Thu, 29 Jan 2015 03:37:24 +0000 (21:37 -0600)]
* lisp/calc/calc-units.el (calc-convert-exact-units): Improve the
  simplification.

9 years ago* lisp/calc/calc-units.el (math-consistent-units-p): Strengthen the
Jay Belanger [Thu, 29 Jan 2015 03:29:58 +0000 (21:29 -0600)]
* lisp/calc/calc-units.el (math-consistent-units-p): Strengthen the
  test for consistent units.

9 years ago* lisp/calc/calc-units.el (calc-convert-exact-units): New function.
Jay Belanger [Thu, 29 Jan 2015 03:17:10 +0000 (21:17 -0600)]
* lisp/calc/calc-units.el (calc-convert-exact-units): New function.
(calc-convert-units): Check for missing units.

* lisp/calc/calc-ext.el (calc-init-extensions):  Autoload
`calc-convert-exact-units' and assign it a keybinding.

* lisp/calc/calc-help (calc-u-prefix-help): Add help for the
"un" keybinding.

9 years agolisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separa...
Lars Magne Ingebrigtsen [Thu, 29 Jan 2015 02:22:21 +0000 (02:22 +0000)]
lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail

9 years agoUse bool, not int, to track face changes
Paul Eggert [Wed, 28 Jan 2015 19:11:14 +0000 (11:11 -0800)]
Use bool, not int, to track face changes

* xfaces.c (face_change): Rename from face_change_count, and
change from int to bool.  The var is now true (instead of nonzero)
if attributes have changed; this is simpler.  All uses changed.
Fixes: bug#19698
9 years ago* lisp/emacs-lisp/cl.el (cl--function-convert): Simplify.
Stefan Monnier [Wed, 28 Jan 2015 13:18:50 +0000 (08:18 -0500)]
* lisp/emacs-lisp/cl.el (cl--function-convert): Simplify.

9 years agoFix issues with BibTeX entries containing ")".
Tassilo Horn [Wed, 28 Jan 2015 09:32:50 +0000 (10:32 +0100)]
Fix issues with BibTeX entries containing ")".

* textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
punctuation syntax since to allow bibtex fields with values such
as {Test 1) and 2)} (bug#19205, bug#19707).
(reftex--prepare-syntax-tables): New function.
(reftex-mode): Use it.

[backport from trunk]

9 years agoFix issues with BibTeX entries containing ")".
Tassilo Horn [Wed, 28 Jan 2015 09:32:50 +0000 (10:32 +0100)]
Fix issues with BibTeX entries containing ")".

* textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
punctuation syntax since to allow bibtex fields with values such
as {Test 1) and 2)} (bug#19205, bug#19707).
(reftex--prepare-syntax-tables): New function.
(reftex-mode): Use it.

9 years agolisp/gnus/nnimap.el (nnimap-request-group): nnimap group request bug fix
Lars Ingebrigtsen [Wed, 28 Jan 2015 06:59:06 +0000 (06:59 +0000)]
lisp/gnus/nnimap.el (nnimap-request-group): nnimap group request bug fix

9 years agoMerge from gnulib and try to repair bad merge
Paul Eggert [Wed, 28 Jan 2015 06:24:19 +0000 (22:24 -0800)]
Merge from gnulib and try to repair bad merge

This attempts to repair problems introduced by the bad merge
5491fd1098d27b3ba3db054076b9ab60fb3558dc.  The easiest way for me
to fix the badly-merged gnulib files was to run
'admin/merge-gnulib', so I did that, which also imported the
following changes:
* build-aux/update-copyright, m4/gnulib.m4:
Update from gnulib, incorporating:
2015-01-15 time: port to MinGW32 3.21
2015-01-15 update-copyright: apply to self
2015-01-11 update-copyright: recognize groff's \(co marker

9 years agonnimap `never' expiration fix
Elias Oltmanns [Wed, 28 Jan 2015 05:35:59 +0000 (16:35 +1100)]
nnimap `never' expiration fix

* nnimap.el (nnimap-find-expired-articles): Fix handling of
(expiry-wait . never).

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:31:15 +0000 (01:31 -0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoCleanup lisp/ChangeLog
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:31:06 +0000 (01:31 -0300)]
Cleanup lisp/ChangeLog

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:08:18 +0000 (01:08 -0300)]
Merge from origin/emacs-24

9664def Signal a file-error from directory-files on MS-Windows  (Bug#19701)
fd4e65e Added missing test for previous commit
5485e3e5 python.el: New non-global state dependent indentation engine.
3b23e6a Fix the description of --insert command-line option  (Bug#19694)
7a7e594 Add a cross-reference in ELisp manual.  (Bug#19668)
b4f4075 Fixes: debbugs:19660
83b3c31 * test/automated/regexp-tests.el: Require regexp-opt

Conflicts:
lisp/progmodes/python.el

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:46 +0000 (01:03 -0300)]
Merge from origin/emacs-24

The following commits were skipped:

81fb8ab Backport: Fix package tests when TMPDIR is in HOME
3a345b5 Backport: Handle the `neg' operator in some calc-units functions.

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:46 +0000 (01:03 -0300)]
Merge from origin/emacs-24

8ee825c doc/emacs/programs.texi (Custom C Indent): Fix a typo.  (Bug#19647)
88ba49f Fix coding.c subscript error
3ea1b31 Prevent artist-mode from creating runaway timers (Bug#6130).

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:45 +0000 (01:03 -0300)]
Merge from origin/emacs-24

The following commits were skipped:

4c09e3a Backport: correct old fix for GTK font selection
8730974 Backport from trunk of bug 19531.

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:45 +0000 (01:03 -0300)]
Merge from origin/emacs-24

24aacfc Improve documentation of buttons  (Bug#19628)
52ae3db doc/lispref/text.texi (Clickable Text): Improve indexing.  (Bug#19629)
310f707 lisp/button.el (button-activate, push-button): Doc fix.  (Bug#19628)
3ee38f2 Disallow w32 builds --without-toolkit-scroll-bars.
e6518fc Fix display of images in R2L screen lines
b0af674 Use u+05f4 in TUTORIAL.he.

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:45 +0000 (01:03 -0300)]
Merge from origin/emacs-24

The following commit was skipped:

7b8cba9 Backport: Parse pcomplete arguments regardless of pcomplete-cycle-completions

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:45 +0000 (01:03 -0300)]
Merge from origin/emacs-24

a3505cb doc/lispref/variables.texi (Creating Buffer-Local): Improve indexing (Bug#19608)
d132c7b erc-backend.el: Give hook-name a default value of nil and add-to-list unconditionally. Fixes debbugs:19363
61cc7bf Fix support of non-ASCII frame titles on MS-Windows  (Bug#19590)
1e5902a * filenotify.el (file-notify--descriptor): Do not cons for remote files.
b1ea160 Handle watching of several files in the same directory for inotify.

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:45 +0000 (01:03 -0300)]
Merge from origin/emacs-24

The following commits were skipped:

67edddf More fixes to support multi-line search in comint
18a89a0 Better support for multi-line shell input.

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:44 +0000 (01:03 -0300)]
Merge from origin/emacs-24

b544ab5 Fix return value of vertical-motion at ZV  (Bug#19553)
1f179ea Fix encoding of I/O in net-utils.el for MS-Windows.  (Bug#19458)
70f298f Fix the description of -nl in --help text.  (Bug#19542)

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:44 +0000 (01:03 -0300)]
Merge from origin/emacs-24

The following commit was skipped:

7c0bfa1 Fix line-move-visual's following of column in R2L lines (backport from trunk).

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 04:03:22 +0000 (01:03 -0300)]
Merge from origin/emacs-24

2a57b7e Fixes: debbugs:18756

Conflicts:
lisp/ChangeLog

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 03:59:34 +0000 (00:59 -0300)]
Merge from origin/emacs-24

The following commit was skipped:

4e86e02 Backport: Add an extra column for Version in list-packages table

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 03:59:34 +0000 (00:59 -0300)]
Merge from origin/emacs-24

d279e66 Fix assertion violations in try_window_id (Bug#19511)
031eadc Fix dired quoting bug with "Hit`N`Hide"
5981b4b More doc fixes for bug#19502 -- make documentation less X-specific.
143516c src/emacs.c (syms_of_emacs) <system-configuration>: Doc fix.  (Bug#19502)

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 03:59:33 +0000 (00:59 -0300)]
Merge from origin/emacs-24

The following commit was skipped:

d7af65d Backport: Unbreak `mouse-action' property in text buttons

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 03:59:33 +0000 (00:59 -0300)]
Merge from origin/emacs-24

e13e3bd * admin/update_autogen (commit): Prepend "# " to commit message.

9 years agoTighten up the tagcode used for eieio and cl-struct objects
Stefan Monnier [Wed, 28 Jan 2015 03:41:31 +0000 (22:41 -0500)]
Tighten up the tagcode used for eieio and cl-struct objects

* lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal): Set the function
slot of the tag symbol to :quick-object-witness-check.
(eieio-object-p): Use :quick-object-witness-check.
(eieio--generic-tagcode): Use cl--generic-struct-tag.
* lisp/emacs-lisp/cl-preloaded.el: New file.
* lisp/emacs-lisp/cl-macs.el (cl--bind-inits): Remove, unused.
(cl--transform-lambda, cl-destructuring-bind): Remove cl--bind-inits.
(cl--make-usage-args): Strip away &aux args.
(cl-case, cl-typecase, cl--parse-loop-clause): Use macroexp-let2.
(cl-the, cl-check-type): Use macroexp-let2 and cl-typep.
(cl-defstruct): Use `declare' and cl-struct-define.
* lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): New function.
(cl--generic-struct-tagcode): Use it to tighten the tagcode.
* lisp/loadup.el: Load cl-preloaded.
* src/lisp.mk (lisp): Add cl-preloaded.

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 03:33:03 +0000 (00:33 -0300)]
Merge from origin/emacs-24

The following commit was skipped:

780eb0a Auto-commit of loaddefs files.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Lars Magne Ingebrigtsen [Wed, 28 Jan 2015 03:21:33 +0000 (14:21 +1100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoMerge from origin/emacs-24
Fabián Ezequiel Gallina [Wed, 28 Jan 2015 03:09:39 +0000 (00:09 -0300)]
Merge from origin/emacs-24

a012c7b Fix copyright years by hand
732fd4c Update copyright year to 2015

Conflicts:
INSTALL.REPO
admin/notes/lel-TODO
doc/man/grep-changelog.1
doc/misc/eww.texi
etc/CONTRIBUTE
etc/GNU
etc/NEWS
etc/refcards/emacsver.tex
etc/refcards/ru-refcard.tex
lib-src/grep-changelog
lib-src/test-distrib.c
lib/alloca.in.h
lib/binary-io.h
lib/c-ctype.h
lib/c-strcasecmp.c
lib/c-strncasecmp.c
lib/careadlinkat.c
lib/close-stream.c
lib/dosname.h
lib/dup2.c
lib/filemode.h
lib/fpending.c
lib/fpending.h
lib/getgroups.c
lib/getloadavg.c
lib/getopt.in.h
lib/getopt1.c
lib/getopt_int.h
lib/gettext.h
lib/gettime.c
lib/gettimeofday.c
lib/group-member.c
lib/md5.c
lib/md5.h
lib/memrchr.c
lib/sha1.c
lib/sig2str.c
lib/stdarg.in.h
lib/stdbool.in.h
lib/stdlib.in.h
lib/strftime.c
lib/strtoimax.c
lib/strtol.c
lib/strtoll.c
lib/strtoull.c
lib/tempname.c
lib/time_r.c
lib/unsetenv.c
lib/xalloc-oversized.h
lisp/gnus/gnus-setup.el
lisp/progmodes/cap-words.el
lisp/w32-common-fns.el
m4/alloca.m4
m4/dup2.m4
m4/filemode.m4
m4/getgroups.m4
m4/getloadavg.m4
m4/gettime.m4
m4/gettimeofday.m4
m4/gnulib-common.m4
m4/group-member.m4
m4/manywarnings.m4
m4/memrchr.m4
m4/mktime.m4
m4/pathmax.m4
m4/pthread_sigmask.m4
m4/sig2str.m4
m4/ssize_t.m4
m4/st_dm_mode.m4
m4/stat-time.m4
m4/stdarg.m4
m4/stdbool.m4
m4/stddef_h.m4
m4/stdio_h.m4
m4/strftime.m4
m4/strtoimax.m4
m4/strtoll.m4
m4/strtoull.m4
m4/strtoumax.m4
m4/time_h.m4
m4/timer_time.m4
m4/timespec.m4
m4/unistd_h.m4
m4/utimbuf.m4
nextstep/README
nt/addsection.c
src/insdel.c
src/w32heap.c
test/automated/package-x-test.el

9 years agolisp/emacs-lisp/cl.el (cl--function-convert): Merge cache that cl--labels-convert...
Katsumi Yamaoka [Tue, 27 Jan 2015 23:55:26 +0000 (23:55 +0000)]
lisp/emacs-lisp/cl.el (cl--function-convert): Merge cache that cl--labels-convert adds (bug#19699)

9 years agoFix inaccuracies in my recent ChangeLog entry.
Paul Eggert [Tue, 27 Jan 2015 22:37:37 +0000 (14:37 -0800)]
Fix inaccuracies in my recent ChangeLog entry.

9 years agoAllow for adding new members to Tar archives.
Ivan Shmakov [Tue, 27 Jan 2015 21:25:56 +0000 (21:25 +0000)]
Allow for adding new members to Tar archives.

* lisp/tar-mode.el: Allow for adding new archive members.
(tar-new-regular-file-header, tar--pad-to, tar--put-at)
(tar-header-serialize): New functions.
(tar-current-position): Split from tar-current-descriptor.
(tar-current-descriptor): Use it.
(tar-new-entry): New command.
(tar-mode-map): Bind it.
* doc/emacs/files.texi (File Archives): Document "I" for tar-new-entry.
* etc/NEWS: Mention the new tar-new-entry command.

Fixes: debbugs:19274
9 years agoSignal a file-error from directory-files on MS-Windows (Bug#19701)
Eli Zaretskii [Tue, 27 Jan 2015 19:02:13 +0000 (21:02 +0200)]
Signal a file-error from directory-files on MS-Windows  (Bug#19701)

 src/dired.c (directory_files_internal) [WINDOWSNT]: If readdir
 returns NULL and errno is ENOTDIR, behave as if opendir failed to
 open the directory.
 src/w32.c (sys_readdir): If FindFirstFile fails because the
 directory doesn't exist, set errno to ENOTDIR.

9 years agominor tweaks for `python-check'
Sam Steingold [Tue, 27 Jan 2015 18:20:57 +0000 (13:20 -0500)]
minor tweaks for `python-check'

* lisp/progmodes/python.el (python-check-custom-command): Buffer local
because it usually includes the buffer name.
(python-check-command): Set to epylint when pyflakes is not available.

9 years agoetc/NEWS: Document EUDC improvements
Thomas Fitzsimmons [Sat, 24 Jan 2015 05:37:32 +0000 (00:37 -0500)]
etc/NEWS: Document EUDC improvements

9 years agoEUDC: New maintainer
Thomas Fitzsimmons [Sun, 25 Jan 2015 22:54:41 +0000 (17:54 -0500)]
EUDC: New maintainer

* net/eudcb-bbdb.el, net/eudcb-ldap.el, net/eudcb-mab.el,
net/eudc-bob.el, net/eudcb-ph.el, net/eudc.el, net/eudc-export.el,
net/eudc-hotlist.el, net/eudc-vars.el: New maintainer.

9 years agoisearch.el (isearch-process-search-char): Add docstring.
Artur Malabarba [Tue, 27 Jan 2015 13:39:27 +0000 (11:39 -0200)]
isearch.el (isearch-process-search-char): Add docstring.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 27 Jan 2015 11:19:52 +0000 (06:19 -0500)]
Auto-commit of loaddefs files.

9 years agolisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3.
Oleh Krehel [Tue, 27 Jan 2015 09:48:40 +0000 (10:48 +0100)]
lisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3.

Now, e.g. `indent-sexp' will produce:

    (define-derived-mode outline-mode text-mode "Outline"
      "Set ...")

instead of:

    (define-derived-mode outline-mode text-mode "Outline"
                         "Set ...")

9 years agoPort autogen.sh hook creation to Apple Git
Paul Eggert [Tue, 27 Jan 2015 06:34:25 +0000 (22:34 -0800)]
Port autogen.sh hook creation to Apple Git

* autogen.sh: Do not assume that the hook samples exist.
This ports to git version 1.9.3 (Apple Git-50).
For some reason Apple decided to populate the git hooks directory
in a different way from the way that standard Git does it.
The downside is that patch applications won't be checked on Apple,
but that's better than autogen.sh failing.
Problem reported by Sam Steingold in:
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00898.html

9 years agolisp/gnus/nnir.el Check for literal+ capability in IMAP
Lars Magne Ingebrigtsen [Tue, 27 Jan 2015 06:06:43 +0000 (06:06 +0000)]
lisp/gnus/nnir.el Check for literal+ capability in IMAP

9 years agolisp/gnus/nnir.el (nnir-run-imap): Enable non-ASCII IMAP searches
Eric Abrahamsen [Tue, 27 Jan 2015 05:46:15 +0000 (05:46 +0000)]
lisp/gnus/nnir.el (nnir-run-imap): Enable non-ASCII IMAP searches

9 years ago[Gnus] Make nnmairix always select the correct article
Eric Abrahamsen [Tue, 27 Jan 2015 05:45:12 +0000 (05:45 +0000)]
[Gnus] Make nnmairix always select the correct article

9 years agoAdded missing test for previous commit
Fabián Ezequiel Gallina [Tue, 27 Jan 2015 03:35:07 +0000 (00:35 -0300)]
Added missing test for previous commit

9 years agolisp/ChangeLog (2015-01-27): Add bug#
Katsumi Yamaoka [Tue, 27 Jan 2015 03:25:16 +0000 (03:25 +0000)]
lisp/ChangeLog (2015-01-27): Add bug#

9 years agopython.el: New non-global state dependent indentation engine.
Fabián Ezequiel Gallina [Tue, 27 Jan 2015 03:17:24 +0000 (00:17 -0300)]
python.el: New non-global state dependent indentation engine.

Fixes: debbugs:18319
Fixes: debbugs:19595
* lisp/progmodes/python.el (python-syntax-comment-or-string-p): Accept
PPSS as argument.
(python-syntax-closing-paren-p): New function.
(python-indent-current-level)
(python-indent-levels): Mark obsolete.
(python-indent-context): Return more context cases.
(python-indent--calculate-indentation)
(python-indent--calculate-levels): New functions.
(python-indent-calculate-levels): Use them.
(python-indent-calculate-indentation, python-indent-line):
(python-indent-line-function): Rewritten to use new API.
(python-indent-dedent-line): Simplify logic.
(python-indent-dedent-line-backspace): Use `unless`.
(python-indent-toggle-levels): Delete function.

* test/automated/python-tests.el (python-indent-pep8-1)
(python-indent-pep8-2, python-indent-pep8-3)
(python-indent-after-comment-1, python-indent-after-comment-2)
(python-indent-inside-paren-1, python-indent-inside-paren-2)
(python-indent-after-block-1, python-indent-after-block-2)
(python-indent-after-backslash-1, python-indent-after-backslash-2)
(python-indent-after-backslash-3, python-indent-block-enders-1)
(python-indent-block-enders-2, python-indent-block-enders-3)
(python-indent-block-enders-4, python-indent-block-enders-5)
(python-indent-dedenters-1, python-indent-dedenters-2)
(python-indent-dedenters-3, python-indent-dedenters-4)
(python-indent-dedenters-5, python-indent-dedenters-6)
(python-indent-dedenters-7, python-indent-dedenters-8): Fix tests.
(python-indent-base-case, python-indent-after-block-3)
(python-indent-after-backslash-5, python-indent-inside-paren-3)
(python-indent-inside-paren-4, python-indent-inside-paren-5)
(python-indent-inside-paren-6, python-indent-inside-string-1)
(python-indent-inside-string-2, python-indent-inside-string-3)
(python-indent-dedent-line-backspace-1): New Tests.

9 years agolisp/emacs-lisp/cl.el (cl--function-convert): Work for cl-flet and cl-labels
Katsumi Yamaoka [Tue, 27 Jan 2015 03:15:49 +0000 (03:15 +0000)]
lisp/emacs-lisp/cl.el (cl--function-convert): Work for cl-flet and cl-labels

9 years agoUse bool for boolean in xfaces.c
Paul Eggert [Tue, 27 Jan 2015 00:57:07 +0000 (16:57 -0800)]
Use bool for boolean in xfaces.c

* dispextern.h: Adjust to signature changes.
* font.c (font_at, font_range):
* fontset.c (Finternal_char_font):
* fringe.c (draw_fringe_bitmap_1):
* xdisp.c (handle_face_prop, face_before_or_after_it_pos)
(get_next_display_element, highlight_trailing_whitespace)
(display_string, calc_line_height_property)
(note_mode_line_or_margin_highlight, note_mouse_highlight):
* xfaces.c (tty_suppress_bold_inverse_default_colors_p)
(menu_face_changed_default, recompute_basic_faces)
(Fbitmap_spec_p, parse_rgb_list, tty_lookup_color)
(tty_defined_color, defined_color, face_color_gray_p)
(face_color_supported_p, load_color2, load_face_colors)
(Fx_list_fonts, LFACEP, push_named_merge_point)
(resolve_face_name, lface_from_face_name_no_resolve)
(lface_from_face_name, get_lface_attributes_no_remap)
(get_lface_attributes, lface_fully_specified_p)
(set_lface_from_font, merge_face_vectors, merge_named_face)
(merge_face_ref, Finternal_make_lisp_face)
(Finternal_lisp_face_p, Finternal_copy_lisp_face)
(Finternal_set_lisp_face_attribute)
(update_face_from_frame_parameter, set_font_frame_param)
(face_boolean_x_resource_value)
(Finternal_set_lisp_face_attribute_from_resource)
(x_update_menu_appearance, Finternal_get_lisp_face_attribute)
(Finternal_merge_in_global_face, Fface_font, face_attr_equal_p)
(lface_equal_p, Finternal_lisp_face_equal_p)
(Finternal_lisp_face_empty_p, lface_same_font_attributes_p)
(Fcolor_distance, lookup_named_face, lookup_basic_face)
(lookup_derived_face, Fface_attributes_as_vector)
(x_supports_face_attributes_p, tty_supports_face_attributes_p)
(Fdisplay_supports_face_attributes_p, realize_basic_faces)
(realize_default_face, realize_named_face)
(realize_non_ascii_face, realize_x_face, map_tty_color)
(realize_tty_face, compute_char_face, face_at_buffer_position)
(face_for_overlay_string, face_at_string_position):
Use bool for boolean.
* xfaces.c (set_lface_from_font):
Return void, since callers never use the result.

9 years ago* INSTALL.REPO: Mention minimum Git version.
Paul Eggert [Mon, 26 Jan 2015 19:21:45 +0000 (11:21 -0800)]
* INSTALL.REPO: Mention minimum Git version.

9 years ago* image.c (lookup_pixel_color): Reorder conditions that are
Andreas Schwab [Mon, 26 Jan 2015 17:56:18 +0000 (18:56 +0100)]
* image.c (lookup_pixel_color): Reorder conditions that are
written backwards.
(x_to_xcolors): Likewise.
(x_detect_edges): Likewise.
(png_load_body): Likewise.
(gif_close): Likewise.
(gif_load): Likewise.

9 years agoFix the description of --insert command-line option (Bug#19694)
Eli Zaretskii [Mon, 26 Jan 2015 17:41:38 +0000 (19:41 +0200)]
Fix the description of --insert command-line option  (Bug#19694)

 doc/emacs/cmdargs.texi (Action Arguments): Clarify into which buffer
 '--insert' inserts.

9 years ago* lisp/emacs-lisp/cl-generic.el (cl--generic-method): New struct.
Stefan Monnier [Mon, 26 Jan 2015 16:43:06 +0000 (11:43 -0500)]
* lisp/emacs-lisp/cl-generic.el (cl--generic-method): New struct.

(cl--generic): The method-table is now a (list-of cl--generic-method).
(cl--generic-member-method): New function.
(cl-generic-define-method): Use it.
(cl--generic-build-combined-method, cl--generic-cache-miss):
Adapt to new method-table.
(cl--generic-no-next-method-function): Add `method' argument.
(cl-generic-call-method): Adapt to new method representation.
(cl--generic-cnm-sample, cl--generic-nnm-sample): Adjust.
(cl-find-method, cl-method-qualifiers): New functions.
(cl--generic-method-info): Adapt to new method representation.
Return a string for the qualifiers.
(cl--generic-describe):
* lisp/emacs-lisp/eieio-opt.el (eieio-help-class): Adjust accordingly.
(eieio-all-generic-functions, eieio-method-documentation):
Adjust to new method representation.

* lisp/emacs-lisp/eieio-compat.el (eieio--defmethod): Use cl-find-method.

* test/automated/cl-generic-tests.el: Try and make sure cl-lib is not
required at run-time.

9 years ago* lisp/emacs-lisp/cl-generic.el: Add a method-combination hook.
Stefan Monnier [Mon, 26 Jan 2015 14:04:55 +0000 (09:04 -0500)]
* lisp/emacs-lisp/cl-generic.el: Add a method-combination hook.

(cl-generic-method-combination-function): New var.
(cl--generic-lambda): Remove `with-cnm' arg.
(cl-defmethod): Change accordingly.
(cl-generic-define-method): Don't check qualifiers validity.
Preserve all qualifiers in `method-table'.
(cl-generic-call-method): New function.
(cl--generic-nest): Remove (morph into cl-generic-call-method).
(cl--generic-build-combined-method): Adjust to new format of method-table
and use cl-generic-method-combination-function.
(cl--generic-standard-method-combination): New function, extracted from
cl--generic-build-combined-method.
(cl--generic-cnm-sample): Adjust to new format of method-table.

* lisp/emacs-lisp/eieio-compat.el (eieio--defmethod): Use () qualifiers
instead of :primary.

* lisp/emacs-lisp/eieio-datadebug.el (eieio-debug-methodinvoke):
Remove obsolete function.

* test/automated/cl-generic-tests.el (cl-generic-test-11-next-method-p):
New test.

9 years agolisp/gnus/nnimap.el Allow using the Google X-GM-LABELS, if present
Trevor Murphy [Mon, 26 Jan 2015 07:56:37 +0000 (07:56 +0000)]
lisp/gnus/nnimap.el Allow using the Google X-GM-LABELS, if present

9 years ago(shr-make-table-1): Make colspan display more sensibly.
Lars Magne Ingebrigtsen [Mon, 26 Jan 2015 06:04:55 +0000 (17:04 +1100)]
(shr-make-table-1): Make colspan display more sensibly.

This makes display of stuff like

 ---------- ---- ---- ----
|R1C1      |R1C2|R1C2|R1C2|
 ---------- ---- ---- ----
|R2C1 and R2C2  |RC4      |
|in one         |         |
 ---------- ---- ---- ----

work

9 years ago(shr-make-table-1): Add comments.
Lars Magne Ingebrigtsen [Mon, 26 Jan 2015 05:35:51 +0000 (16:35 +1100)]
(shr-make-table-1): Add comments.

9 years ago* lisp/net/shr.el (shr-make-table-1): Fix colspan typo.
Lars Magne Ingebrigtsen [Mon, 26 Jan 2015 05:14:17 +0000 (16:14 +1100)]
* lisp/net/shr.el (shr-make-table-1): Fix colspan typo.

9 years agoUpdate the etc/publicsuffix.txt file
Lars Magne Ingebrigtsen [Mon, 26 Jan 2015 04:21:01 +0000 (15:21 +1100)]
Update the etc/publicsuffix.txt file

* etc/publicsuffix.txt: Install an updated version of the file from
https://publicsuffix.org/list/effective_tld_names.dat.

9 years ago[Gnus] Fixups when displaying certain attachments
Peder O. Klingenberg [Mon, 26 Jan 2015 04:19:51 +0000 (04:19 +0000)]
[Gnus] Fixups when displaying certain attachments

9 years ago[Gnus] Make moving IMAP articles faster in large groups
Lars Ingebrigtsen [Mon, 26 Jan 2015 04:18:57 +0000 (04:18 +0000)]
[Gnus] Make moving IMAP articles faster in large groups

9 years agolisp/calculator.el (calculator-update-display): Bug fix & improvement.
Eli Barzilay [Mon, 26 Jan 2015 03:42:01 +0000 (22:42 -0500)]
lisp/calculator.el (calculator-update-display): Bug fix & improvement.

Avoid a crash when the daved ptr is at the end of the list (= when it's
before the first one).  Also use `eq' to compare the value so the saved
list indicator appears when a value was retrieved from the list rather
than an equal result is shown.

9 years ago* lisp/net/eww.el (eww-add-bookmark): Fix prompt
Lars Ingebrigtsen [Mon, 26 Jan 2015 01:48:44 +0000 (12:48 +1100)]
* lisp/net/eww.el (eww-add-bookmark): Fix prompt

And clean up the code slightly.

9 years agoUse bool for boolean in w32term.c
Eli Zaretskii [Sun, 25 Jan 2015 22:03:14 +0000 (00:03 +0200)]
Use bool for boolean in w32term.c

 src/w32term.c (x_update_window_begin, x_update_window_end)
 (x_update_end, x_after_update_window_line)
 (x_set_glyph_string_gc, x_draw_glyph_string_background)
 (x_draw_glyph_string_foreground)
 (x_draw_composite_glyph_string_foreground)
 (x_draw_glyphless_glyph_string_foreground)
 (x_draw_image_glyph_string, x_draw_glyph_string)
 (x_draw_stretch_glyph_string, note_mouse_movement)
 (w32_mouse_position, x_scroll_bar_report_motion)
 (x_horizontal_scroll_bar_report_motion, w32_read_socket)
 (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar)
 (w32_draw_window_cursor, x_new_font, x_set_offset)
 (x_set_window_size, x_make_frame_invisible, x_iconify_frame): Use
 bool where appropriate.

9 years agoUse bool for boolean in w32fns.c
Eli Zaretskii [Sun, 25 Jan 2015 21:12:35 +0000 (23:12 +0200)]
Use bool for boolean in w32fns.c

 src/w32fns.c (w32_defined_color, x_decode_color)
 (Fxw_color_defined_p, Fxw_color_values, x_set_icon_type)
 (x_set_menu_bar_lines, x_change_tool_bar_height)
 (x_set_internal_border_width, x_explicitly_set_name)
 (x_implicitly_set_name, Fx_create_frame, w32_window)
 (x_create_tip_frame, Fx_show_tip): Use bool where appropriate.

9 years agoUse bool for boolean in xfns.c
Paul Eggert [Sun, 25 Jan 2015 20:32:49 +0000 (12:32 -0800)]
Use bool for boolean in xfns.c

* xfaces.c (x_update_menu_appearance):
* xfns.c (x_real_positions, x_defined_color, x_decode_color)
(xg_set_icon, xg_set_icon_from_xpm_data, x_set_cursor_color)
(x_set_icon_type, x_set_icon_name, x_set_menu_bar_lines)
(x_change_tool_bar_height, x_set_internal_border_width)
(x_encode_text, x_set_name_internal, x_explicitly_set_name)
(x_implicitly_set_name, x_default_scroll_bar_color_parameter)
(hack_wm_protocols, xic_create_fontsetname, xic_free_xfontset)
(x_window, x_icon, Fx_wm_set_size_hint, Fx_create_frame)
(Fxw_color_defined_p, Fxw_color_values, x_create_tip_frame)
(Fx_show_tip, clean_up_file_dialog, Fx_file_dialog)
(clean_up_dialog, syms_of_xfns):
* xterm.h (xg_set_icon, xg_set_icon_from_xpm_data)
(xic_create_fontsetname):
Use bool for boolean.
* xfns.c: Include bitmaps/gray.xbm unconditionally.

9 years agoCount MANY function args more reliably
Paul Eggert [Sun, 25 Jan 2015 16:33:41 +0000 (08:33 -0800)]
Count MANY function args more reliably

* alloc.c (Fgc_status, purecopy, unbind_to, garbage_collect_1):
* buffer.c (Fbuffer_list, Fkill_buffer):
* callint.c (read_file_name, Fcall_interactively):
* charset.c (Fset_charset_priority, syms_of_charset):
* chartab.c (uniprop_encode_value_numeric):
* coding.c (syms_of_coding):
* composite.c (syms_of_composite):
* data.c (wrong_range):
* dbusbind.c (syms_of_dbusbind):
* dired.c (file_attributes):
* editfns.c (Fdecode_time, update_buffer_properties, format2):
* eval.c (run_hook_with_args_2, apply1, call1, call2, call3)
(call4, call5, call6, call7):
* fileio.c (Finsert_file_contents, choose_write_coding_system)
(Fcar_less_than_car, build_annotations, auto_save_error):
* filelock.c (get_boot_time):
* fns.c (internal_equal, nconc2, Fyes_or_no_p, Fwidget_apply):
(maybe_resize_hash_table, secure_hash):
* font.c (font_style_to_value, font_open_by_name, Flist_fonts):
* fontset.c (fontset_add, Fset_fontset_font):
* ftfont.c (ftfont_lookup_cache):
* gtkutil.c (xg_get_font):
* insdel.c (signal_before_change, signal_after_change):
* keymap.c (append_key):
* lread.c (load_warn_old_style_backquotes, Fload, init_lread):
* minibuf.c (Fread_buffer):
* print.c (print_preprocess):
* process.c (Fformat_network_address, Fmake_network_process)
(server_accept_connection):
* sound.c (Fplay_sound_internal):
* term.c (Fsuspend_tty, Fresume_tty):
* window.c (window_list):
* xdisp.c (run_redisplay_end_trigger_hook, add_to_log)
(message_with_string):
* xfaces.c (Fx_list_fonts):
* xfont.c (syms_of_xfont):
* xselect.c (x_handle_selection_request)
(x_handle_selection_clear, x_clear_frame_selections)
(x_clipboard_manager_error_1):
Prefer CALLMANY and CALLN to counting args by hand.
* doc.c (reread_doc_file): Remove unused code.
* fns.c (concat2, concat3): Redo to avoid need for local-var vector.
(cmpfn_user_defined, hashfn_user_defined, Fmaphash):
Prefer call1 and call2 to Ffuncall.
* keyboard.c (safe_run_hook_funcall, safe_run_hooks):
Use struct literal rather than a local var, for simplicity.
* keymap.c (where_is_internal): Use NULL rather than a pointer
to unused args.
* lisp.h (CALLMANY, CALLN): New macros.
* sound.c (Fplay_sound_internal): Coalesce duplicate code.
Fixes: bug#19634
9 years ago* lisp/emacs-lisp/cl-generic.el: Fix next-method-p test
Stefan Monnier [Sun, 25 Jan 2015 16:09:53 +0000 (11:09 -0500)]
* lisp/emacs-lisp/cl-generic.el: Fix next-method-p test

Fixes: debbugs:19672
* lisp/emacs-lisp/cl-generic.el (cl--generic-no-next-method-function): New.
(cl--generic-build-combined-method, cl--generic-nnm-sample): Use it.
(cl--generic-typeof-types): Add support for `sequence'.
(cl-defmethod): Add non-keywords in the qualifiers.

9 years agolisp/gnus/gnus-group.el (gnus-group-suspend): Close all backends
Lars Ingebrigtsen [Sun, 25 Jan 2015 12:18:51 +0000 (12:18 +0000)]
lisp/gnus/gnus-group.el (gnus-group-suspend): Close all backends

9 years ago* indent/shell.sh (bar): Use '[ $# -eq 0 ]', not '[ $# == 0 ]'.
Paul Eggert [Sun, 25 Jan 2015 03:00:41 +0000 (19:00 -0800)]
* indent/shell.sh (bar): Use '[ $# -eq 0 ]', not '[ $# == 0 ]'.

This is more portable in shell scripts.
Fixes: bug#19658
9 years agoUse gnustep-config if available
Paul Eggert [Sun, 25 Jan 2015 02:05:33 +0000 (18:05 -0800)]
Use gnustep-config if available

* configure.ac (--with-gnustep): Document this.
(NS_GNUSTEP_CONFIG): New variable, set if gnustep-config works.
If gnustep-config works, use 'gnustep-config --objc-flags' and
'gnustep-config --gui-libs' to compute GNUstep configuration
variables, instead of attempting to infer them individually.
* etc/NEWS: Document this.
* src/emacs.c [NS_IMPL_GNUSTEP]: Don't include <GNUstepBase/GSConfig.h>.
It doesn't appear to be needed, and the inclusion breaks on
Ubuntu 14.10 when 'configure' uses 'gnustep-config'.
Fixes: bug#19507
9 years ago(find-function-regexp): Don't match `defgroup'
Dmitry Gutov [Sun, 25 Jan 2015 00:20:01 +0000 (02:20 +0200)]
(find-function-regexp): Don't match `defgroup'

* lisp/emacs-lisp/find-func.el (find-function-regexp): Don't match
`defgroup' (regression from the previous change here).

9 years agoAdd a cross-reference in ELisp manual. (Bug#19668)
Eli Zaretskii [Sat, 24 Jan 2015 10:09:02 +0000 (12:09 +0200)]
Add a cross-reference in ELisp manual.  (Bug#19668)

 doc/lispref/searching.texi (Regexp Search): Add a cross-reference to "Syntax
 of Regexps".

9 years agoFixes: debbugs:19660
Jan D [Sat, 24 Jan 2015 09:57:21 +0000 (10:57 +0100)]
Fixes: debbugs:19660
* nsterm.m (drawRect:): Add block/unblock_input.

9 years ago* test/automated/regexp-tests.el: Require regexp-opt
Glenn Morris [Sat, 24 Jan 2015 00:52:07 +0000 (19:52 -0500)]
* test/automated/regexp-tests.el: Require regexp-opt

9 years agoFix a couple of AM_V_GEN bugs
Paul Eggert [Sat, 24 Jan 2015 00:08:12 +0000 (16:08 -0800)]
Fix a couple of AM_V_GEN bugs

* admin/unidata/Makefile.in (unifiles):
Use AM_V_at instead of AM_V_GEN, since this doesn't generate a file.
* lib-src/Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1)
(AM_V_at, am__v_at_, am__v_at_0, am__v_at_1):
New macros, copied from ../src/Makefile.in.

9 years agolisp/net/{eudc,ldap}: Merge branch streamline-eudc-configuration
Stefan Monnier [Fri, 23 Jan 2015 22:20:19 +0000 (17:20 -0500)]
lisp/net/{eudc,ldap}: Merge branch streamline-eudc-configuration

9 years ago* lisp/emacs-lisp/cl-generic.el (cl-no-primary-method): New fun and error.
Stefan Monnier [Fri, 23 Jan 2015 21:50:56 +0000 (16:50 -0500)]
* lisp/emacs-lisp/cl-generic.el (cl-no-primary-method): New fun and error.
(cl--generic-build-combined-method): Use it.

9 years agoBackport: Fix package tests when TMPDIR is in HOME
Dmitry Gutov [Fri, 23 Jan 2015 00:50:15 +0000 (02:50 +0200)]
Backport: Fix package tests when TMPDIR is in HOME

Fixes: debbugs:19657
* test/automated/package-test.el (with-package-test):
Bind `abbreviated-home-dir' to nil.
(package-test-describe-package, package-test-signed):
Expect abbreviated directory names.

(cherry picked from commit f02406c74a0a91b29073101912a4b80736a69581)

9 years agoFix package tests when TMPDIR is in HOME
Dmitry Gutov [Fri, 23 Jan 2015 00:50:15 +0000 (02:50 +0200)]
Fix package tests when TMPDIR is in HOME

Fixes: debbugs:19657
* test/automated/package-test.el (with-package-test):
Bind `abbreviated-home-dir' to nil.
(package-test-describe-package, package-test-signed):
Expect abbreviated directory names.

9 years agoRe-add and fix prioritized archives test.
Jorgen Schaefer [Thu, 22 Jan 2015 20:06:47 +0000 (21:06 +0100)]
Re-add and fix prioritized archives test.

* automated/package-test.el (package-test-install-prioritized):
Re-add the test case and add priority to the correct repository
this time around.

9 years agosrc/xdisp.c (init_iterator): Restore a comment lost in transition.
Eli Zaretskii [Thu, 22 Jan 2015 17:57:18 +0000 (19:57 +0200)]
src/xdisp.c (init_iterator): Restore a comment lost in transition.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 22 Jan 2015 11:21:14 +0000 (06:21 -0500)]
Auto-commit of loaddefs files.

9 years agoCheck exit statuses in lib-src/Makefile
Paul Eggert [Thu, 22 Jan 2015 08:39:30 +0000 (00:39 -0800)]
Check exit statuses in lib-src/Makefile

* Makefile.in ($(DESTDIR)${archlibdir}, install, uninstall)
(mostlyclean, clean, distclean, extraclean):
Check exit statuses more carefully.  Reindent to fit in 80 chars.
(bootstrap-clean maintainer-clean): Remove unnecessary 'true'.

9 years agoUse bool for boolean in xfont.c, xftfont.c, xgselect.c
Paul Eggert [Thu, 22 Jan 2015 07:40:50 +0000 (23:40 -0800)]
Use bool for boolean in xfont.c, xftfont.c, xgselect.c

* xfont.c (xfont_driver, xfont_chars_supported)
(xfont_text_extents):
* xftfont.c (xftfont_get_colors, xftfont_open)
(xftfont_prepare_face, xftfont_done_face)
(xftfont_cached_font_ok):
* xgselect.c (xg_select):
Use bool for boolean.

9 years agoDon't fail if chown or chgrp for 'update-game-score' is unsuccessful.
Ulrich Müller [Thu, 22 Jan 2015 07:24:42 +0000 (08:24 +0100)]
Don't fail if chown or chgrp for 'update-game-score' is unsuccessful.

* lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Don't fail if the
chown or chgrp command is unsuccessful; the 'update-game-score'
program has a fallback for this at runtime.

9 years agoSpelling fix
Paul Eggert [Thu, 22 Jan 2015 06:06:42 +0000 (22:06 -0800)]
Spelling fix

9 years agoDon't downcase system diagnostics' first letters
Paul Eggert [Thu, 22 Jan 2015 04:21:45 +0000 (20:21 -0800)]
Don't downcase system diagnostics' first letters

* etc/NEWS: Document this.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
* lisp/ffap.el (find-file-at-point):
* lisp/files.el (insert-file-1):
* lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory)
(ange-ftp-copy-file-internal):
* lisp/progmodes/etags.el (visit-tags-table):
* lisp/url/url-dav.el (url-dav-delete-directory, url-dav-delete-file)
(url-dav-directory-files):
Keep diagnostics consistent with system's.
* lisp/erc/erc-dcc.el (erc-dcc-server):
* lisp/ffap.el (ffap-machine-p):
Ignore case while comparing diagnostics.
* src/fileio.c (report_file_errno): Don't downcase, and simplify.
Fixes: bug#19642
9 years agoAvoid generating invalid usage info for pathological function
Stefan Monnier [Thu, 22 Jan 2015 04:16:45 +0000 (23:16 -0500)]
Avoid generating invalid usage info for pathological function

Fixes: debbugs:19645
* lisp/help.el (help-make-usage): Don't turn a "_" arg into an empty-string.
* lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): Don't confuse a string
body with a docstring.

9 years agoBetter isolate code that assumes NIL_IS_ZERO
Paul Eggert [Thu, 22 Jan 2015 04:01:10 +0000 (20:01 -0800)]
Better isolate code that assumes NIL_IS_ZERO

Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00588.html
* alloc.c (allocate_pseudovector):
Use memclear, not memsetnil, to remove a 'verify'.
* callint.c (Fcall_interactively):
* dispnew.c (realloc_glyph_pool):
* xdisp.c (init_iterator):
Use memclear, not memset, to remove a 'verify'.
* lisp.h (memclear): Rename from memsetnil, and take a byte
count rather than a word count.  All callers changed.

9 years agoBackport: Handle the `neg' operator in some calc-units functions.
Wolfgang Jenkner [Thu, 22 Jan 2015 02:25:01 +0000 (03:25 +0100)]
Backport: Handle the `neg' operator in some calc-units functions.

* lisp/calc/calc-units.el (math-units-in-expr-p)
(math-single-units-in-expr-p, math-find-compatible-unit-rec)
(math-extract-units): Handle the `neg' operator.  (Bug#19582)
* test/automated/calc-tests.el (calc-tests-equal, calc-tests-simple):
New functions.
(test-calc-remove-units, test-calc-extract-units)
(test-calc-convert-units): New tests.

9 years agoxref: Replace defgeneric and defmethod with cl- counterparts
Dmitry Gutov [Thu, 22 Jan 2015 02:24:31 +0000 (04:24 +0200)]
xref: Replace defgeneric and defmethod with cl- counterparts

* lisp/progmodes/xref.el (xref-location-marker, xref-location-group):
Use `cl-defgeneric' and `cl-defmethod' instead of the EIEIO
counterparts.

* lisp/progmodes/etags.el (xref-location-marker): Same.

9 years agoxref: Input history and minor tweaks
Dmitry Gutov [Thu, 22 Jan 2015 02:09:23 +0000 (04:09 +0200)]
xref: Input history and minor tweaks

* lisp/progmodes/xref.el (xref--current): Rename from `xref--selected'.
(xref--inhibit-mark-current): Rename from
`xref--inhibit-mark-selected'.  Update the usages.
(xref-quit): Reword the docstring.  Kill buffers after quitting
windows instead of before.
(xref--insert-xrefs): Tweak help-echo.
(xref--read-identifier-history, xref--read-pattern-history):
New variables.
(xref--read-identifier, xref-find-apropos): Use them.