]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoetc/NEWS: Mention the new second parameter to `package-install'
Kaushal Modi [Wed, 24 Feb 2016 02:30:30 +0000 (13:30 +1100)]
etc/NEWS: Mention the new second parameter to `package-install'

* etc/NEWS: Mention the new second parameter to
`package-install' (bug#22784).

8 years agoHighlight assignments in Makefiles more correctly
John F. Trudeau [Wed, 24 Feb 2016 01:21:06 +0000 (12:21 +1100)]
Highlight assignments in Makefiles more correctly

* lisp/progmodes/make-mode.el (makefile-macroassign-regex):
Highlight assignments preceded by a TAB character correctly
(bug#20787).

Copyright-paperwork-exempt: yes

Backport:

(cherry picked from commit bbd86c5642bd62c43d72391669f28eaa14459fd5)

8 years agoImprove documentation of focus-related hooks
Eli Zaretskii [Tue, 23 Feb 2016 17:42:14 +0000 (19:42 +0200)]
Improve documentation of focus-related hooks

* doc/lispref/commands.texi (Focus Events): Mention focus-related
hooks.  (Bug#21728)

8 years agoFurther improve doc string of 'disable-point-adjustment'
Eli Zaretskii [Tue, 23 Feb 2016 17:35:21 +0000 (19:35 +0200)]
Further improve doc string of 'disable-point-adjustment'

* src/keyboard.c (syms_of_keyboard): <disable-point-adjustment>
<global-disable-point-adjustment>: Clarify doc strings.  (Bug#22771)

8 years agoFurther adaptions in file-notify-tests.el for w32notify
Michael Albinus [Tue, 23 Feb 2016 12:51:36 +0000 (13:51 +0100)]
Further adaptions in file-notify-tests.el for w32notify

* test/automated/file-notify-tests.el
(file-notify--test-read-event-timeout, file-notify--test-timeout):
Decrease values.
(file-notify-test03-autorevert)
(file-notify-test04-file-validity)
(file-notify-test05-dir-validity): Run tests also for w32notify.
(file-notify-test08-watched-file-in-watched-dir):
Adapt expected events for w32notify.

8 years agoDon't bug out on localised dates in gnus-icalendar
Jan Tatarik [Tue, 23 Feb 2016 10:17:41 +0000 (21:17 +1100)]
Don't bug out on localised dates in gnus-icalendar

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event:org-timestamp): Don't bug out on
localised dates.

8 years ago(ls-lisp-insert-directory): Make -B work
Drew Adams [Tue, 23 Feb 2016 10:12:55 +0000 (21:12 +1100)]
(ls-lisp-insert-directory): Make -B work

* lisp/ls-lisp.el (ls-lisp-insert-directory): Make -B work
(bug#20776).

Backport:

(cherry picked from commit ef52e66efd78aac4c4e5bd5e11870e5ba3b37a1e)

8 years agoMake buttons in header lines work
Vaidheeswaran C [Tue, 23 Feb 2016 09:46:00 +0000 (20:46 +1100)]
Make buttons in header lines work

* lisp/help-mode.el (help-button-action): `help-xref-button' in
header line doesn't work (bug#21024).

Backport:

(cherry picked from commit c11e565a6b6d09fa39d4c3ef65bef08190eaecc1)

8 years agoMake setf for frame-height/width work again
Christopher Wellons [Tue, 23 Feb 2016 04:45:08 +0000 (15:45 +1100)]
Make setf for frame-height/width work again

