]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years ago* Makefile.in: Add admin/charsets into top-level clean rules.
Glenn Morris [Fri, 22 May 2015 23:05:59 +0000 (19:05 -0400)]
* Makefile.in: Add admin/charsets into top-level clean rules.

(clean): Add admin/charsets.
(maybeclean_dirs): New variable.
(distclean, bootstrap-clean, maintainer-clean): Use $maybeclean_dirs.

9 years ago* admin/charsets/Makefile.in (LOCAL, local): Fix members.
Glenn Morris [Fri, 22 May 2015 22:44:46 +0000 (18:44 -0400)]
* admin/charsets/Makefile.in (LOCAL, local): Fix members.

9 years ago* lisp/emacs-lisp/package.el (package-selected-packages): Fix doc
Artur Malabarba [Fri, 22 May 2015 10:00:10 +0000 (11:00 +0100)]
* lisp/emacs-lisp/package.el (package-selected-packages): Fix doc

9 years agoGenerate admin/charsets Makefile via configure, and make more portable.
Glenn Morris [Fri, 22 May 2015 06:44:00 +0000 (23:44 -0700)]
Generate admin/charsets Makefile via configure, and make more portable.

* configure.ac (SUBDIR_MAKEFILES): Add admin/charsets/Makefile.
(admin/charsets/Makefile): Generate it.
* admin/charsets/Makefile.in: Rename from Makefile.
(AWK, srcdir, top_srcdir, AM_DEFAULT_VERBOSITY):
New variables, set by configure.
(charsetdir, lispintdir, mapfiledir, 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, LOCAL, mapconv, run_mapconv, big5, compact, cp51932)
(cp932, eucjp_ms, gb180302, gb180304, kuten): New variables.
(TRANS_TABLE, CHARSETS): Add directory prefix to value.
(all): Declare PHONY.
(local): New PHONY target.
(map_template): New template.  Use to define short PHONY aliases.
(*.map): Add directory prefixes to targets and prerequisites.
Respect make verbosity.
(JISC6226.map): Replace non-portable sed append without newline.
(install): Remove rule.
(clean): Only delete temporary sedscript.
(bootstrap-clean, distclean, maintainer-clean, extraclean)
(totalclean): New PHONY rules.
* admin/charsets/mapconv (BASE): Replace basename with expr.
(FILE): Add "mapfiles" subdirectory.
(AWK): New variable.  Use throughout in place of "awk".
(main): Use "gunzip -c" in place of "zcat".
Don't leave whitespace before "p", for older sed.
* admin/charsets/mapfiles/PTCP154: Add final newline,
to make older sed versions happy.
; * .gitignore: Ignore admin/charsets/Makefile.

9 years ago* lisp/autorevert.el: Use lexical-binding. Fix hook usage.
Stefan Monnier [Fri, 22 May 2015 04:03:12 +0000 (00:03 -0400)]
* lisp/autorevert.el: Use lexical-binding.  Fix hook usage.

