]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years ago; Merge from origin/emacs-25
John Wiegley [Thu, 4 Feb 2016 07:56:17 +0000 (23:56 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

bf64d65 Allow sending empty hidden values in eww

8 years agoMerge from origin/emacs-25
John Wiegley [Thu, 4 Feb 2016 07:56:08 +0000 (23:56 -0800)]
Merge from origin/emacs-25

ee73997 Make erc work better when encountering unknown prefix chars
b99141d Make erc completion case-insensitive again
66c4620 Make complection in erc use consistent casing
8c562b2 Make /QUIT in erc more robust
d93d2c5 Make tracking faces in Emacs work more reliably
af6ab7e Make shr not bug out on images on non-graphical displays
3311f40 Fix bookmark display widths
d90ab1e Fix typo in eww-make-unique-file-name
7f81825 Make it possible to TAB to input fields
a43a1dc Insert complete alt texts when images are disabled
56ed4e1 Allow eww text fields to grow
66b315c Make erc work when subword-mode is switched on
255b68f Fix IMAP doc example
91557f5 Quoting fixes in doc strings and diagnostics
2c0dc9f Fix warning message in hack-local-variables
504696d Etags: yet another improvement in Ruby tags
8784ebf Fix x-popup-menu on TTYs without a mouse
8b87ecb * lisp/emacs-lisp/map.el: Improvements to the docstring of the
        pcase macro
6191003 Use pop-to-buffer-same-window in eww
fe321fd * autogen.sh: Revert all recent changes.
74ebd4a * make-dist: Updates related to nt/.
737193a * make-dist: Add modules/.
3696bf2 * make-dist: Update for super-special file that can't live in etc/.
a4278e2 Fix failure to compile ns-win.el in parallel builds
860da4d Fix names of tags generated for Ruby accessors
f6213ce Fix file-name recognition in 'etags'
e42e662 Change Ruby file names and extensions recognized by 'etags'
58bfb6a More improvements for Ruby support in 'etags'
c04e911 Add --git-config option to autogen.sh
5713466 Fix editing undo changes in eww fields
51362d6 Allow the user more control of popping up the eww window
ee0fbd8 Make eww-browse-url with new-window parameter work again
9c3142d Clean up eww code slightly
cb035f3 Don't insert nil faces in shr
4c3fae3 ; * lisp/progmodes/prolog.el: Remove some obsolete commentary.
93f2153 Improve the custom type of some user options.
9f60d7e Mark some risky calendar variables.
1d07dcd Highlight two additional SCSS keywords
ee8b466 Recommend enabling integrity-checking in git
e639e10 Some corrections in Elisp manual
d766ca8 Chatter when autogen.sh changes Git configuration
3b734e1 * org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)
43cb9f8 Omit unnecessary history from Lisp intro
2fbd1da * etc/HISTORY: Add some more history, plus git tags.
c90e1b4 Improve elisp “Security Considerations” doc
cedd7ca autogen.sh now arranges for git to check hashes
86ce76b ; Fix ChangeLog.2 commit ID.
7b1d2b1 Fix (c & 040) typo in emergency escapes
a8273da Fix display of overlay strings with 'display' and 'box' property
fc48106 Fix imap-starttls-open
cdecbed Fix return value of imap-starttls-open
20c7e34 ; * etc/NEWS: Fix renamed command name
98bdbdb Correct reference to DARWIN_OS preprocessor symbol
b250d29 Spelling fix
b920a0e Spelling fixes
93b144b Pacify GCC on C library without glibc API

8 years ago; Merge from origin/emacs-25
John Wiegley [Thu, 4 Feb 2016 07:54:58 +0000 (23:54 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

71b20b3 Backport: * lisp/files.el: Remove support for extra .dir-locals file

8 years agoMerge from origin/emacs-25
John Wiegley [Thu, 4 Feb 2016 07:54:45 +0000 (23:54 -0800)]
Merge from origin/emacs-25

ea26c8a * lisp/net/browse-url.el (browse-url-default-browser): Lower
        priority of non-free Chrome.
0fac75f Improve the custom type of some user options.
2df0e04 Highlight CSS variables with variable name face
3cf5e81 * lisp/gnus/gnus-kill.el (gnus-winconf-kill-file): Not
        user-serviceable.
2a5233c Mark some user options that can get evalled as risky.
39b166f Disable DebPrint in sys_read on MS-Windows
9fd0189 ;Fix ChangeLog entry
4bb7233 Fix typos in Introduction to Emacs Lisp manual

8 years agoAllow sending empty hidden values in eww
Vasilij Schneidermann [Thu, 4 Feb 2016 04:52:59 +0000 (15:52 +1100)]
Allow sending empty hidden values in eww

* lisp/net/eww.el (eww-tag-input): Allow sending empty hidden
values (bug#22388).

Copyright-paperwork-exempt: Yes
(cherry picked from commit 5898da8210af7953e638ddf7821c05260979c3f0)

Backport:

8 years agoMake erc work better when encountering unknown prefix chars
David Edmondson [Thu, 4 Feb 2016 05:52:01 +0000 (16:52 +1100)]
Make erc work better when encountering unknown prefix chars

* lisp/erc/erc.el (erc-channel-receive-names): Output a warning
instead of erroring out on unknown prefix chars (bug#22380).

8 years agoAdd a new command to switch between erc buffers
Mark Oteiza [Thu, 4 Feb 2016 07:00:37 +0000 (18:00 +1100)]
Add a new command to switch between erc buffers

* doc/misc/eww.texi: Document eww-switch-to-buffer and its keybinding
* etc/NEWS: Mention new command
* lisp/net/eww.el (eww-mode-map): Bind eww-switch-to-buffer to "s"
(eww-mode-map): Add menu item
(eww-switch-to-buffer): New command

8 years agoMake erc work better when encountering unknown prefix chars
David Edmondson [Thu, 4 Feb 2016 05:52:01 +0000 (16:52 +1100)]
Make erc work better when encountering unknown prefix chars

* lisp/erc/erc.el (erc-channel-receive-names): Output a warning
instead of erroring out on unknown prefix chars (bug#22380).

8 years agoAllow sending empty hidden values in eww
Vasilij Schneidermann [Thu, 4 Feb 2016 04:52:59 +0000 (15:52 +1100)]
Allow sending empty hidden values in eww

* lisp/net/eww.el (eww-tag-input): Allow sending empty hidden
values (bug#22388).

Copyright-paperwork-exempt: Yes

8 years agoMake erc completion case-insensitive again
Lars Ingebrigtsen [Thu, 4 Feb 2016 06:51:53 +0000 (17:51 +1100)]
Make erc completion case-insensitive again

* lisp/erc/erc.el (erc-completion-at-point): Make erc completion
case-insensitive again (bug#11360).

8 years agoMake complection in erc use consistent casing
Carlos Pita [Thu, 4 Feb 2016 06:03:34 +0000 (17:03 +1100)]
Make complection in erc use consistent casing

* lisp/erc/erc-pcomplete.el (pcomplete-erc-all-nicks): Make
case in the complection consistent (bug#18509).

Copyright-paperwork-exempt: Yes

8 years agoMake /QUIT in erc more robust
Francis Litterio [Thu, 4 Feb 2016 05:55:01 +0000 (16:55 +1100)]
Make /QUIT in erc more robust

* lisp/erc/erc.el (erc-kill-query-buffers): Don't bug out if we're
issuing /QUIT to disconnected servers (bug#22099).

8 years agoMake tracking faces in Emacs work more reliably
Kevin Brubeck Unhammer [Thu, 4 Feb 2016 05:49:42 +0000 (16:49 +1100)]
Make tracking faces in Emacs work more reliably

* lisp/erc/erc-track.el (erc-faces-in): Always return lists of
faces to avoid later ambiguity (bug#22424).

Copyright-paperwork-exempt: Yes

8 years agoMake shr not bug out on images on non-graphical displays
Lars Ingebrigtsen [Thu, 4 Feb 2016 05:44:06 +0000 (16:44 +1100)]
Make shr not bug out on images on non-graphical displays

* lisp/net/shr.el (shr-put-image): Don't bug out on alt-less
images on non-graphical displays (bug#22327).

8 years agoRemove packages obsoleted before Emacs 24.
Andrew Hyatt [Thu, 4 Feb 2016 05:13:36 +0000 (00:13 -0500)]
Remove packages obsoleted before Emacs 24.

In accordance with the policy discussed in the emacs-devel list,
packages that have been obsoleted for a full major release cycle are up
for deletion.

This removes almost all packages that are now eligible for deletion,
with the exception of "cl-compat", which seems it is likely to still be
used, and "optional", which offers some functionality that doesn't have
a replacement yet.

8 years agoFix bookmark display widths
Lars Ingebrigtsen [Thu, 4 Feb 2016 05:10:49 +0000 (16:10 +1100)]
Fix bookmark display widths

* lisp/net/eww.el (eww-list-bookmarks): Pop to the buffer before
preparing it so that the widths are computed correctly (bug#22328).

8 years agoFix typo in eww-make-unique-file-name
Lars Ingebrigtsen [Thu, 4 Feb 2016 05:05:05 +0000 (16:05 +1100)]
Fix typo in eww-make-unique-file-name

* lisp/net/eww.el (eww-make-unique-file-name): Make this function
actually work.

8 years agoMake it possible to TAB to input fields
Lars Ingebrigtsen [Thu, 4 Feb 2016 04:42:08 +0000 (15:42 +1100)]
Make it possible to TAB to input fields

* lisp/net/eww.el (eww-tag-input): Make it possible to TAB to
input fields (bug#22540).

8 years agoInsert complete alt texts when images are disabled
Lars Ingebrigtsen [Thu, 4 Feb 2016 04:35:20 +0000 (15:35 +1100)]
Insert complete alt texts when images are disabled

* lisp/net/shr.el (shr-tag-img): When images are disabled, insert
the complete alt/title string (bug#22293).

8 years agoAllow eww text fields to grow
Lars Ingebrigtsen [Thu, 4 Feb 2016 04:28:57 +0000 (15:28 +1100)]
Allow eww text fields to grow

* lisp/net/eww.el (eww-process-text-input): Allow text fields to
grow when typing in stuff that's longer than the original width.

8 years agoMake erc work when subword-mode is switched on
Dima Kogan [Thu, 4 Feb 2016 03:24:18 +0000 (14:24 +1100)]
Make erc work when subword-mode is switched on

* lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p)
(erc-bounds-of-word-at-point): New functions to do word-based
things when subword-mode is switched on.

* lisp/erc/erc-button.el (erc-button-add-nickname-buttons): Use them
(bug#17558).

8 years agoFix IMAP doc example
Teemu Likonen [Thu, 4 Feb 2016 03:09:06 +0000 (14:09 +1100)]
Fix IMAP doc example

* doc/misc/gnus.texi (Client-Side IMAP Splitting): Fix example.

8 years agoQuoting fixes in doc strings and diagnostics
Paul Eggert [Thu, 4 Feb 2016 01:13:04 +0000 (17:13 -0800)]
Quoting fixes in doc strings and diagnostics

* lisp/emacs-lisp/bytecomp.el (byte-compile-setq, byte-compile-funcall):
* lisp/gnus/mml-smime.el (mml-smime-get-dns-cert)
(mml-smime-get-ldap-cert):
Follow user style preference when quoting diagnostics.

8 years agoMention context when resume from emergency escape
Paul Eggert [Wed, 3 Feb 2016 21:21:10 +0000 (13:21 -0800)]
Mention context when resume from emergency escape

That way, if the user has been doing something else for a while,
they are reminded of the situation when restarting Emacs,
and are more likely to understand the two questions.
* doc/emacs/trouble.texi (Emergency Escape): Document this.
* src/keyboard.c (handle_interrupt): Implement this.

8 years ago; Fix last aligned_alloc declaration change
Ken Brown [Wed, 3 Feb 2016 18:27:08 +0000 (13:27 -0500)]
; Fix last aligned_alloc declaration change

8 years agoFix warning message in hack-local-variables
Noam Postavsky [Wed, 3 Feb 2016 17:48:45 +0000 (19:48 +0200)]
Fix warning message in hack-local-variables

* lisp/files.el (hack-local-variables): use 'thisbuf' to reference
the original buffer name in the warning message.  (Bug#21681)

8 years agoEtags: yet another improvement in Ruby tags
Eli Zaretskii [Wed, 3 Feb 2016 16:24:20 +0000 (18:24 +0200)]
Etags: yet another improvement in Ruby tags

* lib-src/etags.c (Ruby_functions): Handle continuation lines in
Ruby accessor definitions.  (Bug#22241)

* test/etags/ruby-src/test1.ru (A::B#X): Add some more tests for
accessors and multiline definitions.
* 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/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to changes in Ruby tags.

8 years agoFix x-popup-menu on TTYs without a mouse
Eli Zaretskii [Wed, 3 Feb 2016 16:11:10 +0000 (18:11 +0200)]
Fix x-popup-menu on TTYs without a mouse

* src/menu.c (Fx_popup_menu): Be sure to initialize 'x' and 'y'
for the TTY case without a mouse.  (Bug#22538)

8 years ago* lisp/emacs-lisp/map.el: Improvements to the docstring of the pcase macro
Nicolas Petton [Wed, 3 Feb 2016 14:18:36 +0000 (15:18 +0100)]
* lisp/emacs-lisp/map.el: Improvements to the docstring of the pcase macro

8 years agoPort aligned_alloc decl to Cygwin.
Paul Eggert [Wed, 3 Feb 2016 08:37:44 +0000 (00:37 -0800)]
Port aligned_alloc decl to Cygwin.

Problem reported by Ken Brown (Bug#22522#38).
* configure.ac (aligned_alloc): Check for decl too.
* src/lisp.h (aligned_alloc): Declare if not already declared.

8 years agoautogen.sh now configures git only on request
Paul Eggert [Wed, 3 Feb 2016 07:11:36 +0000 (23:11 -0800)]
autogen.sh now configures git only on request

* autogen.sh (do_autoconf, do_git): New vars.
Support new arguments --help, all, autoconf, git.
By default, just do autoconf-related configuration, not git.
Prefer 'echo' to 'cat <<EOF ...', as this tends to avoid temp files.
If GNU cp is available, use it to backup .git/config before
changing it.  When configuring git, chatter about what is being
done, and configure git to check hashes.  Avoid some duplicate
file name specification when creating git hooks.

* GNUmakefile (ALL_IF_GIT): New macro.
(configure): Use it.
* INSTALL.REPO: Suggest './autogen.sh all'.

8 years agoUse pop-to-buffer-same-window in eww
Lars Ingebrigtsen [Wed, 3 Feb 2016 02:35:10 +0000 (13:35 +1100)]
Use pop-to-buffer-same-window in eww

* lisp/net/eww.el: pop-to-buffer-same-window throughout instead of
switch-to-buffer (bug#22244).

8 years ago* autogen.sh: Revert all recent changes.
Paul Eggert [Wed, 3 Feb 2016 02:03:59 +0000 (18:03 -0800)]
* autogen.sh: Revert all recent changes.

8 years agoBuild with C11 if available
Paul Eggert [Tue, 2 Feb 2016 22:43:59 +0000 (14:43 -0800)]
Build with C11 if available

* admin/merge-gnulib (GNULIB_MODULES): Add std-gnu11.
* m4/std-gnu11.m4: New file, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.

8 years agoUpdate gnulib copy
Paul Eggert [Tue, 2 Feb 2016 22:35:05 +0000 (14:35 -0800)]
Update gnulib copy

* doc/misc/texinfo.tex: Copy from gnulib.

8 years ago* make-dist: Updates related to nt/.
Glenn Morris [Tue, 2 Feb 2016 21:19:15 +0000 (16:19 -0500)]
* make-dist: Updates related to nt/.

8 years ago* make-dist: Add modules/.
Glenn Morris [Tue, 2 Feb 2016 21:08:03 +0000 (16:08 -0500)]
* make-dist: Add modules/.

8 years ago* make-dist: Update for super-special file that can't live in etc/.
Glenn Morris [Tue, 2 Feb 2016 20:53:01 +0000 (15:53 -0500)]
* make-dist: Update for super-special file that can't live in etc/.

8 years agoFix failure to compile ns-win.el in parallel builds
Eli Zaretskii [Tue, 2 Feb 2016 20:09:32 +0000 (22:09 +0200)]
Fix failure to compile ns-win.el in parallel builds

* src/Makefile.in ($(lispsource)/term/ns-win.elc): Add order-only
dependency on $(lispsource)/international/charprop.el.
(Bug#22501)

8 years agoFix names of tags generated for Ruby accessors
Eli Zaretskii [Tue, 2 Feb 2016 18:31:43 +0000 (20:31 +0200)]
Fix names of tags generated for Ruby accessors

* lib-src/etags.c (Ruby_functions): Don't include the leading
colon ':' in tags for Ruby accessors and aliases.  (Bug#22241)

* 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/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to changes in Ruby tags.

8 years ago* lisp/vc/add-log.el (change-log-directory-files, find-change-log):
Glenn Morris [Tue, 2 Feb 2016 18:14:45 +0000 (13:14 -0500)]
* lisp/vc/add-log.el (change-log-directory-files, find-change-log):
Doc tweaks.

8 years agoFix file-name recognition in 'etags'
Eli Zaretskii [Tue, 2 Feb 2016 18:01:33 +0000 (20:01 +0200)]
Fix file-name recognition in 'etags'

* lib-src/etags.c (get_language_from_filename): If FILE includes a
leading directory, compare only its basename to the known file
names in lang_names[].

* test/etags/Makefile (RBSRC): Adapt to recent test1.ruby
renaming.
* 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/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to changes in Ruby file names and
to the results in Makefile due to the above etags.c fix.

8 years agoChange Ruby file names and extensions recognized by 'etags'
Eli Zaretskii [Tue, 2 Feb 2016 17:50:08 +0000 (19:50 +0200)]
Change Ruby file names and extensions recognized by 'etags'

* lib-src/etags.c <Ruby_filenames>: New variable, holds names
of Ruby files.
<Ruby_suffixes>: Treat .rb, .ru, and .rbw as Ruby extensions.
<lang_names>: Add Ruby_filenames to the Ruby entry.
* test/etags/ruby-src/test1.ru: Renamed from test1.ruby.
(Bug#22241)

8 years agoPort better to platforms lacking aligned_alloc
Paul Eggert [Tue, 2 Feb 2016 17:28:52 +0000 (09:28 -0800)]
Port better to platforms lacking aligned_alloc

Problem reported by Ken Brown (Bug#22522).
* src/lisp.h (hybrid_aligned_alloc)
[HYBRID_MALLOC && !HAVE_ALIGNED_ALLOC]: New decl.

8 years agoPort malloc.h hygiene fix to LTO
Paul Eggert [Tue, 2 Feb 2016 17:16:24 +0000 (09:16 -0800)]
Port malloc.h hygiene fix to LTO

* src/alloc.c (__malloc_initialize_hook):
Make it externally visible (Bug#22522).

8 years agoMore improvements for Ruby support in 'etags'
Eli Zaretskii [Tue, 2 Feb 2016 17:16:22 +0000 (19:16 +0200)]
More improvements for Ruby support in 'etags'

* lib-src/etags.c (Ruby_functions): Tag Ruby accessors and
alias_method.  Identify constants even if the assignment is not
followed by whitespace.  (Bug#22241)

* test/etags/ruby-src/test1.ruby: Add tests for constants,
accessors, and alias_method.
* 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/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to changes in Ruby tests.

8 years agoAdd --git-config option to autogen.sh
Paul Eggert [Tue, 2 Feb 2016 07:45:10 +0000 (23:45 -0800)]
Add --git-config option to autogen.sh

* autogen.sh: New options --git-config, --help.
(git_config): New shell var.  Alter function to respect this var.

8 years agoFix editing undo changes in eww fields
Lars Ingebrigtsen [Tue, 2 Feb 2016 07:00:02 +0000 (18:00 +1100)]
Fix editing undo changes in eww fields

* eww.el (eww-tag-form): Don't overwrite initial form data in text
fields.
(eww-process-text-input): Make `M-t' at the end of text fields work
better (bug#19085).

8 years agoAllow the user more control of popping up the eww window
Lars Ingebrigtsen [Tue, 2 Feb 2016 04:57:07 +0000 (15:57 +1100)]
Allow the user more control of popping up the eww window

* eww.el (eww): Use pop-to-buffer-same-window (suggested by
Michael Heerdegen) (bug#22244).

8 years agoMake eww-browse-url with new-window parameter work again
Lars Ingebrigtsen [Tue, 2 Feb 2016 04:53:39 +0000 (15:53 +1100)]
Make eww-browse-url with new-window parameter work again

* eww.el (eww-browse-url): Stay in the same buffer if we're
already in a eww mode buffer so that eww-browse-url with a
new-window parameter works (bug#22244).

8 years agoClean up eww code slightly
Lars Ingebrigtsen [Tue, 2 Feb 2016 04:43:35 +0000 (15:43 +1100)]
Clean up eww code slightly

* eww.el (eww-browse-url): Clean up code slightly.

8 years agoDon't insert nil faces in shr
Lars Ingebrigtsen [Tue, 2 Feb 2016 04:16:34 +0000 (05:16 +0100)]
Don't insert nil faces in shr

* shr.el (shr-insert-table): Don't add nil faces, because that
will show up in *Messages* as "Invalid face reference: nil [32
times]".

8 years agoMake find-change-log prefer a VCS root, if no ChangeLog exists.
Glenn Morris [Tue, 2 Feb 2016 02:08:21 +0000 (21:08 -0500)]
Make find-change-log prefer a VCS root, if no ChangeLog exists.

* lisp/vc/add-log.el (change-log-directory-files): New option.
(find-change-log): Respect change-log-directory-files.
* doc/emacs/maintaining.texi (Change Log Commands):
Mention change-log-directory-files.
; * etc/NEWS: Mention this.

8 years ago; * lisp/progmodes/prolog.el: Remove some obsolete commentary.
Glenn Morris [Tue, 2 Feb 2016 02:00:58 +0000 (21:00 -0500)]
; * lisp/progmodes/prolog.el: Remove some obsolete commentary.

8 years agoImprove the custom type of some user options.
Glenn Morris [Tue, 2 Feb 2016 01:59:32 +0000 (20:59 -0500)]
Improve the custom type of some user options.

* lisp/autoinsert.el (auto-insert-alist):
* lisp/replace.el (query-replace-from-to-separator):
* lisp/gnus/gnus-art.el (gnus-hidden-properties):
* lisp/gnus/gnus-gravatar.el (gnus-gravatar-properties):
* lisp/gnus/gnus-picon.el (gnus-picon-properties):
* lisp/progmodes/prolog.el (prolog-keywords, prolog-types)
(prolog-mode-specificators, prolog-determinism-specificators)
(prolog-directives, prolog-program-name, prolog-program-switches)
(prolog-consult-string, prolog-compile-string, prolog-eof-string)
(prolog-prompt-regexp): Improve custom type.

8 years agoMark some risky calendar variables.
Glenn Morris [Tue, 2 Feb 2016 01:53:44 +0000 (20:53 -0500)]
Mark some risky calendar variables.

* lisp/calendar/cal-china.el (chinese-calendar-time-zone):
Remove risky setting for deleted obsolete alias.
(calendar-chinese-standard-time-zone-name)
(calendar-chinese-daylight-saving-start)
(calendar-chinese-daylight-saving-end):
* lisp/calendar/calendar.el (calendar-iso-date-display-form)
(calendar-european-date-display-form)
(calendar-american-date-display-form, calendar-date-display-form):
* lisp/calendar/diary-lib.el (diary-remind-message)
(diary-header-line-format):
* lisp/calendar/solar.el (calendar-time-display-form)
(calendar-location-name): Mark as risky.

8 years agoHighlight two additional SCSS keywords
Simen Heggestøyl [Mon, 1 Feb 2016 20:38:25 +0000 (21:38 +0100)]
Highlight two additional SCSS keywords

* lisp/textmodes/css-mode.el (css-bang-ids): New defconst holding CSS
identifiers on the form !foo.
(scss-bang-ids): New defconst holding SCSS identifiers on the form
!foo.
(css--font-lock-keywords): Highlight the new SCSS bang identifiers in
`font-lock-builtin-face'.

* test/indent/css-mode.css: Add bang rule test case.

* test/indent/scss-mode.css: Add test cases for the introduced bang
rules.

8 years agoRecommend enabling integrity-checking in git
Karl Fogel [Mon, 1 Feb 2016 18:46:45 +0000 (12:46 -0600)]
Recommend enabling integrity-checking in git

* admin/notes/git-workflow:  Recommend setting transfer.fsckObjects.

This is related to the autogen.sh changes made by Paul Eggert in
commit d766ca8f (2016-02-01) and commit cedd7cad (2016-02-01), and to
my edits today to http://www.emacswiki.org/emacs/GitForEmacsDevs and
to emacswiki.org/emacs/GitQuickStartForEmacsDevs.  See also the thread
"Recommend these .gitconfig settings for git integrity." at
https://lists.gnu.org/archive/html/emacs-devel/2016-01/threads.html#01802.

8 years agoSome corrections in Elisp manual
Martin Rudalics [Mon, 1 Feb 2016 18:01:34 +0000 (19:01 +0100)]
Some corrections in Elisp manual

* doc/lispref/buffers.texi (Read Only Buffers): Describe optional
argument POSITION.
* doc/lispref/debugging.texi (Error Debugging): `debug-on-signal'
is an option.
* doc/lispref/display.texi (Refresh Screen): Describe optional
argument FRAME of `redraw-frame'.
(Attribute Functions): Describe optional argument CHARACTER of
`face-font'.
(Defining Images): `image-load-path' is an option.
(Beeping): `ring-bell-function' is an option.
* doc/lispref/frames.texi (Size and Position): The PIXELWISE
argument of `set-frame-size' is optional.
(Raising and Lowering): The TERMINAL argument of `tty-top-frame'
is optional.
* doc/lispref/keymaps.texi (Controlling Active Maps): Fix doc of
`set-transient-map'.
* doc/lispref/minibuf.texi (Text from Minibuffer):
`read-regexp-defaults-function' is an option.
(Minibuffer Contents): `delete-minibuffer-contents' is a command.
* doc/lispref/modes.texi (Mode Line Variables):
`mode-line-position' and `mode-line-modes' are variables, not
options.
* doc/lispref/strings.texi (Creating Strings): The START argument
of `substring' is optional.
* doc/lispref/text.texi (Buffer Contents): Describe optional
argument NO-PROPERTIES of `thing-at-point'.
(User-Level Deletion): Both arguments of
`delete-trailing-whitespace' are optional.
(Margins): Use @key{RET} instead of @kbd{RET}.
* doc/lispref/windows.texi (Display Action Functions): Write
non-@code{nil} instead of non-nil.
(Choosing Window Options): The WINDOW arg of
`split-window-sensibly' is optional.
(Choosing Window Options): Write non-@code{nil} instead of
non-nil.
(Window Start and End): Both args of `window-group-end' are
optional.

* src/buffer.c (Fbarf_if_buffer_read_only): Rename argument POS
to POSITION to keep consisteny with doc-string.

8 years agoDouble static heap size.
Paul Eggert [Mon, 1 Feb 2016 16:49:46 +0000 (08:49 -0800)]
Double static heap size.

* src/sheap.h (STATIC_HEAP_SIZE): Double it, since it was too
small on FreeBSD (Bug#22086).

8 years agoChatter when autogen.sh changes Git configuration
Paul Eggert [Mon, 1 Feb 2016 16:29:28 +0000 (08:29 -0800)]
Chatter when autogen.sh changes Git configuration

* autogen.sh (git_config): New function.  Use it instead of ‘git config’.

8 years ago* org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)
Kyle Meyer [Mon, 1 Feb 2016 13:48:35 +0000 (08:48 -0500)]
* org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Feb 2016 11:22:18 +0000 (06:22 -0500)]
; Auto-commit of loaddefs files.

8 years agoFix Bug#20821
Michael Albinus [Mon, 1 Feb 2016 10:48:43 +0000 (11:48 +0100)]
Fix Bug#20821

* lisp/net/tramp.el (tramp-file-name-handler):
* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
Use `tramp-drop-volume-letter'.  (Bug#20821)

8 years agoOmit unnecessary history from Lisp intro
Paul Eggert [Mon, 1 Feb 2016 01:31:23 +0000 (17:31 -0800)]
Omit unnecessary history from Lisp intro

* doc/lispintro/emacs-lisp-intro.texi (Review, Digression into C)
(Conclusion): Reword so as not to talk about earlier versions
of Emacs in what should be an intro.

8 years ago* etc/HISTORY: Add some more history, plus git tags.
Paul Eggert [Mon, 1 Feb 2016 00:53:24 +0000 (16:53 -0800)]
* etc/HISTORY: Add some more history, plus git tags.

8 years agoImprove elisp “Security Considerations” doc
Paul Eggert [Sun, 31 Jan 2016 23:50:51 +0000 (15:50 -0800)]
Improve elisp “Security Considerations” doc

* doc/lispref/os.texi (Security Considerations):
Mention call-process and rename-file as opposed to shell commands.
Add some more cross-references.

8 years agoautogen.sh now arranges for git to check hashes
Paul Eggert [Sun, 31 Jan 2016 21:43:13 +0000 (13:43 -0800)]
autogen.sh now arranges for git to check hashes

Suggested by Karl Fogel in:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01802.html
* autogen.sh: Do "git config transfer.fsckObjects true".

8 years agoAdd ability to give rcirc servers an alias name
Dave Barker [Sat, 7 Nov 2015 22:32:51 +0000 (22:32 +0000)]
Add ability to give rcirc servers an alias name

* lisp/net/rcirc.el (rcirc-server-alist): Add :server-alias
customization option.
(rcirc, rcirc-connect): Take server alias into account.

8 years ago; Fix ChangeLog.2 commit ID.
Paul Eggert [Sun, 31 Jan 2016 20:37:11 +0000 (12:37 -0800)]
; Fix ChangeLog.2 commit ID.

8 years ago; Fix ChangeLog.2 commit ID.
Paul Eggert [Sun, 31 Jan 2016 20:18:03 +0000 (12:18 -0800)]
; Fix ChangeLog.2 commit ID.

8 years agoFix (c & 040) typo in emergency escapes
Paul Eggert [Sun, 31 Jan 2016 18:38:41 +0000 (10:38 -0800)]
Fix (c & 040) typo in emergency escapes

* src/keyboard.c (handle_interrupt): Fix recently-introduced
typo (040 should have been ~040) that silently suppressed
auto-saves after emergency escapes.  Redo comparison to avoid
similar problems.

8 years agoPort new hybrid malloc to FreeBSD
Paul Eggert [Sun, 31 Jan 2016 17:50:07 +0000 (09:50 -0800)]
Port new hybrid malloc to FreeBSD

Problem reported by Wolfgang Jenkner in: http://bugs.gnu.org/22086#118
* src/gmalloc.c (__malloc_initialize_hook, __after_morecore_hook)
(__morecore) [HYBRID_MALLOC]: Define in this case too.

8 years ago* configure.ac: Stop using mmap for buffers for FreeBSD.
Wolfgang Jenkner [Sun, 31 Jan 2016 17:23:06 +0000 (09:23 -0800)]
* configure.ac: Stop using mmap for buffers for FreeBSD.

8 years agoFix display of overlay strings with 'display' and 'box' property
Eli Zaretskii [Sun, 31 Jan 2016 16:10:12 +0000 (18:10 +0200)]
Fix display of overlay strings with 'display' and 'box' property

* src/xdisp.c (get_next_display_element): Take the box face from
display stack level that comes from a buffer, not an overlay
string.  (Bug#22499)

8 years agoFix imap-starttls-open
Andreas Schwab [Sun, 31 Jan 2016 13:29:14 +0000 (14:29 +0100)]
Fix imap-starttls-open

* lisp/net/imap.el (imap-starttls-open): Log imap process
output.  Call imap-parse-greeting.  (Bug#22500)

8 years agoMerge changes from Tramp repository
Michael Albinus [Sun, 31 Jan 2016 12:50:23 +0000 (13:50 +0100)]
Merge changes from Tramp repository

* doc/misc/Makefile.in (${buildinfodir}/tramp.info tramp.html):
No EXTRA_OPTS needed.

* doc/misc/tramp.texi: Merge changes from Emacsemacs-25
branch, especially for @trampfn{}.
(Top): Move @ifnottex down.
(History): XEmacs support has been removed.
(GVFS based methods, Remote processes): Do not use emacsgvfs flag.
(Auto-save and Backup): Use both syntax versions.
(File name Syntax): Remark on IPv6 adresses is valid for
unified syntax only.

* doc/misc/trampver.texi: Do not set emacsgvfs flag.

8 years agoFix return value of imap-starttls-open
Andreas Schwab [Sun, 31 Jan 2016 12:34:03 +0000 (13:34 +0100)]
Fix return value of imap-starttls-open

* lisp/net/imap.el (imap-starttls-open): Fix return value.

8 years ago; * etc/NEWS: Fix renamed command name
Simen Heggestøyl [Sun, 31 Jan 2016 09:14:10 +0000 (10:14 +0100)]
; * etc/NEWS: Fix renamed command name

Command `package-install-user-selected-packages' was renamed to
`package-install-selected-packages' in f3b43fca.

8 years agoCorrect reference to DARWIN_OS preprocessor symbol
John Wiegley [Sun, 31 Jan 2016 05:34:32 +0000 (21:34 -0800)]
Correct reference to DARWIN_OS preprocessor symbol

* src/alloc.c: Correct a preprocessor reference to DARWIN_OS, which may
  not be defined.

8 years agoSpelling fixes
Paul Eggert [Sun, 31 Jan 2016 04:17:56 +0000 (20:17 -0800)]
Spelling fixes

8 years agoSpelling fix
Paul Eggert [Sun, 31 Jan 2016 04:16:20 +0000 (20:16 -0800)]
Spelling fix

8 years agoSpelling fixes
Paul Eggert [Sun, 31 Jan 2016 04:05:26 +0000 (20:05 -0800)]
Spelling fixes

8 years ago* lisp/vc/add-log.el (find-change-log): Use locate-dominating-file.
Glenn Morris [Sun, 31 Jan 2016 03:37:12 +0000 (19:37 -0800)]
* lisp/vc/add-log.el (find-change-log): Use locate-dominating-file.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Matthew Carter [Sun, 31 Jan 2016 03:09:28 +0000 (22:09 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoQuote table names for postgres listings (sql-mode)
Matthew Carter [Sun, 31 Jan 2016 03:03:57 +0000 (22:03 -0500)]
Quote table names for postgres listings (sql-mode)

* lisp/progmodes/sql.el (sql-postgres-completion-object): Avoid passing
  unquoted table names to the completion list.

8 years agoChange Smerge "Mine" and "Other" for "Upper" and "Lower. (Bug#20878)
Glenn Morris [Sun, 31 Jan 2016 03:01:57 +0000 (19:01 -0800)]
Change Smerge "Mine" and "Other" for "Upper" and "Lower.  (Bug#20878)

* lisp/vc/smerge-mode.el (smerge-diff-switches)
(smerge-context-menu, smerge-match-conflict, smerge-swap): Doc fixes.
(smerge-upper, smerge-upper-face, smerge-keep-upper)
(smerge-diff-base-upper): Rename from smerge-mine, smerge-mine-face,
smerge-keep-mine, smerge-diff-base-mine.  Update all uses.
(smerge-mine-face, smerge-other-face): Remove obsolete face aliases.
(smerge-lower, smerge-lower-face, smerge-lower-re, smerge-keep-lower)
(smerge-diff-base-lower): Rename from smerge-other, smerge-other-face,
smerge-other-re, smerge-keep-other, smerge-diff-base-lower.
Update all uses.
(smerge-basic-map): Add "l" and "u" bindings.
(smerge-mode-menu): Update menu bindings for renaming.
(smerge-font-lock-keywords): Update face names.
(smerge-match-names): Update names.
(smerge-diff-upper-lower): Rename from smerge-diff-mine-other.
(smerge-match-conflict, smerge-ediff): Rename local variables.
(smerge-makeup-conflict): Relabel markers.
(smerge-parsep-re): Use renamed variables.

8 years agoPort recent my_edata change to MS-Windows
Paul Eggert [Sun, 31 Jan 2016 02:59:49 +0000 (18:59 -0800)]
Port recent my_edata change to MS-Windows

* src/lastfile.c (my_edata): Also define if WINDOWSNT.

8 years agoPacify GCC on C library without glibc API
Paul Eggert [Sun, 31 Jan 2016 02:38:51 +0000 (18:38 -0800)]
Pacify GCC on C library without glibc API

Without this change, with --enable-gcc-warnings GCC would complain
“error: redundant redeclaration of ‘aligned_alloc’”.
* configure.ac: Simplify aligned_alloc testing.
* src/alloc.c (aligned_alloc): Don’t use if DARWIN_OS,
since the simplified configure.ac no longer checks for that.
Don’t declare if HAVE_ALIGNED_ALLOC.
Correct misspelling of HAVE_ALIGNED_ALLOC in ifdef.

8 years agoTell Automake the new lib/Makefile.am is OK
Paul Eggert [Sat, 30 Jan 2016 23:19:16 +0000 (15:19 -0800)]
Tell Automake the new lib/Makefile.am is OK

* lib/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.

8 years agoMake it easy to override preferred-branch test
Paul Eggert [Sat, 30 Jan 2016 23:18:00 +0000 (15:18 -0800)]
Make it easy to override preferred-branch test

* Makefile.in (preferred-branch-is-current):
Rename from emacs-25-branch-is-current.  All uses changed.
(PREFERRED_BRANCH): New macro.

8 years ago; Try to clean up ChangeLog.2 mess created by merge.
Paul Eggert [Sat, 30 Jan 2016 22:45:53 +0000 (14:45 -0800)]
; Try to clean up ChangeLog.2 mess created by merge.

8 years agoShrink static heap a bit
Paul Eggert [Sat, 30 Jan 2016 22:20:57 +0000 (14:20 -0800)]
Shrink static heap a bit

* src/sheap.h: Include lisp.h, for Lisp_Object.
(STATIC_HEAP_SIZE): Now an enum constant, not a macro.
Make it 2 MiB * sizeof (Lisp_Object), which is a bit more
conservative than the old value.
(Bug#22086)

8 years agoFix extern symbols defined and not used
Paul Eggert [Sat, 30 Jan 2016 22:20:57 +0000 (14:20 -0800)]
Fix extern symbols defined and not used

* src/alloc.c: Always include <signal.h>.
(malloc_warning) [!SIGDANGER && (SYSTEM_MALLOC || HYBRID_MALLOC)]:
Do not define; unused.
* src/emacs.c, src/lisp.h (might_dump) [!DOUG_LEA_MALLOC]: Now static.
* src/gmalloc.c (gdefault_morecore): Rename from __default_morecore,
to avoid collision with glibc.  Now static.  All uses changed.
* src/lastfile.c (my_edata): Define only if
((!defined SYSTEM_MALLOC && !defined HYBRID_MALLOC && !defined
WINDOWSNT) \ || defined CYGWIN || defined DARWIN_OS).
(Bug#22086)

8 years agoBuild lib/e-*.o only on platforms that need it
Paul Eggert [Sat, 30 Jan 2016 22:20:57 +0000 (14:20 -0800)]
Build lib/e-*.o only on platforms that need it

* configure.ac (hybrid malloc): Simplify configuration.
(SHEAP_OBJ): Remove; no longer needed.
(HYBRID_MALLOC): New var. Subst it.
(HYBRID_MALLOC_LIB): New Automake conditional.
* lib/Makefile.am (noinst_LIBRARIES): Add libegnu.a only if
HYBRID_MALLOC_LIB.
(libegnu_a_CPPFLAGS): Omit AM_CPPFLAGS; not needed.
(MOSTLYCLEANFILES): Add libegnu.a.
* src/Makefile.in (SHEAP_OBJ): Remove.
(HYBRID_MALLOC): New macro.
(base_obj): Use it to conditionally add sheap.o.
(LIBEGNU_ARCHIVE): New macro.
($(LIBEGNU_ARCHIVE)): New rule, replacing $(lib)/libegnu.a.
All uses of the latter replaced by the former.
* src/alloc.c (USE_ALIGNED_ALLOC): Simplify configuration.
Correct misspelling ALIGNED_ALLOC to HAVE_ALIGNED_ALLOC.
* src/gmalloc.c: Update comment.
* src/lisp.h (aligned_alloc)
[!DOUG_LEA_MALLOC && !HYBRID_MALLOC && !SYSTEM_MALLOC]:
New decl.
(Bug#22086)

8 years agoInclude <malloc.h> when advisable
Paul Eggert [Sat, 30 Jan 2016 22:20:57 +0000 (14:20 -0800)]
Include <malloc.h> when advisable

This should help insulate us better from future glibc changes.
It is good hygiene to include .h files for APIs that Emacs uses.
Fix type clashes between Emacs and GNU <malloc.h> (Bug#22086).
* configure.ac: Check for malloc.h.
* src/alloc.c: Include <malloc.h> depending on HAVE_MALLOC_H,
not on DOUG_LEA_MALLOC.
* src/emacs.c, src/gmalloc.c (malloc_enable_thread):
Remove decl (now in lisp.h).
* src/gmalloc.c: Include stddef.h earlier, for ptrdiff_t.
[emacs]: Include lisp.h.
[HAVE_MALLOC_H]: Include <malloc.h>.
(__MALLOC_HOOK_VOLATILE): New macro, if not already defined.
(__after_morecore_hook, __malloc_initialize_hook, __morecore)
(__default_morecore):
[!HAVE_MALLOC_H]: New decls near non-inclusion of <malloc.h>.
(calloc): Make it clear that the macro should not be used.
Remove unused decl.
(malloc_info): New macro, to avoid clash with glibc <malloc.h>.
(__morecore, __default_morecore, __after_morecore_hook)
(__malloc_extra_blocks, __malloc_initialize_hook, __free_hook)
(__malloc_hook, __realloc_hook, __memalign_hook, memory_warnings):
Remove later decls.
(gmalloc_hook, gfree_hook, grealloc_hook):
Rename from __malloc_hook, __free_hook, __realloc_hook to
avoid type collision with glibc <malloc.h>.  All uses changed.
(gmalloc_hook):
(__malloc_extra_blocks) [DOUG_LEA_MALLOC||HYBRID_MALLOC||SYSTEM_MALLOC]:
Now static.
(gmalloc_hook, __malloc_extra_blocks): Define even if [!HYBRID_MALLOC].
(__malloc_initialize_hook, __after_morecore_hook):
Declare with types compatible with glibc.
(__memalign_hook, hybrid_calloc) [HYBRID_MALLOC]:
Remove.  All uses removed.
* src/lisp.h (__malloc_extra_blocks, malloc_enable_thread): New decls.
* src/ralloc.c, src/vm-limit.c:
Simplify includes and include <malloc.h> if available.

8 years ago* src/alloc.c: Include "sheap.h".
Paul Eggert [Sat, 30 Jan 2016 22:20:57 +0000 (14:20 -0800)]
* src/alloc.c: Include "sheap.h".

(alloc_unexec_pre, alloc_unexec_post) [HYBRID_MALLOC]:
Set and clear bss_sbrk_did_unexec, on all platforms not just Cygwin.
* src/lisp.h (alloc_unexec_pre, alloc_unexec_post) [!DOUG_LEA_MALLOC]:
Declare unconditionally.
* src/unexcw.c, src/unexelf.c (bss_sbrk_did_unexec): Remove decl.
(unexec): Don’t set or clear bss_sbrk_did_unexec;
the caller now does this.
(Bug#22086)

8 years agoPacify --enable-gcc-warnings when HYBRID_MALLOC
Paul Eggert [Sat, 30 Jan 2016 22:20:57 +0000 (14:20 -0800)]
Pacify --enable-gcc-warnings when HYBRID_MALLOC

* src/buffer.c (init_buffer):
* src/emacs.c (main):
* src/xsmfns.c (smc_save_yourself_CB, x_session_initialize):
Use emacs_get_current_dir_name, not get_current_dir_name.
* src/conf_post.h (aligned_alloc) [HYBRID_MALLOC && emacs]: New macro.
(HYBRID_GET_CURRENT_DIR_NAME, get_current_dir_name): Remove.
* src/emacs.c: Include "sheap.h".
(report_sheap_usage): Remove decl.
(Fdump_emacs) [HYBRID_MALLOC]: Report usage directly.
Don't assume ptrdiff_t can be printed as int.
* src/gmalloc.c [HYBRID_MALLOC]:
Include "sheap.h" rather than declaring its contents by hand.
(get_current_dir_name, gget_current_dir_name)
(hybrid_get_current_dir_name): Remove.
(emacs_abort): Remove duplicate decl.
(aligned_alloc): Undef, like malloc etc.
(ALLOCATED_BEFORE_DUMPING): Now a static function, not a macro.
Make it a bit more efficient.
(malloc_find_object_address): Remove unused decl.
(enum mcheck_status, mcheck, mprobe, mtrace, muntrace, struct mstats)
(mstats, memory_warnings): Declare only if GC_MCHECK.
* src/lisp.h (emacs_get_current_dir_name):
New decl, replacing get_current_dir_name.
* src/sheap.c: Include sheap.h first.
(STATIC_HEAP_SIZE): Remove; now in sheap.h.
(debug_sheap): Now static.
(bss_sbrk_buffer_end): Remove; no longer used.
(bss_sbrk_ptr): Now static and private.
(bss_sbrk_did_unexec): Now bool.
(BLOCKSIZE): Remove, to avoid GCC warning about its not being used.
(bss_sbrk): Don't treat request_size 0 as special, since the code
works without this being a special case.
Avoid overflow if request size exceeds INT_MAX.
(report_sheap_usage): Remove; now done in emacs.c.
* src/sheap.h: New file.
* src/sysdep.c (get_current_dir_name): Remove macro.
Include "sheap.h".
(emacs_get_current_dir_name): Rename function from
get_current_dir_name.  Handle HYBRID_MALLOC here;
this is simpler.
(Bug#22086)

8 years agoReport static heap usage on non-Cygwin, too
Paul Eggert [Sat, 30 Jan 2016 22:20:56 +0000 (14:20 -0800)]
Report static heap usage on non-Cygwin, too

* src/emacs.c (Fdump_emacs) [HYBRID_MALLOC]: Report sheap usage here ...
* src/unexcw.c (unexec): ... instead of here, since sheap can be used
on platforms other than Cygwin (Bug#22086).

8 years agoPacify GCC on extern decls
Paul Eggert [Sat, 30 Jan 2016 22:20:56 +0000 (14:20 -0800)]
Pacify GCC on extern decls

* src/unexelf.c (bss_sbrk_did_unexec): Move decl to top level
to pacify recent GCC (Bug#22086).