* lisp/emacs-lisp/cl-lib.el (frame-height): Make setf for
frame-height/width work again (bug#21979).

8 years agoEncode header strings before printing
Łukasz Stelmach [Tue, 23 Feb 2016 03:54:30 +0000 (14:54 +1100)]
Encode header strings before printing

* lisp/ps-print.el (ps-generate-header-line): Encode the
header strings to avoid problems with non-ASCII headers
(bug#22611).

Backport:

(cherry picked from commit 3cedbdcc71ebefc12bd20ec84f74251fe99ee7d0)

8 years ago(cl-union): Do not ignore :test argument when lists are equal.
Nicolas Richard [Tue, 23 Feb 2016 03:38:30 +0000 (14:38 +1100)]
(cl-union): Do not ignore :test argument when lists are equal.

* cl-seq.el (cl-union): Do not ignore :test argument when lists are equal.

* test/automated/cl-seq-tests.el: New file (bug#22729).

8 years agoAdd `isearch' to `basic-faces'
Lars Ingebrigtsen [Tue, 23 Feb 2016 02:31:25 +0000 (13:31 +1100)]
Add `isearch' to `basic-faces'

* doc/lispref/display.texi (Basic Faces): Mention the isearch
and lazy-highlight faces.

* lisp/replace.el (match): Add `isearch' to the `basic-faces'
group, too (bug#22760).

8 years agoMake $, : and @ "prefix characters" in ruby-mode
Dmitry Gutov [Tue, 23 Feb 2016 00:27:49 +0000 (02:27 +0200)]
Make $, : and @ "prefix characters" in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Change the
syntax classes of $, : and @ to "prefix character"
(http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00272.html).
(ruby-syntax-propertize): Undo that specifically for colons
followed by an opening paren or bracket.
(ruby-font-lock-keyword-beg-re): Include colon character.
(ruby-font-lock-keywords): Adjust the constants matcher for `:'
not being a symbol constituent anymore.

8 years agoMake find-tag-default-bounds more strict
Dmitry Gutov [Mon, 22 Feb 2016 22:56:51 +0000 (00:56 +0200)]
Make find-tag-default-bounds more strict

* lisp/subr.el (find-tag-default-bounds): Delegate to
bounds-of-thing-at-point (bug#22692).

8 years agoMinor fixes in filenotify.el
Michael Albinus [Mon, 22 Feb 2016 21:05:00 +0000 (22:05 +0100)]
Minor fixes in filenotify.el

* lisp/filenotify.el (top): Require 'cl-lib.
(file-notify--rm-descriptor)
(file-notify--event-watched-file): Use cl-caadr.
(file-notify-callback): Handle also `ignore' events from inotify.

8 years agoAdditional fixes for file notification
Michael Albinus [Mon, 22 Feb 2016 17:52:37 +0000 (18:52 +0100)]
Additional fixes for file notification

* lisp/filenotify.el (top): Require 'cl when compiling.
(file-notify--event-watched-file): New defun.
(file-notify--rm-descriptor, file-notify-callback):
Handle case of several monitors running in parallel.

* test/automated/file-notify-tests.el
(file-notify--test-event-test): Simplify test.
(file-notify--test-with-events): Get rid of outer definition.
Check also results of tests performed in callbacks.
(file-notify-test02-events): No wrapping when calling
`file-notify-rm-watch'.  No special checking for callback tests.
(file-notify-test07-backup): Adapt expected events for gfilenotify.
(file-notify-test08-watched-file-in-watched-dir): Improve.

8 years agoFix documentation of 'global-disable-point-adjustment'
Eli Zaretskii [Mon, 22 Feb 2016 17:30:01 +0000 (19:30 +0200)]
Fix documentation of 'global-disable-point-adjustment'

* src/keyboard.c (syms_of_keyboard) <disable-point-adjustment>
<global-disable-point-adjustment>: Doc fixes.  (Bug#22771)

8 years ago; Spelling fix
Paul Eggert [Mon, 22 Feb 2016 15:44:01 +0000 (07:44 -0800)]
; Spelling fix

8 years agoSet file modes of pinentry socket for extra safety
Daiki Ueno [Mon, 22 Feb 2016 02:28:11 +0000 (11:28 +0900)]
Set file modes of pinentry socket for extra safety

* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.

8 years agoClarify GnuPG version compatibility chapter
Daiki Ueno [Mon, 22 Feb 2016 01:40:42 +0000 (10:40 +0900)]
Clarify GnuPG version compatibility chapter

* doc/misc/epa.texi (GnuPG version compatibility): Make the gpg-agent
description a bit clearer.

8 years agoRevert "Change the default socket location for pinentry"
Daiki Ueno [Mon, 22 Feb 2016 01:45:53 +0000 (10:45 +0900)]
Revert "Change the default socket location for pinentry"

This reverts commit e34fbdee8aca84b98393b06b2450837d175999ca.
It turned out that the address is fixed in Pinentry itself.

8 years agoKill off xref--display-history
Dmitry Gutov [Sun, 21 Feb 2016 22:40:53 +0000 (00:40 +0200)]
Kill off xref--display-history

Now that the core workflow keeps the xref window visible, there's
less value in storing this history.  And it never was
comprehensive enough to undo scrolling changes.
* lisp/progmodes/xref.el (xref--display-history)
(xref--save-to-history, xref-quit): Remove.
(xref--show-pos-in-buf): Update accordingly.
(xref--xref-buffer-mode-map): Remove xref-quit binding.

8 years agoKeep the xref buffer visible until the user quits it explicitly
Dmitry Gutov [Sun, 21 Feb 2016 22:26:24 +0000 (00:26 +0200)]
Keep the xref buffer visible until the user quits it explicitly

* lisp/progmodes/xref.el (xref--pop-to-location):
Rename WINDOW argument to ACTION.
(xref--with-dedicated-window): New macro.
(xref--show-pos-in-buf): Rename from `xref--display-position'.
Add and handle new argument, SELECTED.  Use the above macro.
(xref--show-location): Add SELECTED argument.
(xref-show-location-at-point): Make an effort to avoid the
original window when showing the location.
(xref-goto-xref): Don't quit the xref window (bug#20487 and
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01133.html).
(xref--query-replace-1): Use xref--with-dedicated-window as well.
(xref--next-error-function): Call xref--show-location instead of
xref--pop-to-location.
(xref--show-xrefs): Rename WINDOW argument to DISPLAY-ACTION.
Only pass that value to xref--pop-to-location.  Pass the current
selected window to xref-show-xrefs-function as the `window'
property.
(xref--find-xrefs, xref--find-definitions): Rename WINDOW argument
to DISPLAY-ACTION as well.

8 years agoChange the default socket location for pinentry
Daiki Ueno [Sun, 21 Feb 2016 21:06:50 +0000 (06:06 +0900)]
Change the default socket location for pinentry

* lisp/net/pinentry.el: Require 'cl-lib for `cl-letf'.
(pinentry--socket-dir): Change the default from /tmp/emacsXXX to
~/.emacs.d/pinentry.
(pinentry-start): Change the file modes of the socket file to 0700.
This is just for extra safety since the parent directory is already
protected with `server-ensure-safe-dir'.

8 years agoMention how to enable pinentry feature
Daiki Ueno [Sun, 21 Feb 2016 21:05:14 +0000 (06:05 +0900)]
Mention how to enable pinentry feature

* etc/NEWS: Mention "gpgconf --reload gpg-agent".
* lisp/net/pinentry.el: Likewise.

8 years agoSync with gnulib
Paul Eggert [Sun, 21 Feb 2016 20:34:00 +0000 (12:34 -0800)]
Sync with gnulib

This incorporates:
2016-02-10 stdalign: port to older HP and IBM cc
* doc/misc/texinfo.tex, lib/stdalign.in.h: Copy from gnulib.

8 years agoRemove `semanticdb-save-all-db-idle' from `auto-save-hook'
David Engster [Sun, 21 Feb 2016 16:16:45 +0000 (17:16 +0100)]
Remove `semanticdb-save-all-db-idle' from `auto-save-hook'

* lisp/cedet/semantic/db-mode.el (semanticdb-hooks): Do not put
  `semanticdb-save-all-db-idle' into `auto-save-hook'. The latter is
  not an idle hook, so it's not appropriate to call it there. It will
  already be called in the `semantic-idle-work-core-handler', which
  runs when Emacs is actually idle.

8 years agoRestore point when writing semantic table to disk
David Engster [Sun, 21 Feb 2016 16:11:01 +0000 (17:11 +0100)]
Restore point when writing semantic table to disk

* lisp/cedet/semantic/db-file.el (object-write): Wrap call to
  `semantic-fetch-tags' in `save-excursion', since it might move point
  in current buffer. (Bug #22287)

8 years agoMention pinentry.el in epa manual
Daiki Ueno [Sun, 21 Feb 2016 09:20:40 +0000 (18:20 +0900)]
Mention pinentry.el in epa manual

* doc/misc/epa.texi (GnuPG version compatibility): New chapter,
describing the differences between three GnuPG branches, and how
to enable pinentry.el.
(Caching Passphrases): Add xref to the compatibility chapter.

8 years agoFix Bug#22736
Michael Albinus [Sun, 21 Feb 2016 08:58:55 +0000 (09:58 +0100)]
Fix Bug#22736

* lisp/filenotify.el (file-notify-callback): Use the proper
descriptor when calling the callback.  (Bug#22736)

* test/automated/file-notify-tests.el
(file-notify--test-event-handler): Deactivate trace.
(file-notify-test08-watched-file-in-watched-dir): Bind
`file-notify--test-tmpfile' temporarily in `dir-callback'.

8 years agoGrammar fix in doc string
Wieland Hoffmann [Sun, 21 Feb 2016 02:32:22 +0000 (13:32 +1100)]
Grammar fix in doc string

* lisp/custom.el (defgroup): Grammar fix in doc string.

Copyright-paperwork-exempt: yes

8 years agoNaming fix for consistency
Daiki Ueno [Sat, 20 Feb 2016 22:26:40 +0000 (07:26 +0900)]
Naming fix for consistency

* lisp/epg-config.el (epg-find-configuration): Rename from
`epg-configuration-find' to be consistent with other epg-* functions.
Change all callers.

8 years agoPrefer customized value for GnuPG executable
Daiki Ueno [Sat, 20 Feb 2016 22:11:04 +0000 (07:11 +0900)]
Prefer customized value for GnuPG executable

* lisp/epg-config.el (epg-configuration-find): Don't check GPG
configuration if it is already set with custom.  (Bug#22747)

8 years agoFix memory reservation on MS-Windows
Eli Zaretskii [Sat, 20 Feb 2016 16:59:14 +0000 (18:59 +0200)]
Fix memory reservation on MS-Windows

* src/w32heap.c (mmap_alloc): Reserve memory in 64KB granular
units.  This avoids leaving gaps in reserved memory regions that
no one can use, since memory reservation must produce 64KB-aligned
addresses.  (Bug#22526)

8 years agoUpdate NextStep readme and add wish list.
Anders Lindgren [Sat, 20 Feb 2016 15:24:40 +0000 (16:24 +0100)]
Update NextStep readme and add wish list.

* nextstep/README: Rewritten from scratch. New sections on
"History", "Overview of Cocoa and Objective-C", "Guidelines",
"Tracing Support", and "GNUStep". Expanded the "See Also" section.
* nextstep/WISHLIST: New file containing list of issues and ideas
associated with the NS port of Emacs.

8 years agoReport also result in `file-notify--test-event-handler'
Michael Albinus [Sat, 20 Feb 2016 13:20:54 +0000 (14:20 +0100)]
Report also result in `file-notify--test-event-handler'

8 years agoImprove file-notify-test08-watched-file-in-watched-dir
Michael Albinus [Sat, 20 Feb 2016 13:04:36 +0000 (14:04 +0100)]
Improve file-notify-test08-watched-file-in-watched-dir

* test/automated/file-notify-tests.el (file-notify--test-desc2):
New variable.
(file-notify--test-cleanup): Use it.
(file-notify--test-event-handler): Enable trace.
(file-notify-test08-watched-file-in-watched-dir): Tag it as
:expensive-test.  Rewrite callbacks to use
`file-notify--test-event-handler'.  Read events in loop.  Check
`file-notify--test-results'.
(file-notify-test08-watched-file-in-watched-dir): Fix docstring.

8 years agoFix todo-mode item date editing bugs
Stephen Berman [Sat, 20 Feb 2016 12:44:47 +0000 (13:44 +0100)]
Fix todo-mode item date editing bugs

* lisp/calendar/todo-mode.el (todo-edit-item--header): Prevent out of
range error by making sure the value of the numerical month date
component cannot be nil.  Prevent wrong type error on trying to edit
day number in February by making sure numerical instead of string
value of the year component is passed to todo-read-date.
(todo-read-date): When using the numerical month date component make
sure to use `*' for an arbitrary month instead of its numerical value.

8 years agoFix "[:upper:]" for non-ASCII characters
Eli Zaretskii [Sat, 20 Feb 2016 11:03:20 +0000 (13:03 +0200)]
Fix "[:upper:]" for non-ASCII characters

* src/regex.c (re_match_2_internal): Support [:upper:] and
[:lower:] for non-ASCII characters.  (Bug#18150)

8 years agoAllow customising the article mode cursor behavior
Lars Ingebrigtsen [Sat, 20 Feb 2016 08:05:45 +0000 (19:05 +1100)]
Allow customising the article mode cursor behavior

* doc/misc/gnus.texi (HTML): Mention gnus-article-show-cursor.

* lisp/gnus/gnus-art.el (gnus-article-show-cursor): New variable.
(gnus-article-mode): Use it.

8 years agoUse pop-to-buffer-same-window in woman.el
Ari Roponen [Sat, 20 Feb 2016 07:57:44 +0000 (18:57 +1100)]
Use pop-to-buffer-same-window in woman.el

* lisp/woman.el (woman-really-find-file): Work around going to
the wrong buffer by using `pop-to-buffer-same-window' (bug#22332).
(WoMan-find-buffer): Ditto.

8 years agoNew filenotify test for bug#22736
Tassilo Horn [Sat, 20 Feb 2016 07:33:11 +0000 (08:33 +0100)]
New filenotify test for bug#22736

* test/automated/file-notify-tests.el
(file-notify-test08-watched-file-in-watched-dir):
(file-notify--test-desc1): New filenotify test for bug#22736

8 years agoReport critical battery errors
Marcin Borkowski [Sat, 20 Feb 2016 07:33:48 +0000 (18:33 +1100)]
Report critical battery errors

* lisp/battery.el (battery-pmset): Report critical battery
errors (bug#18157).

8 years agoMake eww message toggling message clearer
Kaushal Modi [Fri, 19 Feb 2016 05:55:54 +0000 (16:55 +1100)]
Make eww message toggling message clearer

* lisp/net/eww.el (eww-toggle-fonts): Make the message
clearer.

Copyright-paperwork-exempt: Yes

8 years ago* lisp/calc/calc-units.el (math-standard-units): Update to 2014 CODATA adjustment.
Mark Oteiza [Fri, 19 Feb 2016 02:38:44 +0000 (21:38 -0500)]
* lisp/calc/calc-units.el (math-standard-units): Update to 2014 CODATA adjustment.

8 years ago; Improve character-folding entries in NEWS
Eli Zaretskii [Thu, 18 Feb 2016 17:42:17 +0000 (19:42 +0200)]
; Improve character-folding entries in NEWS

* etc/NEWS: Expand description of character-folding support.
Suggested by Mark Oteiza <mvoteiza@udel.edu>.

8 years agoFix bugs in window resizing code
Martin Rudalics [Thu, 18 Feb 2016 10:25:07 +0000 (11:25 +0100)]
Fix bugs in window resizing code

* lisp/window.el (adjust-window-trailing-edge): Fix mismatched
parenthesis.
(shrink-window, enlarge-window): Fix bug#22723 where windows
with preserved size would not get resized.  Also now signal an
error when the window cannot be shrunk or enlarged as requested.

8 years agoFix decoding DOS EOL in a unibyte buffer
Eli Zaretskii [Wed, 17 Feb 2016 15:48:30 +0000 (17:48 +0200)]
Fix decoding DOS EOL in a unibyte buffer

* src/coding.c (decode_eol): Loop over bytes, not characters.
(Bug#5251)

8 years agoCorrect c-parse-state cache manipulation error.
Alan Mackenzie [Wed, 17 Feb 2016 11:53:01 +0000 (11:53 +0000)]
Correct c-parse-state cache manipulation error.

* lisp/progmodes/cc-engine.el (c-invalidate-state-cache-1): Correct a
comparison bound.  Amend comments.

8 years agoTake advantage of new GnuPG version check function
Daiki Ueno [Wed, 17 Feb 2016 07:44:16 +0000 (16:44 +0900)]
Take advantage of new GnuPG version check function

* lisp/emacs-lisp/package.el (epg-configuration-find): Declare.
(package-refresh-contents): Use `epg-configuration-find' to check if EPG
is usable.

8 years agoMake GnuPG version check robuster
Daiki Ueno [Wed, 17 Feb 2016 07:32:25 +0000 (16:32 +0900)]
Make GnuPG version check robuster

We changed the default gpg program to "gpg2" from "gpg" in the commit
f93d669a16bd3cb3f43f0c8cfd22fe18b627a6a1.  However, there are two
maintained branches (2.0 and 2.1) and Emacs doesn't work well with 2.0
series.  Check the actual version of "gpg2" at run time, and properly
divert to "gpg" if necessary.
* lisp/epg-config.el: Require 'cl-lib for `cl-destructuring-bind'.
(epg-config--program-alist): New variable.
(epg--configurations): New variable.
(epg-configuration-find): New function.
(epg-config--make-gpg-configuration): New function.
(epg-config--make-gpgsm-configuration): New function.
(epg-configuration): Mark as obsolete.
* lisp/epg.el (epg-context): Use `epg-configuration-find'.

8 years agoFix x-load-color-file pointer signedness
Paul Eggert [Wed, 17 Feb 2016 07:25:21 +0000 (23:25 -0800)]
Fix x-load-color-file pointer signedness

* src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
For sscanf and int *, use %d, not %u.
Problem found on Ubuntu 15.10 x32, which lacks X support.

8 years ago* lisp/time-stamp.el (time-stamp-time-zone): Fix doc string punct.
Paul Eggert [Tue, 16 Feb 2016 23:01:50 +0000 (15:01 -0800)]
* lisp/time-stamp.el (time-stamp-time-zone): Fix doc string punct.

8 years agoFollow convention for greek letter constants.
Mark Oteiza [Tue, 16 Feb 2016 22:16:16 +0000 (17:16 -0500)]
Follow convention for greek letter constants.

* list/calc/calc-units.el (math-standard-units):
Add "sigma" and alias σ to it.

8 years agoAdd Stefan-Boltzmann constant to calc units table.
Mark Oteiza [Tue, 16 Feb 2016 17:04:39 +0000 (12:04 -0500)]
Add Stefan-Boltzmann constant to calc units table.

* lisp/calc/calc-units.el (math-standard-units):
Add Stefan-Boltzmann constant.

8 years ago* lisp/calc/calc-units.el (math-build-units-table-buffer): Use special-mode.
Mark Oteiza [Tue, 16 Feb 2016 16:48:46 +0000 (11:48 -0500)]
* lisp/calc/calc-units.el (math-build-units-table-buffer): Use special-mode.

8 years agoAvoid loading cl-lib for term/xterm.elc, eg in -Q -nw. (Bug#22669)
Glenn Morris [Tue, 16 Feb 2016 16:49:05 +0000 (11:49 -0500)]
Avoid loading cl-lib for term/xterm.elc, eg in -Q -nw.  (Bug#22669)

* lisp/emacs-lisp/cl-generic.el (cl--generic-dispatchers):
Prefill with relevant elements for term/xterm.

8 years agoFix soffice UserInstallation-URL for Windows
Tassilo Horn [Tue, 16 Feb 2016 16:38:44 +0000 (17:38 +0100)]
Fix soffice UserInstallation-URL for Windows

* lisp/doc-view.el (doc-view-odf->pdf-converter-soffice): Fix
UserInstallation-URL when calling soffice on Windows.

8 years agoFix display of <pre> elements
Lars Ingebrigtsen [Tue, 16 Feb 2016 06:38:58 +0000 (17:38 +1100)]
Fix display of <pre> elements

* lisp/net/eww.el (eww-display-html): Remove CRLF before
parsing so that <pre> elements don't render with ^M at the end
of the lines.

8 years ago; * lisp/help-fns.el: Remove outdated comment.
Glenn Morris [Tue, 16 Feb 2016 06:25:01 +0000 (22:25 -0800)]
; * lisp/help-fns.el: Remove outdated comment.

8 years ago; * admin/make-tarball.txt: Mention cleaning.
Glenn Morris [Tue, 16 Feb 2016 05:38:21 +0000 (21:38 -0800)]
; * admin/make-tarball.txt: Mention cleaning.

8 years agoMinor fixes in global-auto-composition-mode
Eli Zaretskii [Mon, 15 Feb 2016 19:46:17 +0000 (21:46 +0200)]
Minor fixes in global-auto-composition-mode

* lisp/emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name):
Produce prettier names of globalized minor modes.
* lisp/composite.el (global-auto-composition-mode): Make it a
globalized mode.  (Bug#22682)

8 years agoAllow arithmetic operators inside C++ template constructs.
Alan Mackenzie [Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)]
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.  This corrects the previous patch with this message
which was empty.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.

8 years agoAvoid crashes in semi-malformed 'condition-case'
Eli Zaretskii [Mon, 15 Feb 2016 14:03:54 +0000 (16:03 +0200)]
Avoid crashes in semi-malformed 'condition-case'

* src/eval.c (internal_lisp_condition_case): Treat a handler
'(nil)' as if it were '(nil nil)'.  (Bug#22675)

8 years agoAllow arithmetic operators inside C++ template constructs.
Alan Mackenzie [Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)]
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.

8 years agoFix regression with 'recent-keys' and keyboard macros
Eli Zaretskii [Mon, 15 Feb 2016 12:03:57 +0000 (14:03 +0200)]
Fix regression with 'recent-keys' and keyboard macros

* src/keyboard.c (record_char): Don't record in 'recent_keys'
events that come from executing keyboard macros.  (Bug#22674)

8 years agoFix wording in a doc-view.el comment
Eli Zaretskii [Mon, 15 Feb 2016 11:09:46 +0000 (13:09 +0200)]
Fix wording in a doc-view.el comment

* lisp/doc-view.el (doc-view--current-cache-dir): Don't use
"illegal" for something that is not against the law.

8 years ago; Spelling fixes
Paul Eggert [Mon, 15 Feb 2016 03:44:38 +0000 (19:44 -0800)]
; Spelling fixes

8 years agoCONTRIBUTE cleanups and updates
Paul Eggert [Mon, 15 Feb 2016 03:24:38 +0000 (19:24 -0800)]
CONTRIBUTE cleanups and updates

* CONTRIBUTE: Mention URLs and info nodes more consistently,
avoiding possibly-confusing punctuation adjacent to a URL, and
giving full shell commands for 'info'.  Start with a brief but
complete how-to, for people who want to get started right away.
Then briefly discuss how to join the development process in the
typical order.  Omit needless words.  Update some of the
now-obsolete file names, info node names, and quoting styles.
Better document emacs-NN branches and how they are merged.
* admin/notes/git-workflow: Change emacs-24 to emacs-25,
and trunk to master.  This file still needs work.

8 years agoPort USE_STACK_LISP_OBJECTS fix to Clang
Paul Eggert [Sun, 14 Feb 2016 19:42:36 +0000 (11:42 -0800)]
Port USE_STACK_LISP_OBJECTS fix to Clang

* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false for Clang.
Recent versions of Clang claim to be GCC 4.2.1 but do not have
the GCC bug.

8 years agoPort to x86 GCC 4.3.1 and earlier
Paul Eggert [Sun, 14 Feb 2016 19:19:39 +0000 (11:19 -0800)]
Port to x86 GCC 4.3.1 and earlier

This tries to port to x86 FreeBSD 9, where Emacs dumps core (Bug#22065).
* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false
for GCC 4.3.1 and earlier.

8 years agoFix point movement under 'scroll-conservatively'
Eli Zaretskii [Sun, 14 Feb 2016 19:20:48 +0000 (21:20 +0200)]
Fix point movement under 'scroll-conservatively'

* src/xdisp.c (redisplay_window): Correct a typo in computing the
effective number of text lines in a window.  (Bug#22637)

8 years agoReplace colon in file name (not legal on Windows)
Thomas Plass [Sun, 14 Feb 2016 18:56:46 +0000 (19:56 +0100)]
Replace colon in file name (not legal on Windows)

* lisp/doc-view.el (doc-view--current-cache-dir): Replace colon in file
name (not legal on Windows). [tiny change]

8 years agoFix a typo in edt.texi
Eli Zaretskii [Sun, 14 Feb 2016 18:14:32 +0000 (20:14 +0200)]
Fix a typo in edt.texi

* doc/misc/edt.texi: Fix a typo in an email address.  Reported by
"Herbert J. Skuhra" <herbert@mailbox.org>.

8 years agoMake 'mmap_realloc' on MS-Windows more reliable
Eli Zaretskii [Sun, 14 Feb 2016 17:46:29 +0000 (19:46 +0200)]
Make 'mmap_realloc' on MS-Windows more reliable

* src/w32heap.c (mmap_alloc): If reserving memory succeeds, but
committing fails, return NULL.  Don't call GetLastError twice for
the same API error.
(mmap_realloc): Zero out MEMORY_BASIC_INFORMATION structures
before calling VirtualQuery, to avoid using garbled values if the
call fails.  If committing more pages from the same block fails,
fall back on mmap_alloc + CopyMemory.  Enhance debugging printouts
if the call to VirtualAlloc to commit more pages fails.
(Bug#22526)

8 years agoGrep alias `all' shall not match parent directory
Oscar Fuentes [Sun, 14 Feb 2016 15:14:33 +0000 (16:14 +0100)]
Grep alias `all' shall not match parent directory

* lisp/progmodes/grep.el (grep-files-aliases): Don't match parent
  directory for `all'. Fixes bug#22577

8 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 14 Feb 2016 12:26:10 +0000 (07:26 -0500)]
; Auto-commit of ChangeLog files.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 14 Feb 2016 12:25:34 +0000 (07:25 -0500)]
; Auto-commit of loaddefs files.

8 years agoBump version to 25.0.91 emacs-25.0.91
Nicolas Petton [Sat, 13 Feb 2016 19:30:37 +0000 (20:30 +0100)]
Bump version to 25.0.91

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.91.

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Sat, 13 Feb 2016 19:30:18 +0000 (20:30 +0100)]
* etc/AUTHORS: Update the AUTHORS file

8 years ago; fix changelog entries
Nicolas Petton [Sat, 13 Feb 2016 19:28:54 +0000 (20:28 +0100)]
; fix changelog entries

8 years ago; make change-history-commit
Nicolas Petton [Sat, 13 Feb 2016 18:29:35 +0000 (19:29 +0100)]
; make change-history-commit

8 years ago* lisp/dired-aux.el: Require cl-lib. (Bug#22613)
Glenn Morris [Sat, 13 Feb 2016 18:18:17 +0000 (13:18 -0500)]
* lisp/dired-aux.el: Require cl-lib.  (Bug#22613)

8 years ago; Improve commentary in insdel.c
Eli Zaretskii [Sat, 13 Feb 2016 15:48:38 +0000 (17:48 +0200)]
; Improve commentary in insdel.c

* src/insdel.c (gap_left, gap_right, make_gap_larger)
(make_gap_smaller): Improve commentary.

8 years agoIndex tilde characters in names of backup files
Eli Zaretskii [Sat, 13 Feb 2016 13:36:38 +0000 (15:36 +0200)]
Index tilde characters in names of backup files

* doc/emacs/files.texi (Backup Names): Improve indexing.
(Bug#22625)

8 years agoDocument deprecation of hi-lock-mode's 'C-x w' bindings
Eli Zaretskii [Sat, 13 Feb 2016 09:02:28 +0000 (11:02 +0200)]
Document deprecation of hi-lock-mode's 'C-x w' bindings

* doc/emacs/display.texi (Highlight Interactively): Deprecate the
"C-x w" bindings of hi-lock-mode.

* etc/NEWS: Mark the deprecation entry as documented.

8 years ago; * etc/NEWS: Use double spaces to end a sentence.
Xue Fuqiao [Sat, 13 Feb 2016 05:51:09 +0000 (13:51 +0800)]
; * etc/NEWS: Use double spaces to end a sentence.

8 years agoAnnounce that the `C-x w' bindings are deprecated
Stefan Monnier [Sat, 13 Feb 2016 03:33:30 +0000 (22:33 -0500)]
Announce that the `C-x w' bindings are deprecated

8 years agoSuppress GNUstep hardening
Paul Eggert [Sat, 13 Feb 2016 00:23:25 +0000 (16:23 -0800)]
Suppress GNUstep hardening

Fedora 23 normally hardens GNUstep applications, which causes
‘./configure --with-ns’ to break Emacs’s funky way of undumping.
Fix this by eliding the hardening options (Bug#22518).
* src/Makefile.in (LIBS_GNUSTEP): Omit options like
‘-specs=/usr/lib/rpm/redhat/redhat-hardened-ld’.
(GNU_OBJC_CFLAGS): Omit options like
‘-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1’.

8 years agoFix redisplay after a large insertion
Eli Zaretskii [Fri, 12 Feb 2016 19:38:44 +0000 (21:38 +0200)]
Fix redisplay after a large insertion

* src/xdisp.c (redisplay_internal): Don't accept the results of
"optimization 3" if the cursor ends up in a partially visible
glyph row.  (Bug22637)

8 years agoRevert "Fix gnus-group-get-new-news-this-group on group with closed server"
Andreas Schwab [Fri, 12 Feb 2016 10:41:29 +0000 (11:41 +0100)]
Revert "Fix gnus-group-get-new-news-this-group on group with closed server"

This reverts commit 9dc77e37aa84c6df9b3ddb4609f3c09201b0580e.

* lisp/gnus/nnimap.el (nnimap-change-group): Revert last
change.  (Bug#22634)

8 years ago; Improve merge documentation in CONTRIBUTE
Eli Zaretskii [Fri, 12 Feb 2016 07:04:52 +0000 (09:04 +0200)]
; Improve merge documentation in CONTRIBUTE

* CONTRIBUTE (branches): Tell how to avoid merging of
non-backported changes.

8 years ago* lib-src/make-docfile.c: Include stdarg.h.
Paul Eggert [Thu, 11 Feb 2016 20:50:48 +0000 (12:50 -0800)]
* lib-src/make-docfile.c: Include stdarg.h.

8 years agoExtend gpm-mouse-mode's doc string and doc to point out limitations.
Alan Mackenzie [Thu, 11 Feb 2016 09:54:36 +0000 (09:54 +0000)]
Extend gpm-mouse-mode's doc string and doc to point out limitations.

* lisp/t-mouse.el (gpm-mouse-mode): Extend doc string to indicate the
inability to transfer text between Emacs and other programs which use GPM.

* doc/emacs/frames.texi (Text-Only Mouse): Note the inability to transfer text
between Emacs and other progrmas which use GPM.

8 years agoRevert "Backport: * lisp/isearch.el: Turn char-folding off by default"
Eli Zaretskii [Thu, 11 Feb 2016 03:37:20 +0000 (05:37 +0200)]
Revert "Backport: * lisp/isearch.el: Turn char-folding off by default"

* lisp/isearch.el: Turn char-folding back oon by default.

This reverts commit 12c50e82c9b432b2fc31f8fb2215f43ceea80822.

8 years agoRevert "Support integer image rotation and respect EXIF rotations"
Lars Ingebrigtsen [Thu, 11 Feb 2016 03:05:24 +0000 (14:05 +1100)]
Revert "Support integer image rotation and respect EXIF rotations"

This reverts commit 0f600496050bf435f55dc81056e06fcd45992dc8.

This change does not work on Fedora.

8 years agoRevert "Document EXIF image rotation"
Lars Ingebrigtsen [Thu, 11 Feb 2016 03:05:02 +0000 (14:05 +1100)]
Revert "Document EXIF image rotation"

This reverts commit 10b8ed27ec91ff52f93eb0297dcc3abb214931aa.

This change does not work on Fedora, for instance.

8 years agoDocument OS X LANG default
Paul Eggert [Thu, 11 Feb 2016 02:35:26 +0000 (18:35 -0800)]
Document OS X LANG default

* doc/emacs/cmdargs.texi (General Variables):
Document OS X Language and Region system preference.
Suggested by Alan Third.

8 years agoSet locale when run from OS X GUI
Alan Third [Thu, 11 Feb 2016 02:27:50 +0000 (18:27 -0800)]
Set locale when run from OS X GUI

* src/emacs.c (main): Call ns_init_locale.
* src/nsterm.m (ns_init_locale): Get locale from OS and set LANG.
* src/nsterm.h: Include ns_init_locale.

8 years agomake-docfile cleanup for I/O, etc.
Paul Eggert [Wed, 10 Feb 2016 19:40:09 +0000 (11:40 -0800)]
make-docfile cleanup for I/O, etc.

* lib-src/make-docfile.c (progname, generate_globals, num_globals)
(num_globals_allocated, globals): Now static.
(generate_globals, struct rcsoc_state, read_c_string_or_comment):
(write_c_args, scan_c_stream, search_lisp_doc_at_eol, scan_lisp_file):
Use bool for boolean.
(verror): New function.
(fatal, error): Use it.  API is now like printf.  All callers changed.
(main): Remove err_count local that was always 0.
(main, scan_c_stream, scan_lisp_file): Check for I/O error.
(scan_file, scan_c_file, scan_c_stream, scan_lisp_file):
Return void, not 0.
(put_char, scan_keyword_or_put_char, scan_c_file): Use char for byte.
(scan_keyword_or_put_char): Check for missing ( and unexpected EOF.
(close_emacs_globals): Use ptrdiff_t for index, not int.
(scan_c_file, scan_lisp_file): Exit with failure if file cannot be
opened, rather than diagnosing but exiting with status 0.
(search_lisp_doc_at_eol): Don't worry about ungetc of EOF; it's
portable now.