(global-auto-revert-ignore-buffer, auto-revert-notify-modified-p)
(auto-revert-notify-watch-descriptor): Use defvar-local.
(find-file-hook, auto-revert-tail-mode, )
(auto-revert-notify-add-watch): Use setq-local.
(auto-revert-notify-add-watch): Don't call make-local-variable on
kill-buffer-hook (bug#20601).

9 years agoChange defgeneric so it doesn't completely redefine the function
Stefan Monnier [Fri, 22 May 2015 03:46:10 +0000 (23:46 -0400)]
Change defgeneric so it doesn't completely redefine the function

* lisp/emacs-lisp/cl-generic.el (cl-generic-define): Don't throw away
previously defined methods.
(cl-generic-define-method): Let-bind purify-flag instead of using `fset'.
(cl--generic-prefill-dispatchers): Only define during compilation.
(cl-method-qualifiers): Remove redundant alias.
(help-fns-short-filename): Silence byte-compiler.
* test/automated/cl-generic-tests.el: Adjust to new defgeneric semantics.

9 years ago(package-menu-execute): Remove reference to remove-dups
Artur Malabarba [Thu, 21 May 2015 20:26:57 +0000 (21:26 +0100)]
(package-menu-execute): Remove reference to remove-dups

9 years ago* lisp/erc/erc.el: Hide network/channel messages
kwhite [Thu, 21 May 2015 19:30:18 +0000 (14:30 -0500)]
* lisp/erc/erc.el: Hide network/channel messages

(erc-network-hide-list, etc-channel-hide-list): New lists to define
message types per network/channel.
(erc-add-targets): New function to parse list of targets
(erc-hide-current-message-p): Modified to check for new targets

9 years agoDon't quote nil and t in doc strings
Paul Eggert [Thu, 21 May 2015 17:04:45 +0000 (10:04 -0700)]
Don't quote nil and t in doc strings

This is as per "Tips for Documentation Strings" in the elisp manual.
For consistency, do the same in diagnostics and comments.

9 years agoFix a minor problem with mouse-face on mode line
Eli Zaretskii [Thu, 21 May 2015 16:38:19 +0000 (19:38 +0300)]
Fix a minor problem with mouse-face on mode line

* src/xdisp.c (note_mode_line_or_margin_highlight): Reset the
mouse face also if the mouse pointer hovers above mode-line glyphs
that don't come from any Lisp string.  (Bug#20620)

9 years ago* lisp/emacs-lisp/package.el: Fix selected-package logic
Artur Malabarba [Thu, 21 May 2015 16:10:40 +0000 (17:10 +0100)]
* lisp/emacs-lisp/package.el: Fix selected-package logic

(package-menu-execute): Mark as selected all non-upgrade packages
being installed.
(package-menu--perform-transaction): Don't mark anything.

9 years ago* lisp/emacs-lisp/package.el: Mode-line progress report
Artur Malabarba [Thu, 21 May 2015 08:58:45 +0000 (09:58 +0100)]
* lisp/emacs-lisp/package.el: Mode-line progress report

(package-menu--transaction-status): New variable.
(package-menu-mode, package-menu--perform-transaction): Use it.

9 years ago* lisp/emacs-lisp/package.el: Better transaction messages
Artur Malabarba [Thu, 21 May 2015 07:57:31 +0000 (08:57 +0100)]
* lisp/emacs-lisp/package.el: Better transaction messages

(package-menu--partition-transaction): New function.
(package-menu--prompt-transaction-p, package-menu-execute): Use
it.
(package-menu--perform-transaction): Don't do any messaging.

9 years ago* lisp/emacs-lisp/package.el: Revert async package transactions
Artur Malabarba [Wed, 20 May 2015 19:54:20 +0000 (20:54 +0100)]
* lisp/emacs-lisp/package.el: Revert async package transactions

(package-menu-async): Update doc.
(package-install-from-archive, package-download-transaction)
(package-install, package-menu--perform-transaction)
(package-menu-execute): Remove asynchronous functionality.

9 years agoRevert doc string changes to f90.el
Paul Eggert [Thu, 21 May 2015 05:16:53 +0000 (22:16 -0700)]
Revert doc string changes to f90.el

Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00596.html
* lisp/progmodes/f90.el (f90-mode, f90-abbrev-start):
Revert recent changes to doc strings, as it's intended that they
use grave accent, not quote.

9 years ago; * doc/lispref/nonascii.texi (Character Properties): Fix a typo.
Eli Zaretskii [Wed, 20 May 2015 19:07:30 +0000 (22:07 +0300)]
; * doc/lispref/nonascii.texi (Character Properties): Fix a typo.

(Bug#20618)

9 years agoImprove parameter name
Bozhidar Batsov [Wed, 20 May 2015 15:50:38 +0000 (18:50 +0300)]
Improve parameter name

9 years agoAdd new inline function `hash-table-empty-p'
Bozhidar Batsov [Wed, 20 May 2015 15:49:20 +0000 (18:49 +0300)]
Add new inline function `hash-table-empty-p'

9 years ago; * test/automated/subr-tests.el: Standardize license notice.
Glenn Morris [Wed, 20 May 2015 15:34:53 +0000 (08:34 -0700)]
; * test/automated/subr-tests.el: Standardize license notice.

9 years agoDon't require help-fns when not needed
Paul Eggert [Wed, 20 May 2015 15:23:09 +0000 (08:23 -0700)]
Don't require help-fns when not needed

* lisp/emacs-lisp/autoload.el, lisp/emacs-lisp/advice.el:
* lisp/emacs-lisp/elint.el:
Don't require help-fns at the top level.
* lisp/emacs-lisp/advice.el (ad-arglist):
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
Don't require help-fns.  (Bug#17001)

9 years agoFix slash collapsing in etags on MS-Windows
Eli Zaretskii [Wed, 20 May 2015 15:18:33 +0000 (18:18 +0300)]
Fix slash collapsing in etags on MS-Windows

* lib-src/etags.c (canonicalize_filename) [DOS_NT]: Separate the
MS-Windows code from the Posix code, and support collapsing both
forward- and back-slashes on MS-Windows.  Fixes a regression found
by the test suite.

9 years agoImprove documentation of glyphless-char-display
Eli Zaretskii [Wed, 20 May 2015 15:14:21 +0000 (18:14 +0300)]
Improve documentation of glyphless-char-display

* doc/lispref/display.texi (Glyphless Chars): Improve
documentation of glyphless character display.

9 years agoFix "acronym" display of glyphless characters on w32
Eli Zaretskii [Wed, 20 May 2015 15:09:37 +0000 (18:09 +0300)]
Fix "acronym" display of glyphless characters on w32

* src/w32term.c (x_draw_glyphless_glyph_string_foreground): Don't
ignore "acronym" substitutes of 1 character for glyphless characters.

9 years agoAdd an automated test for let-when-compile
Oleh Krehel [Wed, 20 May 2015 13:38:55 +0000 (15:38 +0200)]
Add an automated test for let-when-compile

* test/automated/subr-tests.el (let-when-compile): New test.

9 years agoAdd let-when-compile macro instead of using pcase-let
Oleh Krehel [Tue, 19 May 2015 07:49:12 +0000 (09:49 +0200)]
Add let-when-compile macro instead of using pcase-let

* lisp/subr.el (let-when-compile): New let-like macro that makes its
bindings known to macros like `eval-when-compile' in the body.

* lisp/emacs-lisp/lisp-mode.el: Change the top-level `pcase-let' to a
  `let-when-compile'. Also comment out the unused lexical var
  `el-kws-re'.

The change greatly improves readability, while providing almost the
same (even shorter) byte code: instead of pre-evaluating 10 variables,
tossing them into a list, and destructuring that list a full screen
page later, the variables are simply bound as they are evaluated,
wrapped individually in `eval-when-compile'.

9 years ago* lisp/emacs-lisp/package.el: "Delete" button in Help buffer
Artur Malabarba [Wed, 20 May 2015 13:13:22 +0000 (14:13 +0100)]
* lisp/emacs-lisp/package.el: "Delete" button in Help buffer

(package-delete-button-action): New function.
(describe-package-1): Add Delete button.

9 years ago* lisp/emacs-lisp/package.el: Better dependency description
Artur Malabarba [Wed, 20 May 2015 13:03:03 +0000 (14:03 +0100)]
* lisp/emacs-lisp/package.el: Better dependency description

(package--used-elsewhere-p): New optional arg, ALL, and return
package-desc objects instead of names.
(package-delete): Update accordingly.
(describe-package-1): Describe which packages require the package.

9 years agoFix handling and doc-string of FRAME arg of `other-buffer' (Bug#20533)
Martin Rudalics [Wed, 20 May 2015 08:35:13 +0000 (10:35 +0200)]
Fix handling and doc-string of FRAME arg of `other-buffer' (Bug#20533)

* src/buffer.c (Fother_buffer): Argument FRAME must denote a live frame.
Fix doc-string (Bug#20533).

9 years agoImprove `switch-to-buffer' in strongly dedicated windows (Bug#20472)
Martin Rudalics [Wed, 20 May 2015 06:49:23 +0000 (08:49 +0200)]
Improve `switch-to-buffer' in strongly dedicated windows (Bug#20472)

* lisp/window.el (switch-to-buffer-in-dedicated-window): New option.
(switch-to-buffer): If the selected window is strongly dedicated
to its buffer, signal error before prompting for buffer name.  Handle
`switch-to-buffer-in-dedicated-window'.  (Bug#20472)
* doc/lispref/windows.texi (Switching Buffers): Document
`switch-to-buffer-in-dedicated-window'.

9 years agoPrefer "this" to “this” in doc strings
Paul Eggert [Wed, 20 May 2015 02:08:11 +0000 (19:08 -0700)]
Prefer "this" to “this” in doc strings

This mostly just straightens quotes introduced in my previous patch.
Suggested by Dmitry Gutov in:
http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00565.html
* lisp/faces.el, lisp/gnus/gnus-group.el, lisp/ldefs-boot.el:
* lisp/mail/supercite.el, lisp/net/tramp.el, lisp/recentf.el:
* lisp/textmodes/artist.el, lisp/textmodes/rst.el:
* lisp/textmodes/tildify.el, lisp/vc/ediff-util.el:
* lisp/vc/log-edit.el, lisp/xt-mouse.el:
Prefer straight double quotes to curved double quotes in doc strings.

9 years agoFix minor quoting problems in doc strings
Paul Eggert [Tue, 19 May 2015 21:59:15 +0000 (14:59 -0700)]
Fix minor quoting problems in doc strings

These were glitches regardless of how or whether we tackle the
problem of grave accent in doc strings.
* lisp/calc/calc-aent.el (math-restore-placeholders):
* lisp/ido.el (ido-ignore-buffers, ido-ignore-files):
* lisp/leim/quail/cyrillic.el ("bulgarian-alt-phonetic"):
* lisp/leim/quail/hebrew.el ("hebrew-new")
("hebrew-biblical-sil"):
* lisp/leim/quail/thai.el ("thai-kesmanee"):
* lisp/progmodes/idlw-shell.el (idlwave-shell-file-name-chars):
Used curved quotes to avoid ambiguities like ‘`''’ in doc strings.
* lisp/calendar/calendar.el (calendar-month-abbrev-array):
* lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-cache-flush-fcn):
* lisp/cedet/semantic/symref.el (semantic-symref-tool-baseclass):
* lisp/cedet/semantic/tag.el (semantic-tag-copy)
(semantic-tag-components):
* lisp/cedet/srecode/cpp.el (srecode-semantic-handle-:cpp):
* lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
* lisp/emacs-lisp/byte-opt.el (byte-optimize-all-constp):
* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine):
* lisp/emacs-lisp/generator.el (iter-next):
* lisp/gnus/gnus-art.el (gnus-treat-strip-list-identifiers)
(gnus-article-mode-syntax-table):
* lisp/net/rlogin.el (rlogin-directory-tracking-mode):
* lisp/net/soap-client.el (soap-wsdl-get):
* lisp/net/telnet.el (telnet-mode):
* lisp/org/org-compat.el (org-number-sequence):
* lisp/org/org.el (org-remove-highlights-with-change)
(org-structure-template-alist):
* lisp/org/ox-html.el (org-html-link-org-files-as-html):
* lisp/play/handwrite.el (handwrite-10pt, handwrite-11pt)
(handwrite-12pt, handwrite-13pt):
* lisp/progmodes/f90.el (f90-mode, f90-abbrev-start):
* lisp/progmodes/idlwave.el (idlwave-mode, idlwave-check-abbrev):
* lisp/progmodes/verilog-mode.el (verilog-tool)
(verilog-string-replace-matches, verilog-preprocess)
(verilog-auto-insert-lisp, verilog-auto-insert-last):
* lisp/textmodes/makeinfo.el (makeinfo-options):
* src/font.c (Ffont_spec):
Fix minor quoting problems in doc strings, e.g., missing quote,
``x'' where `x' was meant, etc.
* lisp/erc/erc-backend.el (erc-process-sentinel-2):
Fix minor quoting problem in other string.
* lisp/leim/quail/ethiopic.el ("ethiopic"):
* lisp/term/tvi970.el (tvi970-set-keypad-mode):
Omit unnecessary quotes.
* lisp/faces.el (set-face-attribute, set-face-underline)
(set-face-inverse-video, x-create-frame-with-faces):
* lisp/gnus/gnus-group.el (gnus-group-nnimap-edit-acl):
* lisp/mail/supercite.el (sc-attribs-%@-addresses)
(sc-attribs-!-addresses, sc-attribs-<>-addresses):
* lisp/net/tramp.el (tramp-methods):
* lisp/recentf.el (recentf-show-file-shortcuts-flag):
* lisp/textmodes/artist.el (artist-ellipse-right-char)
(artist-ellipse-left-char, artist-vaporize-fuzziness)
(artist-spray-chars, artist-mode, artist-replace-string)
(artist-put-pixel, artist-text-see-thru):
* lisp/vc/ediff-util.el (ediff-submit-report):
* lisp/vc/log-edit.el (log-edit-changelog-full-paragraphs):
Use double-quotes rather than TeX markup in doc strings.
* lisp/skeleton.el (skeleton-pair-insert-maybe):
Reword to avoid the need for grave accent and apostrophe.
* lisp/xt-mouse.el (xterm-mouse-tracking-enable-sequence):
Don't use grave and acute accents to quote.

9 years ago* emacs-lisp/generator.el (cps--gensym, cps--transform-1): Silence compiler
Stefan Monnier [Tue, 19 May 2015 19:37:14 +0000 (15:37 -0400)]
* emacs-lisp/generator.el (cps--gensym, cps--transform-1): Silence compiler

9 years agoTry to port new etags tests to MS-Windows
Paul Eggert [Tue, 19 May 2015 17:38:47 +0000 (10:38 -0700)]
Try to port new etags tests to MS-Windows

* test/etags/CTAGS.good, test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2, test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4, test/etags/ETAGS.good_5:
Adjust to test-case changes below.
* test/etags/Makefile (CSRC): Remove dostorture.c.
Whatever it was trying to test, wasn't working portably.
(LC_ALL): Remove.  Apparently there wasn't an encoding problem,
just a line-ending problem.
* test/etags/c-src/dostorture.c: Remove.
* test/etags/cp-src/c.C: Remove stray CR.
* test/etags/html-src/algrthms.html: Remove trailing CRs.
State UTF-8 as the encoding.  The file is ASCII so it doesn't matter,
but if someone edits it later it should stay UTF-8-compatible.

9 years agoFix display of overlapping window-specific overlays
Eli Zaretskii [Tue, 19 May 2015 15:39:25 +0000 (18:39 +0300)]
Fix display of overlapping window-specific overlays

* src/keyboard.c (adjust_point_for_property): When adjusting point
due to display strings, ignore overlays that are specific to
windows other than the currently selected one.

* src/xdisp.c (handle_single_display_spec): If the display
property comes from an overlay, arrange for buffer iteration to
resume only after the end of that overlay.  (Bug#20607)

9 years agoNew command icomplete-force-complete-and-exit
Dmitry Gutov [Tue, 19 May 2015 12:52:27 +0000 (15:52 +0300)]
New command icomplete-force-complete-and-exit

* lisp/icomplete.el (icomplete-force-complete-and-exit):
New command
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00461.html)
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00516.html).
(icomplete-minibuffer-map): Bind C-j to it.
(icomplete-forward-completions, icomplete-backward-completions):
Mention the new command in the docstring.

* lisp/minibuffer.el (minibuffer-force-complete-and-exit): Revert
the previous fix for bug#17545.

9 years agoFix last commit
Martin Rudalics [Tue, 19 May 2015 10:19:10 +0000 (12:19 +0200)]
Fix last commit

9 years agoIn Elisp manual explain how to override window manager positioning (Bug#20552)
Martin Rudalics [Tue, 19 May 2015 09:35:17 +0000 (11:35 +0200)]
In Elisp manual explain how to override window manager positioning (Bug#20552)

* doc/lispref/frames.texi (Position Parameters): Give example of
how to override a window manager positioning decision.

9 years agoClarify concept of "surrogate minibuffer frames" (Bug#20538)
Martin Rudalics [Tue, 19 May 2015 09:08:21 +0000 (11:08 +0200)]
Clarify concept of "surrogate minibuffer frames" (Bug#20538)

* src/frame.c (Fdelete_frame): In doc-string mention that frame
can't be deleted if it has a surrogate minibuffer.
* doc/lispref/frames.texi (Minibuffers and Frames)
(Deleting Frames): Explain "surrogate minibuffer frames".

9 years agoIn w32heap.c bump DUMPED_HEAP_SIZE to 19/12 MB
Martin Rudalics [Tue, 19 May 2015 06:50:36 +0000 (08:50 +0200)]
In w32heap.c bump DUMPED_HEAP_SIZE to 19/12 MB

* emacs-git/quick/src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 19/12 MB.

9 years ago; * CONTRIBUTE: Fix typo in previous.
Glenn Morris [Tue, 19 May 2015 01:43:01 +0000 (21:43 -0400)]
; * CONTRIBUTE: Fix typo in previous.

9 years agoAdd option to ignore commit lines matching a pattern in ChangeLog.
Glenn Morris [Tue, 19 May 2015 01:41:03 +0000 (21:41 -0400)]
Add option to ignore commit lines matching a pattern in ChangeLog.

* build-aux/gitlog-to-changelog: Add --ignore-line option.
* build-aux/gitlog-to-emacslog: Ignore lines matching '^; '.
; * CONTRIBUTE: Mention this.

9 years agoDon't skip new etags tests on non-UTF-8 hosts
Paul Eggert [Tue, 19 May 2015 01:05:26 +0000 (18:05 -0700)]
Don't skip new etags tests on non-UTF-8 hosts

Problem reported by Eli Zaretskii for MS-Windows.
* test/etags/Makefile (UTF8_LOCALE, UTF8_ENCODING): Remove.
(LC_ALL): Set to C if the current locale isn't UTF-8.
(.PHONY): Remove ediff_1 thru ediff_5.
(check): Always run.

9 years ago* lisp/calculator.el (calculator-funcall):
Glenn Morris [Tue, 19 May 2015 00:54:24 +0000 (20:54 -0400)]
* lisp/calculator.el (calculator-funcall):

* lisp/textmodes/artist.el (artist-spray-random-points):
Use standard degree/radian conversion utilities.

9 years ago; * lisp/mail/mailabbrev.el: Comment.
Glenn Morris [Tue, 19 May 2015 00:53:11 +0000 (20:53 -0400)]
; * lisp/mail/mailabbrev.el: Comment.

9 years agoFurther lisp-complete-symbol related cleanup.
Glenn Morris [Tue, 19 May 2015 00:51:47 +0000 (20:51 -0400)]
Further lisp-complete-symbol related cleanup.

* lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
Unadvertise non-functional argument.  Replace obsolete alias.

9 years agoAdd a test case for Maven warning ouput
Dmitry Gutov [Mon, 18 May 2015 21:02:39 +0000 (00:02 +0300)]
Add a test case for Maven warning ouput

* test/automated/compile-tests.el
(compile-tests--test-regexps-data): Add a case for Maven warning
ouput.
(compile--test-error-line): Check the compilation message type, if
it's specified in the test data.

9 years agoUpdate Maven compilation-mode entry to distinguish warnings
Paul Pogonyshev [Mon, 18 May 2015 21:00:09 +0000 (00:00 +0300)]
Update Maven compilation-mode entry to distinguish warnings

* lisp/progmodes/compile.el
(compilation-error-regexp-alist-alist): Update Maven entry to
distinguish warnings (bug#20556).

9 years ago* test/automated/sgml-mode-tests.el: New file.
Przemysław Wojnowski [Sun, 17 May 2015 19:49:05 +0000 (21:49 +0200)]
* test/automated/sgml-mode-tests.el: New file.

9 years agoImprove handling of the first Git revision
Dmitry Gutov [Mon, 18 May 2015 12:49:13 +0000 (15:49 +0300)]
Improve handling of the first Git revision

* lisp/vc/log-view.el (log-view-toggle-entry-display): When
there's no next entry, delete until the end of the buffer.
(log-view-end-of-defun-1): Stop at eob.

* lisp/vc/vc-annotate.el
(vc-annotate-show-diff-revision-at-line-internal): Don't give up
when previous-revision is nil.

* lisp/vc/vc-git.el (vc-git-expanded-log-entry): End the arguments
with `--' to avoid ambiguity.
(vc-git-annotate-extract-revision-at-line): Exclude `^' from the
returned revision string.
(vc-git-annotate-time): Expect `^' before the first revision.

* lisp/vc/vc-git.el (vc-git-diff): Diff against an empty tree if
REV1 is nil, and REV2 is not.

* lisp/vc/vc.el: Update the description of the `diff' function.

9 years agoAllow checkdoc to be called in batch
Oleh Krehel [Mon, 18 May 2015 08:07:03 +0000 (10:07 +0200)]
Allow checkdoc to be called in batch

* lisp/emacs-lisp/checkdoc.el (checkdoc-error): When `noninteractive'
  is non-nil, echo the error with `warn'.

How it can be used in -batch:

(with-current-buffer (find-file "checkdoc.el")
  (checkdoc-current-buffer t))

9 years ago* lisp/calendar/solar.el (solar-ecliptic-coordinates): Use float-pi.
Glenn Morris [Mon, 18 May 2015 06:02:10 +0000 (23:02 -0700)]
* lisp/calendar/solar.el (solar-ecliptic-coordinates): Use float-pi.

9 years ago* admin/notes/unicode: New section "binary files".
Paul Eggert [Mon, 18 May 2015 00:28:54 +0000 (17:28 -0700)]
* admin/notes/unicode: New section "binary files".

9 years agoChange new etags test to use UTF-8 encoding
Paul Eggert [Mon, 18 May 2015 00:21:54 +0000 (17:21 -0700)]
Change new etags test to use UTF-8 encoding

* test/etags/CTAGS.good, test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2, test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4, test/etags/ETAGS.good_5:
* test/etags/html-src/index.shtml, test/etags/html-src/software.html:
* test/etags/html-src/softwarelibero.html:
Switch to UTF-8 encoding.
* test/etags/Makefile (SRCS): Adjust to switch to UTF-8.
Remove Makefile, as it's too incestuous to have the test input
include the build procedure.
(UTF8_LOCALE, UTF_ENCODING): New macros.
(LC_ALL): If possible, set to a UTF-8 encoding if not already UTF-8.
(check): Skip if not UTF-8.
(.PHONY): New rule.
(FRC): Remove, as superseded by .PHONY.  All uses removed.
(regexfile): Prefer printf to echo when outputting oddball chars.
(.PRECIOUS): Remove, as these files are not built.

9 years agoRename 'foo-gzipped' to 'foo.gz'
Paul Eggert [Mon, 18 May 2015 00:16:26 +0000 (17:16 -0700)]
Rename 'foo-gzipped' to 'foo.gz'

* test/automated/data/decompress/foo.gz:
Rename from test/automated/data/decompress/foo-gzipped,
to make it easier for other tools to tell that it's compressed.
* test/automated/zlib-tests.el (zlib--decompress):
Adjust to renamed file.

9 years agoSet up default-directory
Dmitry Gutov [Sun, 17 May 2015 23:01:04 +0000 (02:01 +0300)]
Set up default-directory

* lisp/vc/vc-annotate.el (vc-annotate-mode-map): Remove duplicate
binding for `v'.
(vc-annotate-show-changeset-diff-revision-at-line): Set up an
appropriate value for default-directory.

9 years ago* lisp/eshell/em-term.el (eshell-term-sentinel):
Samer Masterson [Sun, 17 May 2015 21:55:16 +0000 (14:55 -0700)]
* lisp/eshell/em-term.el (eshell-term-sentinel):

No-op by default, only kills term buffer if
`eshell-destroy-buffer-when-process-dies' is non-nil.  (Bug#18108)
(eshell-destroy-buffer-when-process-dies): New custom to preserve
previous behavior.

9 years agoeshell: Introduce new buffer syntax
Samer Masterson [Sat, 16 May 2015 02:42:00 +0000 (19:42 -0700)]
eshell: Introduce new buffer syntax

The new buffer syntax '#<buffer-name>' is equivalent to '#<buffer
buffer-name>'.  Remove `eshell-buffer-shorthand', as it is no longer
needed (Bug#19319).

* lisp/eshell/esh-io.el (eshell-buffer-shorthand): Remove.
(eshell-get-target): Remove shorthand-specific code.
* lisp/eshell/esh-arg.el (eshell-parse-special-reference): Parse
'#<buffer-name>'.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 17 May 2015 18:02:52 +0000 (14:02 -0400)]
; Auto-commit of ChangeLog files.

9 years agoFix integer-valued `mouse-highlight' (Bug#20590)
Johan Bockgård [Sat, 16 May 2015 20:47:30 +0000 (22:47 +0200)]
Fix integer-valued `mouse-highlight' (Bug#20590)

* src/xterm.c (handle_one_xevent) [USE_GTK]: Fix ifdef scope.

9 years agoMS-Windows followup for ASCIIfication of curved quotes
Eli Zaretskii [Sun, 17 May 2015 15:33:22 +0000 (18:33 +0300)]
MS-Windows followup for ASCIIfication of curved quotes

* lisp/term/w32console.el (terminal-init-w32console): Repeat the
test for curved quotes being displayable, after switching the
terminal encoding.  (Bug#20545)

9 years agoSpelling fixes
Paul Eggert [Sun, 17 May 2015 15:18:29 +0000 (08:18 -0700)]
Spelling fixes

9 years agoAdd comment that x_shift_glyphs_for_insert is never called.
Jan D [Sun, 17 May 2015 09:30:09 +0000 (11:30 +0200)]
Add comment that x_shift_glyphs_for_insert is never called.

* xterm.c (x_shift_glyphs_for_insert, x_redisplay_interface): Add
comment that this function is never called.

9 years ago* src/lisp.mk: Remove from repository and generate at build-time.
Glenn Morris [Sun, 17 May 2015 00:52:27 +0000 (17:52 -0700)]
* src/lisp.mk: Remove from repository and generate at build-time.

* src/Makefile.in (lisp.mk): New rule to generate from loadup.el.
(shortlisp_filter): New variable.
(emacs$(EXEEXT), $(etc)/DOC): Depend on lisp.mk.
(distclean): Remove lisp.mk.
* Makefile.in ($(MAKEFILE_NAME)): No longer depend on src/lisp.mk.
* lisp/loadup.el: Tweak layout to make it easier to parse.
* make-dist: Do not distribute src/lisp.mk.

9 years agoDisplay shorter dates in Git annotate output
Dmitry Gutov [Sat, 16 May 2015 23:45:51 +0000 (02:45 +0300)]
Display shorter dates in Git annotate output

* lisp/vc/vc-git.el (vc-git-annotate-command): Use the short date
format (when not overridden with vc-git-annotate-switches).
(vc-git-annotate-time): Support the short format, as well as ISO
8601 that has been used until now (bug#5428).

9 years agoASCIIfy curved quotes on displays lacking them
Paul Eggert [Sat, 16 May 2015 20:47:36 +0000 (13:47 -0700)]
ASCIIfy curved quotes on displays lacking them

* lisp/international/mule-cmds.el (set-locale-environment):
If curved quotes don't work, display straight ASCII approximations
(Bug#20545).

9 years agoSmall src/Makefile simplification.
Glenn Morris [Sat, 16 May 2015 20:15:20 +0000 (13:15 -0700)]
Small src/Makefile simplification.

* src/lisp.mk (shortlisp): Rename from lisp, remove $lispsource prefix.
* src/Makefile.in (lisp): Derive from shortlisp.
($(etc)/DOC): Use $shortlisp rather than parsing lisp.mk.

9 years ago* lisp/help-mode.el (help-go-forward): Doc fix.
Eli Zaretskii [Sat, 16 May 2015 14:34:13 +0000 (17:34 +0300)]
* lisp/help-mode.el (help-go-forward): Doc fix.

(Bug#20577)

9 years ago* doc/lispref/debugging.texi (Profiling): Improve indexing.
Eli Zaretskii [Sat, 16 May 2015 14:30:50 +0000 (17:30 +0300)]
* doc/lispref/debugging.texi (Profiling): Improve indexing.

(Bug#20576)

9 years agoUse `unless' to have one fewer `not'
Dmitry Gutov [Sat, 16 May 2015 14:11:33 +0000 (17:11 +0300)]
Use `unless' to have one fewer `not'

* lisp/vc/vc-git.el (vc-git-resolve-when-done): Use `unless' to
have one fewer `not'.

9 years agoRemove redundant :group declarations from vc-git.el
Dmitry Gutov [Sat, 16 May 2015 14:06:10 +0000 (17:06 +0300)]
Remove redundant :group declarations from vc-git.el

* lisp/vc/vc-git.el (vc-git-diff-switches)
(vc-git-annotate-switches, vc-git-resolve-conflicts)
(vc-git-program, vc-git-root-log-format): Remove the redundant
:group declarations.

9 years agoRemoves the predicate from lisp-complete-symbol (Bug#20456)
Nicolas Petton [Sat, 16 May 2015 13:53:44 +0000 (15:53 +0200)]
Removes the predicate from lisp-complete-symbol (Bug#20456)

* lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Do not use predicate
and remove it from the docstring.

9 years agoAdd new option vc-git-resolve-conflicts
Dmitry Gutov [Sat, 16 May 2015 13:14:01 +0000 (16:14 +0300)]
Add new option vc-git-resolve-conflicts

* lisp/vc/vc-git.el (vc-git-resolve-conflicts): New variable.
(vc-git-find-file-hook): Add to after-save-hook only when the
above is non-nil.
(vc-git-resolve-when-done): Update to honor the new variable.
(Bug#20292)

9 years ago; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Add a comment.
Eli Zaretskii [Sat, 16 May 2015 09:41:02 +0000 (12:41 +0300)]
; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Add a comment.

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 16 May 2015 09:33:12 +0000 (12:33 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years ago* lisp/emacs-lisp/tabulated-list.el: Don't error on nil header-string
Artur Malabarba [Sat, 16 May 2015 08:52:53 +0000 (09:52 +0100)]
* lisp/emacs-lisp/tabulated-list.el: Don't error on nil header-string

(tabulated-list-init-header): Document new behavior.
(tabulated-list-print-fake-header): No nothing if
`tabulated-list--header-string' is nil.
(tabulated-list--header-string): Add a docstring.

* doc/lispref/modes.texi (Tabulated List Mode): Document it.
* etc/NEWS: Document it.

9 years agoRevert "Fix cps--gensym"
Leo Liu [Sat, 16 May 2015 01:03:29 +0000 (09:03 +0800)]
Revert "Fix cps--gensym"

* lisp/emacs-lisp/generator.el (cps--gensym): Revert commit
  fbda511ab8069d0115eafca411a43353b85431b1 on 2015-05-14.

9 years ago; * lib-src/etags.c: Comment.
Glenn Morris [Sat, 16 May 2015 01:04:28 +0000 (21:04 -0400)]
; * lib-src/etags.c: Comment.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00342.html

9 years agoReplace AC_SUBST_FILE in configure with include in Makefiles.
Glenn Morris [Sat, 16 May 2015 00:51:45 +0000 (20:51 -0400)]
Replace AC_SUBST_FILE in configure with include in Makefiles.

* configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag)
(oldxmenu_deps_frag, lisp_frag): Remove output variables/files.
(AUTO_DEPEND): New output variable.
* lwlib/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(lwlib_deps_frag): Replace by conditional include.
* lwlib/autodeps.mk: Remove file.
* oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(oldxmenu_deps_frag): Replace by conditional include.
* oldXMenu/autodeps.mk: Remove file.
* src/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(lisp_frag): Replace by an include.
(deps_frag): Replace by conditional include.
* src/autodeps.mk: Remove file.

9 years agoTweak japanese.el's loading of dependencies.
Glenn Morris [Fri, 15 May 2015 22:33:09 +0000 (18:33 -0400)]
Tweak japanese.el's loading of dependencies.

* lisp/loadup.el: Explicitly load cp51932 and eucjp-ms.
* lisp/language/japanese.el: Use require rather than load.
* lisp/international/cp51932.el, lisp/international/eucjp-ms.el:
Provide a feature.
* admin/charsets/eucjp-ms.awk, admin/charsets/cp51932.awk:
Provide a feature in the generated file.

9 years agoFix NS warnings.
Jan D [Fri, 15 May 2015 15:06:03 +0000 (17:06 +0200)]
Fix NS warnings.

* nsmenu.m (ns_popup_dialog)
* nsimage.m (initFromXBM:width:height:fg:bg:)
* nsfns.m (Fx_create_frame): Remove unused variables.
(Fns_read_file_name): Initialize fname, remove ret.

* nsterm.m (ns_draw_window_cursor): Handle DEFAULT_CURSOR in switch.
(ns_get_color, ns_set_horizontal_scroll_bar, keyDown): Remove unused
variable.
(init): Add parantesis in if.
(ns_create_terminal): Assign set_horizontal_scroll_bar_hook.

9 years agoFix a enum conversion warning in macfont.m
Jan Djärv [Fri, 15 May 2015 14:50:01 +0000 (16:50 +0200)]
Fix a enum conversion warning in macfont.m

* src/macfont.h (CharacterCollection): Typedef to NSCharacterCollection.
(MAC_CHARACTER_COLLECTION_*): Use the NS variants.

9 years agoSupport de-alt dictionary with Aspell.
Eli Zaretskii [Fri, 15 May 2015 14:24:06 +0000 (17:24 +0300)]
Support de-alt dictionary with Aspell.

* lisp/textmodes/ispell.el (ispell-aspell-find-dictionary):
Support Aspell dictionaries with names like "de-alt".  (Bug#20581)

9 years agocus-start.el: Add ns-confirm-quit.
Jan Djärv [Fri, 15 May 2015 14:23:29 +0000 (16:23 +0200)]
cus-start.el: Add ns-confirm-quit.

* cus-start.el: Add ns-confirm-quit.

9 years agoFix warnings on OSX 10.10.
Jan Djärv [Fri, 15 May 2015 14:21:59 +0000 (16:21 +0200)]
Fix warnings on OSX 10.10.

* nsfns.m (MODAL_OK_RESPONSE): New define for different OSX versions.
(Fns_read_file_name): Check against MODAL_OK_RESPONSE.
(compute_tip_xy): Use convertRectToScreen for OSX >= 10.7

* nsmenu.m (initWithContentRect:styleMask:backing:defer:)
* nsimage.m (allocInitFromFile, setPixmapData): Only call
setScalesWhenResized for OSX < 10.6.

* nsterm.h (EmacsScroller): Declare scrollerWidth.

* nsterm.m (ns_copy_bits): New function that does not use deprecated
NSCopyBits.
(ns_scroll_run, ns_shift_glyphs_for_insert): Call ns_copy_bits.
(runAlertPanel): New function.
(applicationShouldTerminate:): Call runAlertPanel.
(initFrameFromEmacs, toggleFullScreen:): Only call useOptimizedDrawing
for OSX < 10.10.
(initFrameFromEmacs:): Only call allocateGState for OSX < 10.10.
(windowWillUseStandardFrame:defaultFrame:): Cast arg to abs to int.
(draggingEntered:): Returns NSDragOperation.
(scrollerWidth): Use scrollerWidthForControlSize for OSX >= 10.7.

9 years ago* lisp/emacs-lisp/package.el: Don't ensure-init during startup
Artur Malabarba [Fri, 15 May 2015 09:54:48 +0000 (10:54 +0100)]
* lisp/emacs-lisp/package.el: Don't ensure-init during startup

(package--init-file-ensured): New variable.
(package-initialize, package--ensure-init-file): Use it.

9 years agoHonor :fore/background for XBM on NS (Bug#14969).
Jan Djärv [Fri, 15 May 2015 09:31:38 +0000 (11:31 +0200)]
Honor :fore/background for XBM on NS (Bug#14969).

* nsterm.h (EmacsImage): Add xbm_fg, remove initFromSkipXBM,
initFromXBM takes bg, fg args, remove flip arg.
(ns_image_from_XBM): Add bg, fg args.
* image.c (x_create_bitmap_from_data)
(Create_Pixmap_From_Bitmap_Data): ns_image_from_XBM takes bg, fg args.

* nsimage.m (ns_image_from_XBM): Add fg, bg args, pass to initFromXBM.
Remove flip arg.
(initFromSkipXBM): Move code to initFromXBM.
(initFromXBM): Actually set fg and bg, instead of playing alpha games.
Use fg, bg from args (Bug#14969).  Remove if (length) section, was always
false.
Remove bit flipping (bitPat, swt), generated incorrect images when
width/height wasn't a multiple of 8.
(setXBMColor:): Modify planes by comparing to saved xbm_fg.

* nsterm.m (ns_draw_fringe_bitmap): initFromXBM takes fg, bg args, remove
flip arg.

9 years ago* lisp/emacs-lisp/package.el: Be more careful with the init file
Artur Malabarba [Fri, 15 May 2015 09:17:48 +0000 (10:17 +0100)]
* lisp/emacs-lisp/package.el: Be more careful with the init file

(package--ensure-init-file): Check that user-init-file is set,
exists, is readable, and is writable.  (Bug#20584)
Also expand the docstring.

9 years agoSync with upstream verilog-mode revision 6232468
Wilson Snyder [Fri, 15 May 2015 01:37:32 +0000 (21:37 -0400)]
Sync with upstream verilog-mode revision 6232468

* lisp/progmodes/verilog-mode.el (verilog-font-lock-grouping-keywords-face)
(verilog-highlight-grouping-keywords): Fix use of face when
`verilog-highlight-grouping-keywords' set.  Reported by Jeff
Pompa.
(verilog-auto-reset): Fix AUTORESET to ignore member resets if
parent is reset, bug906. Reported by Ken Schmidt.
(verilog-auto-inout-module): Add fourth regexp argument to
AUTOINOUTMODULE and AUTOINOUTCOMP for signals to not match,
bug856. Reported by John Tillema.
(verilog-auto-inst-port): Fix AUTOINST interfaces to not show
modport if signal attachment is itself a modport.  Reported by
Matthew Lovell.
(verilog-auto-reset, verilog-auto-sense-sigs): Fix AUTORESET with
always_comb and always_latch, bug844.  Reported by Greg Hilton.
(verilog-at-constraint-p, verilog-beg-of-statement-1): Fix hanging
with many curly-bracket pairs, bug663.
(verilog-set-auto-endcomments): Fix end comments for functions of
type void, etc.  Reported by Alex Reed.
(verilog-do-indent): Fix electric tab deleting form-feeds.  Note
caused by indent-line-to deleting tabls pre 24.5.
(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-label-be): When auto-commenting a buffer, consider
auto-comments on all known keywords (not just a subset thereof).
Reported by Alex Reed.
(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): Detect the function- or task-name
when auto-commenting blocks that lack an explicit
portlist. Reported by Alex Reed.
(verilog-auto, verilog-auto-insert-last): Add AUTOINSERTLAST to
allow post-AUTO user fixups, bug826. Reported by Dennis
Muhlestein.
(verilog-no-indent-begin-re): When `verilog-indent-begin-after-if'
is nil, fix indenting initial/final to match always statements,
bug825. Reported by Tim Clapp.
(verilog-extended-complete-re): Fix indentation of DPI-C imports
with c_identifiers, and DPI-C imports, bug557. Reported by ZeDong
Mao and Jason Forkey.
(verilog-read-decls): Fix parsing typed interfaces.  Fix
AUTOINOUTMODPORT missing types.  Reported by Stephan Bourduas.
Fix localparam not being ignored in AUTOINSTPARAM,
bug889. Reported by Shannon Hill.
(verilog-auto-output-every): Add regexp to AUTOOUTPUTEVERY,
bug793.  Reported by Pierre-David Pfister.
(verilog-auto-arg-format, verilog-auto-arg-ports): Add
verilog-auto-arg-format to support newlines in AUTOARG. Reported
by Jie Xiao.
(verilog-batch-execute-func): Do not batch re-auto files loaded by
Local Variables. Fix printing "no changes to be saved" with
verilog-batch. Reported by Dan Dever.
(verilog-auto-inout-module): Fix AUTOINOUTMODULE not inserting
interface-only modules, bug721.  Reported by Dean Hoyt.

Author: Alex Reed <acreed4@gmail.com>
* lisp/progmodes/verilog-mode.el (verilog-beg-of-statement): Don't
treat '<keyword>:<identifier>' as the start of a labeled
statement, bug905.  Reported by Enzo Chi.
(verilog-directive-re, verilog-compiler-directives)
(verilog-keywords): Match full set of IEEE 2012-1800 compiler
directives (plus some extras) when determining indentation, bug
901.  Reported by Bernd Beuster.
(verilog-at-constraint-p): Fix indentation of coverpoint bins if
iff expression doesn't start with word-character, bug900.
(verilog-optional-signed-range-re, verilog-optional-signed-re):
Fix incorrect indentation/alignment of unsigned declarations,
bug897.
(verilog-looking-back, verilog-in-attribute-p): Fix labling of
always constructs, bug895.
(verilog-calc-1): Fix verilog-mode constraint indentation,
bug324. Reported by Eric Mastromarchi.
(verilog-beg-of-statement): Fix indenting for some forms of
constraintsm bug433.  Reported by Brad Parker.  Fix indentation of
continued assignment incorrect if first line ends with ']',
bug437. Reported by Dan Dever.  Fix indention of cover inside an
ifdef, bug 862. Reported by Bernd Beuster Fix labeling do-while
blocks, bug842.
(verilog-preprocessor-re): Fix fork/end UNMATCHED warning,
bug859. Reported by Kaushal Modi.
(verilog-set-auto-endcomments): Fix endlabel end comments, bug888.
(verilog-backward-token): Fix indenting sensitivity lists with
named events, bug840.  Reed.
(verilog-no-indent-begin-re): Fix `verilog-indent-begin-after-if'
nil not honoring 'forever', 'foreach', and 'do' keywords.

9 years agoCheck for invalid GTK+ monitor scales
Paul Eggert [Thu, 14 May 2015 16:21:56 +0000 (09:21 -0700)]
Check for invalid GTK+ monitor scales

* src/gtkutil.c (xg_get_gdk_scale): Return 1 for invalid scales,
INT_MAX for too-large scales.  All callers changed to assume the
result is valid (Bug#20432).
(xg_frame_set_char_size, xg_update_scrollbar_pos):
Calculate scale only if needed.

show ASCII approximations instead.

9 years agoFix daemon crashes when linum-mode is turned on early on
Eli Zaretskii [Thu, 14 May 2015 15:48:38 +0000 (18:48 +0300)]
Fix daemon crashes when linum-mode is turned on early on

* src/window.c (Fwindow_end): Don't try calling display engine
functions on initial-frame frame.  (Bug#20565)

9 years ago; Remove etags test files whose copyright is incompatible
Eli Zaretskii [Thu, 14 May 2015 15:35:13 +0000 (18:35 +0300)]
; Remove etags test files whose copyright is incompatible

9 years agoFix selective diff browsing in Ediff
Eli Zaretskii [Thu, 14 May 2015 15:24:19 +0000 (18:24 +0300)]
Fix selective diff browsing in Ediff

* lisp/vc/ediff-util.el (ediff-focus-on-regexp-matches): Go to the
beginning of the region before searching for the
ediff-regexp-focus-* regexps.  (Bug#20568)

9 years agoFixes Bug#20142.
Jan D [Thu, 14 May 2015 15:16:46 +0000 (17:16 +0200)]
Fixes Bug#20142.

* gtkutil.c (delete_cb): Don't send delete event here, it does arrive
in the main loop, even for Gtk 3 (Bug#20142).

9 years agoDon't access display after i/o error (Bug#19147).
Jan D [Thu, 14 May 2015 14:21:02 +0000 (16:21 +0200)]
Don't access display after i/o error (Bug#19147).

* xterm.c (x_connection_closed): Add third arg ioerror.
If ioerror, set display to 0 (Bug#19147).
(x_error_quitter): Call x_connection_closed with third arg false.
(x_io_error_quitter): Call x_connection_closed with third arg true.

9 years agoHandle GTK_SCALE, fixes Bug#20432.
Jan D [Thu, 14 May 2015 11:24:53 +0000 (13:24 +0200)]
Handle GTK_SCALE, fixes Bug#20432.

* gtkutil.c (xg_get_gdk_scale): New function.
(xg_frame_set_char_size)
(x_wm_set_size_hint, xg_get_default_scrollbar_width)
(xg_get_default_scrollbar_height)
(xg_update_horizontal_scrollbar_pos): Take GTK_SCALE in to account
when setting sizes (Bug#20432).

9 years agoFix cps--gensym
Leo Liu [Thu, 14 May 2015 03:18:54 +0000 (11:18 +0800)]
Fix cps--gensym

* lisp/emacs-lisp/generator.el (cps--gensym): Fix.

9 years agoFix bootstrap (void function cl-member).
Glenn Morris [Wed, 13 May 2015 23:02:31 +0000 (19:02 -0400)]
Fix bootstrap (void function cl-member).

* lisp/emacs-lisp/cl-lib.el: Load cl-seq if no cl-loaddefs file.
* lisp/emacs-lisp/cl-seq.el: Provide a feature.

9 years ago* lisp/loadup.el ("emacs-lisp/cl-generic"): Preload
Stefan Monnier [Wed, 13 May 2015 22:39:49 +0000 (18:39 -0400)]
* lisp/loadup.el ("emacs-lisp/cl-generic"): Preload

* src/lisp.mk (lisp): Add emacs-lisp/cl-generic.elc.
* lisp/emacs-lisp/cl-generic.el (cl-generic-define-method):
Avoid defalias for closures which are not immutable.
(cl--generic-prefill-dispatchers): New macro.  Use it to prefill the
dispatchers table with various entries.

* lisp/emacs-lisp/ert.el (emacs-lisp-mode-hook):
* lisp/emacs-lisp/seq.el (emacs-lisp-mode-hook): Use add-hook.

9 years agoImprove tagging of C bindings in DEFVAR_*
Eli Zaretskii [Wed, 13 May 2015 17:26:07 +0000 (20:26 +0300)]
Improve tagging of C bindings in DEFVAR_*

* src/Makefile.in (TAGS): Add --regex options to tag the C binding
from DEFVAR_*.

9 years ago; * etc/NEWS: Small edit.
Glenn Morris [Wed, 13 May 2015 16:38:05 +0000 (12:38 -0400)]
; * etc/NEWS: Small edit.