]> code.delx.au - gnu-emacs/log
gnu-emacs
7 years agoFix quote escaping in ruby-toggle-string-quotes
Sriram Thaiyar [Wed, 22 Jun 2016 16:21:26 +0000 (09:21 -0700)]
Fix quote escaping in ruby-toggle-string-quotes

* lisp/progmodes/ruby-mode.el (ruby-toggle-string-quotes):
Change logic to quote based on the current quote of the string.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-toggle-string-quotes-quotes-correctly): Add test.

Copyright-paperwork-exempt: yes

7 years agoFix test-completion with completion-regexp-list
Noam Postavsky [Sat, 25 Jun 2016 00:44:44 +0000 (20:44 -0400)]
Fix test-completion with completion-regexp-list

* src/minibuf.c (Ftest_completion): Handle alist COLLECTION with non-nil
completion-regexp-list (Bug #23533).

7 years agoTry other addresses when connecting to multihomed
Paul Eggert [Sun, 26 Jun 2016 21:27:21 +0000 (23:27 +0200)]
Try other addresses when connecting to multihomed

Problem reported by Juliusz Chroboczek (Bug#17976)
and by Artur Malabarba (Bug#23620).
Patch from a suggestion by Andreas Schwab in:
http://bugs.gnu.org/17976#39
This patch is for non-MS-Windows platforms.
I don't know the situation on MS-Windows.
* src/process.c (connecting_status):
New function, for (connect . ADDRINFOS).
(connect_network_socket, check_for_dns, wait_for_socket_fds)
(wait_while_connecting, wait_reading_process_output, status_notify):
Use it.
(decode_status, Fmake_network_process):
Support (connect . ADDRINFOS) status.
(connect_network_socket) [!WINDOWSNT]:
If the connection failed and there are other addresses to try, do not
signal an error; instead, loop around to try the next address.
(wait_reading_process_output): Advance to the next address
if there are multiple addresses and the first remaining address
failed.
* src/process.h (struct Lisp_Process.status): Adjust comment
to describe (connect . ADDRINFOS).

7 years agoFix GNUC_PREREQ for GCC 2.8.1 etc.
Paul Eggert [Sun, 26 Jun 2016 20:21:49 +0000 (22:21 +0200)]
Fix GNUC_PREREQ for GCC 2.8.1 etc.

Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00608.html
* src/conf_post.h (GNUC_PREREQ): Port to GCC versions like GCC
2.8.1 (1998), which come before GCC 3.0 and which have nonzero
patchlevel numbers.

7 years agoDon't set 'bidi-paragraph-direction' in 'ansi-term'
Eli Zaretskii [Sun, 26 Jun 2016 16:51:22 +0000 (19:51 +0300)]
Don't set 'bidi-paragraph-direction' in 'ansi-term'

* lisp/term.el (ansi-term): Remove unnecessary setting of
'bidi-paragraph-direction'.  The underlying problem is solved in
bidi.c by changing the regexps that define the paragraph beginning
and end.  (Bug#20611)

7 years ago; Spelling fixes
Paul Eggert [Sun, 26 Jun 2016 11:38:21 +0000 (13:38 +0200)]
; Spelling fixes

7 years agoSync with Tramp 2.3.0
Michael Albinus [Sun, 26 Jun 2016 11:02:38 +0000 (13:02 +0200)]
Sync with Tramp 2.3.0

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.3.0".

7 years agoFix GNUC_PREREQ off-by-1 typo
Paul Eggert [Sun, 26 Jun 2016 10:44:39 +0000 (12:44 +0200)]
Fix GNUC_PREREQ off-by-1 typo

Problem reported by Martin Rudalics in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00587.html
* src/conf_post.h (GNUC_PREREQ) [__GNUC_PATCHLEVEL__]:
Fix < vs <= typo.

7 years agoFix some oddities in Tramp's rsync and smb methods
Michael Albinus [Sun, 26 Jun 2016 10:30:21 +0000 (12:30 +0200)]
Fix some oddities in Tramp's rsync and smb methods

* lisp/net/tramp-sh.el (tramp-methods) <rsync>: Add "-p" and
"-s" arguments.
(tramp-do-copy-or-rename-file-out-of-band):
Call `file-name-directory' also for remote NEWNAME.

* test/lisp/net/tramp-tests.el (tramp-test15-copy-directory):
Do not skip for tramp-smb.el.  Test als COPY-CONTENTS case.
(tramp-test24-file-name-completion): Improve check for
hostname completion.
(tramp--test-rsync-p): New defun.
(tramp-test31-special-characters)
(tramp-test31-special-characters-with-stat)
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls, tramp-test32-utf8)
(tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl)
(tramp-test32-utf8-with-ls): Skip for "rsync".

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
Check also for CIFS capabilities.

7 years agoFix FRAME_INTERNAL_BORDER_WIDTH use (Bug#23841)
Ury Marshak [Sun, 26 Jun 2016 08:10:46 +0000 (09:10 +0100)]
Fix FRAME_INTERNAL_BORDER_WIDTH use (Bug#23841)

* src/nsfns.m (x_set_internal_border_width): Replace assignments to
FRAME_INTERNAL_BORDER_WIDTH.

Copyright-paperwork-exempt: yes

7 years agoDeprecations (bug#23850)
Leo Liu [Sun, 26 Jun 2016 01:55:39 +0000 (09:55 +0800)]
Deprecations (bug#23850)

* lisp/subr.el (string-to-unibyte, string-as-unibyte,
string-to-multibyte, string-as-multibyte): Make obsolete.

7 years agoDo not prompt twice to save a buffer
Tino Calancha [Sun, 26 Jun 2016 01:54:29 +0000 (10:54 +0900)]
Do not prompt twice to save a buffer

* lisp/hilit-chg.el (highlight-markup-buffers): (Bug#23824).

7 years agoMove text line right when in box (bug#23755)
Alan Third [Fri, 17 Jun 2016 23:02:32 +0000 (00:02 +0100)]
Move text line right when in box (bug#23755)

* src/nsterm.m (ns_draw_glyph_string_foreground): Create to take
CHAR_GLYPH specific code and move glyphs right if within a box.
(ns_draw_glyph_string): Move CHAR_GLYPH specific code into above
function.

7 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 25 Jun 2016 22:16:25 +0000 (00:16 +0200)]
Merge from origin/emacs-25

0377fe2 ; Spelling fixes
f253695 Update docs for `customize-mode'
4395aaa Fix documentation of 'assoc-string' and 'compare-strings'
ab0ebb9 ; Only load .elc file in tests.
a98aa02 Error on multibyte characters in HTTP request
ea512a7 * lisp/gnus/mm-decode.el (mm-convert-shr-links): Mask keys th...
8297331 ; Revert "Ensure undo-boundary after insert-file-contents."
dc5e65b Unset GIT_DIR when calling Git commands
6cdd8f7 Ensure undo-boundary after insert-file-contents.
4793f5f Clarify documentation of 'line-spacing' and 'line-height'
5f37572 Fix removal of variables from process-environment
e5e886d * admin/authors.el (authors-ignored-files, authors-valid-file...
db0777b * admin/authors.el (authors-aliases, authors-fixed-case): Add...

# Conflicts:
# doc/lispref/modes.texi
# lisp/gnus/mm-decode.el

7 years ago; Spelling fixes
Paul Eggert [Sat, 25 Jun 2016 22:06:27 +0000 (00:06 +0200)]
; Spelling fixes

7 years agoUpdate docs for `customize-mode'
Noam Postavsky [Sat, 25 Jun 2016 17:12:11 +0000 (13:12 -0400)]
Update docs for `customize-mode'

* lisp/cus-edit.el (customize-mode): This function works with both major
and minor modes, make docstring and prompt reflect that (Bug #23649).

* doc/lispref/modes.texi (Derived Modes): Remove note about
customize-mode being experimental; it has been around since Emacs
22 (Bug #11299).

Co-authored-by: Drew Adams <drew.adams@oracle.com>
7 years agoTeach net-utils more iproute2 and nl80211 tools
Mark Oteiza [Sat, 25 Jun 2016 14:31:04 +0000 (10:31 -0400)]
Teach net-utils more iproute2 and nl80211 tools

* lisp/net/net-utils.el (iwconfig-program): Add iw(8).
(iwconfig-program-options): Add "dev" argument for iw.  Another useful
option is "phy"; beyond that one needs to know the interface name.
(netstat-program): Add ss(8).
(route-program): Add ip(8).
(route-program-options): Add "route" argument for ip.

7 years agoUse use-region-p in prolog.el
Leo Liu [Sat, 25 Jun 2016 01:35:39 +0000 (09:35 +0800)]
Use use-region-p in prolog.el

* lisp/progmodes/prolog.el (region-exists-p): Remove.
* lisp/progmodes/prolog.el (prolog-edit-menu-runtime,
prolog-edit-menu-insert-move): Use use-region-p.

7 years agoRemove compatibility with Emacs 24.3 in octave-mode
Leo Liu [Sat, 25 Jun 2016 00:57:51 +0000 (08:57 +0800)]
Remove compatibility with Emacs 24.3 in octave-mode

* lisp/progmodes/octave.el: Clean up and remove compatibility with
Emacs 24.3.

7 years agoEnsure hack-local-variables is run in a fundamental mode buffer.
Alan Mackenzie [Fri, 24 Jun 2016 16:03:29 +0000 (16:03 +0000)]
Ensure hack-local-variables is run in a fundamental mode buffer.

This fixes bug #23827.

* src/buffer.c (set-buffer-major-mode): Run `fundamental-mode' when the buffer
gets set to that mode, so that `run-mode-hooks', and thus
`hack-local-variables' get run.

7 years agoFix caller to ediff-setup
Tino Calancha [Fri, 24 Jun 2016 15:26:09 +0000 (00:26 +0900)]
Fix caller to ediff-setup

* lisp/hilit-chg.el (hilit-chg-get-diff-info): #Bug23820.

7 years agoImplement ' separators in C++ integer literals.
Alan Mackenzie [Fri, 24 Jun 2016 13:26:34 +0000 (13:26 +0000)]
Implement ' separators in C++ integer literals.

* lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): insert
c-before-after-change-digit-quote into the C++ value.
(c-before-font-lock-functions): Insert c-depropertize-new-text into the values
for all languages.  Insert c-before-after-change-digit-quote into the C++
value.

* lisp/progmodes/cc-mode.el (c-depropertize-CPP): Wrap the function in
c-save-buffer-state.
(c-depropertize-new-text, c-before-after-change-digit-quote): New functions.

7 years agoUpdate from gnulib
Paul Eggert [Fri, 24 Jun 2016 11:49:32 +0000 (13:49 +0200)]
Update from gnulib

This incorporates:
2016-06-24 intprops: port better to GCC 7
2016-06-13 xalloc-oversized: port to GCC 7; fewer warnings
* doc/misc/texinfo.tex, lib/xalloc-oversized.h, lib/intprops.h:
Copy from gnulib.

7 years agoRemove two uses of 'min' in Fwindow_text_pixel_size
Martin Rudalics [Fri, 24 Jun 2016 07:59:50 +0000 (09:59 +0200)]
Remove two uses of 'min' in Fwindow_text_pixel_size

* src/xdisp.c (Fwindow_text_pixel_size): Don't use 'min' since
it calls move_it_to twice.  Suggested by Eli Zaretskii.

7 years agoClarify intent of FACE_FROM_ID and IMAGE_FROM_ID
Paul Eggert [Fri, 24 Jun 2016 00:19:13 +0000 (02:19 +0200)]
Clarify intent of FACE_FROM_ID and IMAGE_FROM_ID

* src/dispextern.h (FACE_OPT_FROM_ID): Don’t use FACE_FROM_ID,
since it is intended to be used only when it returns a non-null
pointer, and here the pointer might be null.
(IMAGE_OPT_FROM_ID): Don’t use IMAGE_FROM_ID, for similar reasons.

7 years agoRemove some more face aliases obsoleted in 22.1
Mark Oteiza [Thu, 23 Jun 2016 22:48:12 +0000 (18:48 -0400)]
Remove some more face aliases obsoleted in 22.1

* lisp/eshell/em-ls.el (eshell-ls-directory-face, eshell-ls-symlink-face,
eshell-ls-executable-face, eshell-ls-readonly-face,
eshell-ls-unreadable-face, eshell-ls-special-face,
eshell-ls-missing-face, eshell-ls-archive-face, eshell-ls-backup-face,
eshell-ls-product-face, eshell-ls-clutter-face): Remove.
* lisp/isearch.el (isearch-lazy-highlight-face, lazy-highlight-face): Remove.
(isearch-lazy-highlight-update): Use face symbol.
* lisp/net/sieve-mode.el (sieve-control-commands-face,
sieve-action-commands-face, sieve-test-commands-face,
sieve-tagged-arguments-face): Remove.
(sieve-font-lock-keywords): Use non-obsolete faces.
* lisp/progmodes/sh-script.el (sh-heredoc-face): Remove.
(sh-get-indent-info, sh-prev-line): Use face symbol.
* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1):
Use non-obsolete face.
(tex-math-face, tex-verbatim-face): Remove.
(tex-font-lock-syntactic-face-function): Use face symbols.

7 years agoRemove some face aliases obsoleted in 22.1
Mark Oteiza [Thu, 23 Jun 2016 21:13:11 +0000 (17:13 -0400)]
Remove some face aliases obsoleted in 22.1

* lisp/faces.el (modeline-inactive, modeline-highlight, modeline-buffer-id):
* lisp/hilit-chg.el (highlight-changes-face, highlight-changes-delete-face):
* lisp/info.el (Info-title-1-face, Info-title-2-face, Info-title-3-face,
Info-title-4-face, info-menu-5):
* lisp/obsolete/old-whitespace.el (whitespace-highlight-face):
* lisp/paren.el (show-paren-match-face, show-paren-mismatch-face):
* lisp/progmodes/make-mode.el (makefile-space-face):
* lisp/textmodes/texinfo.el (texinfo-heading-face): Remove.
(texinfo-font-lock-keywords): Use texinfo-heading face.
* lisp/vc/add-log.el (change-log-date-face, change-log-name-face,
change-log-email-face, change-log-file-face, change-log-list-face,
change-log-conditionals-face, change-log-function-face,
change-log-acknowledgement-face):
* lisp/vc/diff-mode.el (diff-header-face, diff-file-header-face,
diff-index-face, diff-hunk-header-face, diff-removed-face, diff-added-face,
diff-changed-face, diff-function-face, diff-context-face,
diff-nonexistent-face): Remove.
(diff-use-changed-face, diff-font-lock-keywords): Use non-obsolete face
symbols.
(diff-hunk-file-names): Fix comment.
(diff-refine-change): Remove.
(diff-refine-removed, diff-refine-added, diff-refine-hunk): Use
non-obsolete face.
* lisp/vc/log-view.el (log-view-file-face, log-view-message-face): Remove.
(log-view-font-lock-keywords): Use non-obsolete face names.
* lisp/vc/pcvs-info.el (cvs-header-face, cvs-filename-face, cvs-unknown-face,
cvs-handled-face, cvs-need-action-face, cvs-marked-face, cvs-msg-face):
* lisp/wid-edit.el (widget-documentation-face, widget-button-face,
widget-field-face, widget-single-line-field-face, widget-inactive-face,
widget-button-pressed-face):
* lisp/woman.el (woman-italic-face, woman-bold-face, woman-unknown-face,
woman-addition-face): Remove.

7 years ago* lisp/international/characters.el (standard-case-table): Improve last change.
Eli Zaretskii [Thu, 23 Jun 2016 19:44:08 +0000 (22:44 +0300)]
* lisp/international/characters.el (standard-case-table): Improve last change.

7 years agoImprove results of 'upcase' for characters with title-case
Eli Zaretskii [Thu, 23 Jun 2016 19:22:39 +0000 (22:22 +0300)]
Improve results of 'upcase' for characters with title-case

* lisp/international/characters.el (standard-case-table): Swap the
order of some lines, to have 'upcase' return the upper-case
variant, not the title-case, for some characters whose lower-case
map to the same codepoints.  (Bug#23833)

7 years agoMake typing into incomplete C++ raw strings work, and make it work fast enough
Alan Mackenzie [Thu, 23 Jun 2016 16:12:45 +0000 (16:12 +0000)]
Make typing into incomplete C++ raw strings work, and make it work fast enough

* lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-state-pp-to-literal):
Put `save-match-data' around calls to `looking-at' to enable the use of the
match data in higher level functions.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations)
(c-font-lock-cut-off-declarators): Use `limit' rather than `(point-max)' as a
limit to speed up handling of C++ raw strings.

7 years agoFix documentation of 'assoc-string' and 'compare-strings'
Eli Zaretskii [Thu, 23 Jun 2016 15:09:14 +0000 (18:09 +0300)]
Fix documentation of 'assoc-string' and 'compare-strings'

* src/minibuf.c (Fassoc_string): Clarify how CASE-FOLD affects the
string comparison.  (Bug#23833)
* src/fns.c (Fcompare_strings): Fix the description of how
IGNORE-CASE affects the comparison.

* doc/lispref/strings.texi (Text Comparison): Clarify how
CASE-FOLD affects the string comparison in 'assoc-string'.  Fix
the description of how IGNORE-CASE affects the comparison in
'compare-strings'.

7 years agoFix handling of LWINDOW key on MS-Windows
Eli Zaretskii [Thu, 23 Jun 2016 14:32:01 +0000 (17:32 +0300)]
Fix handling of LWINDOW key on MS-Windows

* src/w32fns.c (funhook): Correct a typo which broke handling of
the LWINDOW key.  (Bug#23830)

7 years ago; Only load .elc file in tests.
Phillip Lord [Wed, 22 Jun 2016 20:59:51 +0000 (21:59 +0100)]
; Only load .elc file in tests.

* test/automated/viper-tests.el (viper-test-undo-kmacro): Ensure that
  empty load file ends with .elc extension.

7 years agoError on multibyte characters in HTTP request
Dmitry Gutov [Wed, 22 Jun 2016 18:20:06 +0000 (21:20 +0300)]
Error on multibyte characters in HTTP request

* lisp/url/url-http.el (url-http-create-request): Check the
constructed request in the end to verify that it does not contain
multibyte characters (bug#23750).

7 years ago; Revert "Prohibit multibyte characters in url-http-data"
Dmitry Gutov [Wed, 22 Jun 2016 18:10:11 +0000 (21:10 +0300)]
; Revert "Prohibit multibyte characters in url-http-data"

This reverts commit 2ede29575fa22eb7c265117d7511cff9fe02c606.

In favor of a better solution to be pushed to emacs-25.

7 years agoUpdate Unicode data files from Unicode 9.0.0
Eli Zaretskii [Wed, 22 Jun 2016 16:52:49 +0000 (19:52 +0300)]
Update Unicode data files from Unicode 9.0.0

* admin/unidata/copyright.html:
* admin/unidata/BidiBrackets.txt:
* admin/unidata/UnicodeData.txt: Update from Unicode 9.0.0, just
released.

7 years agoFix test for whether the '.el' file is newer than '.elc'
Eli Zaretskii [Wed, 22 Jun 2016 15:55:14 +0000 (18:55 +0300)]
Fix test for whether the '.el' file is newer than '.elc'

* src/lread.c (Fload): Don't overwrite the last character of the
file name in FOUND with 'c', unless the file name ended in ".elc"
to begin with.  Don't treat empty files as byte-compiled.  See
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00463.html
for more details of the problem this caused.

7 years agoFix 'insert-file-contents' when REPLACE is non-nil
Eli Zaretskii [Wed, 22 Jun 2016 15:41:13 +0000 (18:41 +0300)]
Fix 'insert-file-contents' when REPLACE is non-nil

* src/fileio.c (maybe_move_gap): New function to move the gap to
the end of a buffer, if it isn't there already.
(Finsert_file_contents): Call 'maybe_move_gap' before using
conversion_buffer's text as a C 'char' array.  (Bug#23659)
* src/coding.c (decode_eol): Compute the byte increment before
calling del_range_2, because the latter can invalidate the pointer
to buffer text.

7 years agoAvoid compiler warning
Ken Brown [Wed, 22 Jun 2016 14:04:44 +0000 (10:04 -0400)]
Avoid compiler warning

* src/w32fns.c (Fx_show_tip): Don’t jump over auto initialization.

7 years ago* lisp/emacs-lisp/syntax.el (syntax-propertize): Flush extended region.
Stefan Monnier [Wed, 22 Jun 2016 13:44:24 +0000 (09:44 -0400)]
* lisp/emacs-lisp/syntax.el (syntax-propertize): Flush extended region.

7 years agoFix last change to FRAME_INTERNAL_BORDER_WIDTH
Ken Brown [Wed, 22 Jun 2016 13:31:31 +0000 (09:31 -0400)]
Fix last change to FRAME_INTERNAL_BORDER_WIDTH

* src/w32fns.c (x_set_internal_border_width): Don’t use
FRAME_INTERNAL_BORDER_WIDTH(), which is now a function call, as an
lvalue.

7 years ago* lisp/gnus/mm-decode.el (mm-convert-shr-links):
Katsumi Yamaoka [Wed, 22 Jun 2016 10:32:56 +0000 (10:32 +0000)]
* lisp/gnus/mm-decode.el (mm-convert-shr-links):
Mask keys that launch `widget-button-click' (bug#22157).

7 years ago; Revert "Ensure undo-boundary after insert-file-contents."
Phillip Lord [Wed, 22 Jun 2016 08:42:49 +0000 (09:42 +0100)]
; Revert "Ensure undo-boundary after insert-file-contents."

This reverts commit 6cdd8f7153b553c6dc02be47e04a2e75117b6fe4.

The original commit did not address the problem it was claiming to.

7 years agoImprove --without-x GCC pacification
Paul Eggert [Wed, 22 Jun 2016 01:04:16 +0000 (03:04 +0200)]
Improve --without-x GCC pacification

* src/composite.c (autocmp_chars):
* src/conf_post.h (DebPrint) [HAVE_NTGUI && !DebPrint && !EMACSDEBUG]:
Use simpler ((void) 0) for no-op expression returning void.
* src/dispextern.h [HAVE_WINDOW_SYSTEM]:
Include fontset.h, for face_for_char.
(FACE_SUITABLE_FOR_ASCII_CHAR_P, FACE_FOR_CHAR):
Now inline functions instead of macros.  This avoids the need for
all those casts to void.
(FACE_SUITABLE_FOR_ASCII_CHAR_P): Omit 2nd (unused) arg.
All uses changed.
* src/frame.c (Ficonify_frame, Fset_frame_position):
* src/xdisp.c (Fmove_point_visually, show_mouse_face):
* src/xdisp.c (note_mode_line_or_margin_highlight)
(note_mouse_highlight):
Assume HAVE_WINDOW_SYSTEM for simplicity, since the code should
now work either way without generating warnings.
* src/frame.c (display_available) [HAVE_WINDOW_SYSTEM]: New function.
(window_system_available) [HAVE_WINDOW_SYSTEM]: Move to frame.h.
(decode_window_system_frame): Use check_window_system instead of
rolling the code ourself.  Return needed only if HAVE_WINDOW_SYSTEM.
(decode_window_system_frame, check_window_system):
Merge the HAVE_WINDOW_SYSTEM and !HAVE_WINDOW_SYSTEM versions into one.
* src/frame.c (Ficonify_frame, Fset_frame_position):
* src/xdisp.c (show_mouse_face, define_frame_cursor1)
(note_mouse_highlight):
Narrow the scope of the HAVE_WINDOW_SYSTEM #ifdef;
this is a better way to pacify GCC.
* src/xdisp.c (x_set_left_fringe, x_set_right_fringe)
(x_set_right_divider_width, x_set_bottom_divider_width):
* src/xfns.c (x_set_internal_border_width):
Don’t use what are now function calls as lvalues.
* src/frame.h (WINDOW_SYSTEM_RETURN): New macro.
(decode_window_system_frame, check_window_system):
Use it, to avoid the need for duplicate declarations.
(window_system_available): Now an inline function.
(display_available): New decl.
(frame_dimension): New inline function.
(FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
(FRAME_RIGHT_FRINGE_WIDTH, FRAME_TOTAL_FRINGE_WIDTH)
(FRAME_INTERNAL_BORDER_WIDTH, FRAME_RIGHT_DIVIDER_WIDTH)
(FRAME_BOTTOM_DIVIDER_WIDTH):
Use it, to avoid the need for duplicate definitions.
Now inline functions instead of macros.
* src/gnutls.c (gnutls_log_function2i): Remove.
* src/gnutls.h (GNUTLS_LOG2i): Use ‘message’ directly.
This avoids complaints about gnutls_log_function2i being defined
and not used on older platforms that do not need to call GNUTLS_LOG2i.
* src/image.c (DefaultDepthOfScreen) [0]: Remove unused macro.
* src/lisp.h (AUTO_STRING_WITH_LEN): Revert change from ‘type id =
expr’ to ‘type id; id = expr’, as this would suppress valid
jump-misses-init diagnostics.  Let’s find a better way to address
the problem.
* src/vm-limit.c (__MALLOC_HOOK_VOLATILE):
Define only if needed.
* src/xdisp.c (handle_single_display_spec):
Simplify fringe_bitmap computation.
(define_frame_cursor1): Do nothing unless in a window system.
All callers changed and simplified.
* src/xfaces.c (realize_default_face):
Use a simpler way to pacify GCC when a return value is not used
on some platforms.

7 years agoUnset GIT_DIR when calling Git commands
Dmitry Gutov [Tue, 21 Jun 2016 23:04:33 +0000 (02:04 +0300)]
Unset GIT_DIR when calling Git commands

* lisp/vc/vc-git.el (vc-git--call, vc-git-command):
Unset GIT_DIR (bug#23769).

7 years agoEnsure undo-boundary after all commands
Phillip Lord [Fri, 17 Jun 2016 21:34:50 +0000 (22:34 +0100)]
Ensure undo-boundary after all commands

* lisp/simple.el (undo-auto--boundaries): Ensure an undo-boundary after
  every command whether it (apparently) changes the buffer or not.

See Bug#23785 for discussion.

7 years agoEnsure undo-boundary after insert-file-contents.
Phillip Lord [Mon, 20 Jun 2016 13:26:02 +0000 (14:26 +0100)]
Ensure undo-boundary after insert-file-contents.

* src/fileio.c: Record undoable change during insert-file-contents.

Addresses Bug #23785.

7 years agoClarify documentation of 'line-spacing' and 'line-height'
Eli Zaretskii [Tue, 21 Jun 2016 14:20:09 +0000 (17:20 +0300)]
Clarify documentation of 'line-spacing' and 'line-height'

* doc/lispref/display.texi (Line Height): Clarify how the line
height is determined via variables and text properties.  (Bug#23806)

7 years agoFix vertical layout calculations when newline has line-height property
Eli Zaretskii [Tue, 21 Jun 2016 13:14:10 +0000 (16:14 +0300)]
Fix vertical layout calculations when newline has line-height property

* src/xdisp.c (move_it_in_display_line_to): Reset the iterator's
'constrain_row_ascent_descent_p' flag after processing the
newline, similar to what 'display_line' does.  Without this, the
flag remains set once set by x_produce_glyphs, and causes the
vertical layout calculations to go awry, because Emacs thinks the
screen lines have zero height. (Bug#23850)

7 years agoFix compiler warnings in Cygwin-w32 build
Ken Brown [Tue, 21 Jun 2016 03:05:12 +0000 (23:05 -0400)]
Fix compiler warnings in Cygwin-w32 build

* src/conf_post.h (DebPrint) [!EMACSDEBUG]: Add empty do-while
loop to avoid compiler warnings about empty body of 'if'
statement.

* src/image.c [HAVE_NTGUI] (DefaultDepthOfScreen): Disable unused
macro.
(x_create_bitmap_from_data): Declare 'frame'.
(x_create_bitmap_from_file): Don't declare unused variable
'dpyinfo'.

* src/lisp.h (AUTO_STRING_WITH_LEN): Avoid initialization to
prevent "jump-misses-init" compiler warnings.

* src/w32fns.c (check_w32_winkey_state): Define and use only if
WINDOWSNT.
(Fx_show_tip): Declare 'f'.
(Fx_file_dialog): Declare 'filter_a' only if not NTGUI_UNICODE.
(w32_strerror): Use format specifier %d for sprintf argument of
type int.
(emacs_abort): Cast sprintf argument of type DWORD to unsigned
int, and use format specifier %x, for compatibility with Cygwin.
(unicode_append_menu) [NTGUI_UNICODE]:
* src/w32menu.c [NTGUI_UNICODE] (get_menu_item_info)
(set_menu_item_info, unicode_append_menu)
(unicode_message_box):
* src/menu.c [NTGUI_UNICODE] (unicode_append_menu): Define as
functions rather than macros to avoid "address will always
evaluate as true" compiler warnings.

* src/w32font.c (w32_to_x_charset): Use format specifier %d for
sprintf argument of type int.

* src/w32term.c (x_draw_glyphless_glyph_string_foreground): Cast
sprintf argument of type int to unsigned int to match %X format
specifier.
(w32_scroll_bar_handle_click):
(w32_horizontal_scroll_bar_handle_click): Declare 'f'.

* src/w32term.h (FRAME_DISPLAY_INFO): Explicitly discard unused
argument.

7 years agoFix compiler warnings in no-window-system-build
Ken Brown [Mon, 20 Jun 2016 21:54:23 +0000 (17:54 -0400)]
Fix compiler warnings in no-window-system-build

* src/composite.c (autocmp_chars): Declare and set 'f' only if
HAVE_WINDOW_SYSTEM.

* src/dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P)
(FACE_FOR_CHAR): Explicitly discard unused arguments.

* src/font.c (font_open_entity): Declare 'min_width' where it is
first set, and only if HAVE_WINDOW_SYSTEM.

* src/frame.c [!HAVE_WINDOW_SYSTEM] (decode_window_system_frame):
Define _Noreturn version to avoid "suggest attribute noreturn"
compiler warning.
(check_window_system): Declare as _Noreturn.
(Ficonify_frame):
(Fset_frame_position): Don’t declare and set 'f'.

* src/frame.h [!HAVE_WINDOW_SYSTEM] (decode_window_system_frame)
(check_window_system):  Add _Noreturn prototypes.
(FRAME_FRINGE_COLS, FRAME_TOTAL_FRINGE_WIDTH)
(FRAME_LEFT_FRINGE_WIDTH, FRAME_RIGHT_FRINGE_WIDTH)
(FRAME_INTERNAL_BORDER_WIDTH, FRAME_RIGHT_DIVIDER_WIDTH)
(FRAME_BOTTOM_DIVIDER_WIDTH): Explicitly discard unused argument.

* src/xdisp.c (handle_single_display_spec): Declare
'fringe_bitmap' only if HAVE_WINDOW_SYSTEM.
(append_space_for_newline): Declare 'g' where it is first set.
(Fmove_point_visually): Declare and set 'target_is_eol_p' only if
HAVE_WINDOW_SYSTEM.
(show_mouse_face): Declare and set 'f' and 'phys_cursor_on_p' only
if HAVE_WINDOW_SYSTEM.
(note_mode_line_or_margin_highlight):
(note_mouse_highlight): Declare and set 'cursor' and 'pointer'
only if HAVE_WINDOW_SYSTEM.

* src/xfaces.c (realize_default_face): Declare and set 'face' only
if HAVE_X_WINDOWS.  Remove redundant #ifdef.

7 years agoFix removal of variables from process-environment
Eli Zaretskii [Mon, 20 Jun 2016 14:19:25 +0000 (17:19 +0300)]
Fix removal of variables from process-environment

* src/callproc.c (add_env): Fix comparison of a variable with a
value against the same variable without a value.  (Bug#23779)

7 years ago; Simplify in filenotify-tests.el
Michael Albinus [Mon, 20 Jun 2016 13:05:52 +0000 (15:05 +0200)]
; Simplify in filenotify-tests.el

7 years agoWeaken test conditions in filenotify-tests.el
Michael Albinus [Mon, 20 Jun 2016 12:41:41 +0000 (14:41 +0200)]
Weaken test conditions in filenotify-tests.el

* test/lisp/filenotify-tests.el (file-notify--test-with-events):
Fix thinko in test.
(file-notify-test02-events, file-notify-test04-file-validity)
(file-notify-test07-backup)
(file-notify-test08-watched-file-in-watched-dir): Make test
conditions more weak.  (Bug#23618)

7 years ago* admin/authors.el (authors-ignored-files, authors-valid-file-names)
Glenn Morris [Mon, 20 Jun 2016 01:25:19 +0000 (18:25 -0700)]
* admin/authors.el (authors-ignored-files, authors-valid-file-names)
(authors-renamed-files-alist): Additions.

7 years ago* admin/authors.el (authors-aliases, authors-fixed-case): Additions.
Glenn Morris [Mon, 20 Jun 2016 01:05:55 +0000 (18:05 -0700)]
* admin/authors.el (authors-aliases, authors-fixed-case): Additions.

7 years agoMinor ABLOCKS_BUSY cleanups in alloc.c
Paul Eggert [Mon, 20 Jun 2016 00:05:39 +0000 (02:05 +0200)]
Minor ABLOCKS_BUSY cleanups in alloc.c

* src/alloc.c (ABLOCKS_BUSY): Rename arg to avoid potential clash
with member ‘abase’ in definiens.
(lisp_align_malloc, lisp_align_free): Use bool for boolean.
Avoid compiler warning with fewer casts.
(lisp_align_free): Check busy-field values; this can help the
compiler a bit when optimizing, too.

7 years agoASCII-fy coding-system-for-read used for Git commands
Dmitry Gutov [Sun, 19 Jun 2016 19:08:21 +0000 (22:08 +0300)]
ASCII-fy coding-system-for-read used for Git commands

* lisp/vc/vc-git.el (vc-git--asciify-coding-system):
New function.
(vc-git-diff, vc-git-annotate-command): Use it.

7 years agoProhibit multibyte characters in url-http-data
Dmitry Gutov [Sun, 19 Jun 2016 18:06:39 +0000 (21:06 +0300)]
Prohibit multibyte characters in url-http-data

It didn't work anyway, but this makes any such errors more obvious
by catching them earlier.

* lisp/url/url-http.el (url-http-create-request):
Use string-to-unibyte (bug#23750).

7 years agoFix setting a range of char-table slots in a singular case
Eli Zaretskii [Sun, 19 Jun 2016 15:25:17 +0000 (18:25 +0300)]
Fix setting a range of char-table slots in a singular case

* src/chartab.c (char_table_set_range): Start the loop from the
first character of the block to which FROM belongs.  (Bug#23797)

* test/src/chartab-tests.el: New test file.

7 years agoFix CC Mode fontification problem apparent in test file decls-6.cc.
Alan Mackenzie [Sun, 19 Jun 2016 12:06:24 +0000 (12:06 +0000)]
Fix CC Mode fontification problem apparent in test file decls-6.cc.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Recognize
"bar (gnu);" as a declarator only when the construct is directly inside a
class (etc.) called "bar".
(c-directly-in-class-called-p): New function.

7 years agoc-renarrow-state-cache: take care when new point is inside old brace pair.
Alan Mackenzie [Sun, 19 Jun 2016 11:25:07 +0000 (11:25 +0000)]
c-renarrow-state-cache: take care when new point is inside old brace pair.

Also add display of point-min to the c-parse-state debugging output.

* lisp/progmodes/cc-engine.el (c-renarrow-state-cache): When the new
point is inside an old recorded brace pair, clear the cache.
(c-debug-parse-state): Output the value of point-min.

7 years agoRename ALIGN to pointer_align
Paul Eggert [Sat, 18 Jun 2016 23:07:55 +0000 (01:07 +0200)]
Rename ALIGN to pointer_align

* src/alloc.c (pointer_align): Rename from ALIGN.
This fixes Bug#23764 in a simpler way.

7 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 18 Jun 2016 22:54:28 +0000 (00:54 +0200)]
Merge from origin/emacs-25

d1efbaf Fix documentation of completion functions
65c96cc Clarify documentation of 'font-lock-maximum-decoration'
2ad3d01 * doc/misc/cl.texi (Usage): Add some more details.
b49cb0a Fbackward_prefix_chars: stay within buffer bounds

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sat, 18 Jun 2016 22:54:28 +0000 (00:54 +0200)]
; Merge from origin/emacs-25

The following commit was skipped:

d765175 Fix ifdef-vs-if typo with RANDR13_LIBRARY

7 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 18 Jun 2016 22:53:51 +0000 (00:53 +0200)]
Merge from origin/emacs-25

2317c61 Fix last todo-mode change
5d4d8a3 Improve last todo-mode fix
d7084f2 Fix todo-mode use of minibuffer completion keymap (bug#23695).
27dec52 * src/alloc.c (ALIGN): Avoid error on DragonFly BSD.  (Bug#23...
f526191 * lisp/emacs-lisp/nadvice.el (advice--make-docstring): Avoid ...
e881070 * lisp/help-fns.el (describe-function-1): Avoid reporting adv...
d308aa1 Minor grammar fix (bug#23746)
20de667 Doc fixes for grammar and typos (bug#23746)
a67a4e5 * doc/lispref/processes.texi (Process Buffers): Minor rewordi...
27f440e Add cross-reference to ELisp manual
10802d8 ; make change-history-commit
4b2d77d * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix (bu...
12e009e Restore initial undo boundary with viper
291fe0a Revert "Fix viper undo breakage from undo-boundary changes"
6921f4a Fix dbus crash on 32-bit Cygwin

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sat, 18 Jun 2016 22:47:01 +0000 (00:47 +0200)]
; Merge from origin/emacs-25

The following commit was skipped:

e18ee60 Bump version to 25.0.95

7 years agoMerge from origin/emacs-25
Paul Eggert [Sat, 18 Jun 2016 22:47:00 +0000 (00:47 +0200)]
Merge from origin/emacs-25

9ae514a * etc/AUTHORS: Update the AUTHORS file
3ca428e add entries to authors.el
66d556b Fix eldoc-related freezes in python mode
d59bcbc Handle mouse leaving initial window in `mouse-set-region' (Bu...
27fe1e4 org.el: Fix bindings of < and > for calendar scrolling
a813487 Fix undo boundary in recursive edit (Bug#23632)
1f85b7c Doc fixes re alist-get.  (Bug#23548)
ba3f206 * lisp/progmodes/python.el (inferior-python-mode): Avoid tabs...
56fa055 * src/syntax.c (syms_of_syntax) <comment-end-can-be-escaped>:...
4c1370a * lisp/help-fns.el (describe-function-1): Fix handling of fil...
a3f7ae8 * lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix re "by".
601b9b2 * doc/misc/cl.texi (Mapping over Sequences): Fix cl-notevery.

7 years agoFix documentation of completion functions
Noam Postavsky [Wed, 8 Jun 2016 03:37:05 +0000 (23:37 -0400)]
Fix documentation of completion functions

So that the described behavior matches the code (and docstrings).

* doc/lispref/minibuf.texi (Basic Completion): Symbol keys of hash table
collections are used like string keys, not ignored (Bug #10416).

7 years agoClarify documentation of 'font-lock-maximum-decoration'
Eli Zaretskii [Sat, 18 Jun 2016 09:50:57 +0000 (12:50 +0300)]
Clarify documentation of 'font-lock-maximum-decoration'

* doc/emacs/display.texi (Font Lock): Explain how to make the
customization of 'font-lock-maximum-decoration' effective for an
existing buffer.  (Bug#23783)

7 years ago* lisp/emacs-lisp/map.el (map-contains-key): Better docstring
Nicolas Petton [Sat, 18 Jun 2016 08:09:16 +0000 (10:09 +0200)]
* lisp/emacs-lisp/map.el (map-contains-key): Better docstring

7 years agoFix seq-contains
Nicolas Petton [Sat, 18 Jun 2016 08:07:26 +0000 (10:07 +0200)]
Fix seq-contains

Make sure seq-contains return the element of the sequence instead of t.

* lisp/emacs-lisp/seq.el (seq-contains): Fix the function.
* test/lisp/emacs-lisp/seq-tests.el: Add a regression test.

7 years agoAdd new function map-do
Nicolas Petton [Sat, 18 Jun 2016 07:42:09 +0000 (09:42 +0200)]
Add new function map-do

* lisp/emacs-lisp/map.el (map-do, map--do-alist, map--do-array): New
  functions.
* test/lisp/emacs-lisp/map-tests.el: Add a unit test for map-do.

7 years agoAdd seq-do-indexed
Nicolas Petton [Sat, 18 Jun 2016 07:32:18 +0000 (09:32 +0200)]
Add seq-do-indexed

* lisp/emacs-lisp/seq.el (seq-do-indexed): New function.
* test/lisp/emacs-lisp/seq-tests.el: Add a unit test for seq-do-indexed.

7 years agomap.el (map-merge*): Use `map-into' at beginning rather than end
Stefan Monnier [Sat, 18 Jun 2016 04:52:58 +0000 (00:52 -0400)]
map.el (map-merge*): Use `map-into' at beginning rather than end

* lisp/emacs-lisp/map.el (map-merge): Use `map-into' for the first map,
and don't use of an intermediate alist.
(map-merge-with): Same, plus use `cl-callf' to try and avoid performing
3 lookups per inner iteration.

7 years ago* doc/misc/cl.texi (Usage): Add some more details.
Glenn Morris [Fri, 17 Jun 2016 16:55:06 +0000 (12:55 -0400)]
* doc/misc/cl.texi (Usage): Add some more details.

7 years agoFbackward_prefix_chars: stay within buffer bounds
Noam Postavsky [Sat, 4 Jun 2016 13:02:20 +0000 (09:02 -0400)]
Fbackward_prefix_chars: stay within buffer bounds

The commit 1fd3172d "(Fbackward_prefix_chars): Set point properly while
scanning" (1998-03-18), moved the check against of the position against the
buffer beginning out the loop condition so that we might end up checking
the syntax of characters before the beginning of the buffer.  This can
cause segfaults or trigger a "Point before start of properties" error in
`update_interval' (called indirectly from `char_quoted').

* src/syntax.c (Fbackward_prefix_chars): Stop the loop when beginning of
buffer is reached (Bug #3552, Bug #17132, Bug #19379).

7 years ago* lisp/window.el (switch-to-buffer-preserve-window-point): Bump :version.
Mark Oteiza [Thu, 16 Jun 2016 23:57:39 +0000 (19:57 -0400)]
* lisp/window.el (switch-to-buffer-preserve-window-point): Bump :version.

7 years agoFix ifdef-vs-if typo with RANDR13_LIBRARY
Paul Eggert [Wed, 15 Jun 2016 05:40:18 +0000 (22:40 -0700)]
Fix ifdef-vs-if typo with RANDR13_LIBRARY

* src/xfns.c (x_get_monitor_attributes_xrandr): Use #if, not #ifdef.
This ports to systems that predate xrandr 1.3. See Christian Lynbech in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00198.html

(cherry picked from commit dce99f222f1ca33265cd56ddb157817be1dc078e)

7 years agoFix last todo-mode change
Stephen Berman [Thu, 16 Jun 2016 09:05:36 +0000 (11:05 +0200)]
Fix last todo-mode change

* lisp/calendar/todo-mode.el (todo-read-category): Return the
keymap in order to use its defined key bindings.

7 years agoSpeed up CC Mode's font locking by taking some code out of a hot loop.
Alan Mackenzie [Wed, 15 Jun 2016 22:06:14 +0000 (22:06 +0000)]
Speed up CC Mode's font locking by taking some code out of a hot loop.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Remove code which
tests for bare declarators.
(c-font-lock-cut-off-declarators): New function.
(c-complex-decl-matchers): insert c-font-lock-cut-off-declarators.

7 years agoImprove last todo-mode fix
Stephen Berman [Wed, 15 Jun 2016 18:08:16 +0000 (20:08 +0200)]
Improve last todo-mode fix

* lisp/calendar/todo-mode.el (todo-read-category): Use
set-keymap-parent instead of copy-keymap, and default (as
previously) to the global binding (for rationale, see
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00217.html).

7 years agoAutomatically find vars and functions via definition-prefixes
Stefan Monnier [Wed, 15 Jun 2016 17:21:59 +0000 (13:21 -0400)]
Automatically find vars and functions via definition-prefixes

* lisp/help-fns.el (help-definition-prefixes): New var and function.
(help--loaded-p, help--load-prefixes, help--symbol-completion-table):
New functions.
(describe-function, describe-variable): Use them.

* lisp/emacs-lisp/radix-tree.el (radix-tree--prefixes)
(radix-tree-prefixes, radix-tree-from-map): New functions.

7 years agoAutomatically detect whether .h file is C or C++
Michal Nazarewicz [Tue, 7 Jun 2016 12:05:36 +0000 (14:05 +0200)]
Automatically detect whether .h file is C or C++

* lisp/progmodes/cc-mode.el (c-or-c++-mode): A new function which
analyses contents of the buffer to determine whether it looks like C++
source code and based on that enables c-mode or c++-mode.
(c-or-c++-mode--regexp): Regular expression which, when matches
a buffer, signals file is C++.

7 years agoParse compound identifiers in C++ member initialization lists.
Alan Mackenzie [Wed, 15 Jun 2016 15:57:37 +0000 (15:57 +0000)]
Parse compound identifiers in C++ member initialization lists.

* lisp/progmodes/cc-engine.el (c-back-over-compound-identifier): New function.
(c-back-over-member-initializer-braces, c-back-over-list-of-member-inits)
(c-back-over-member-initializers): Call c-back-over-compound-identifier rather
than c-simple-skip-symbol-backward.

7 years agoAdvertize set-keymap-parent as replacement for copy-keymap
Stefan Monnier [Wed, 15 Jun 2016 15:36:51 +0000 (11:36 -0400)]
Advertize set-keymap-parent as replacement for copy-keymap

* doc/lispref/keymaps.texi (Creating Keymaps):
* src/keymap.c (Fcopy_keymap): Advertize set-keymap-parent as replacement.

7 years ago* generic-x.el (ansible-inventory-generic-mode): Warn if value is missing
Ted Zlatanov [Wed, 15 Jun 2016 14:18:31 +0000 (10:18 -0400)]
* generic-x.el (ansible-inventory-generic-mode): Warn if value is missing

7 years agoAdd new ansible-inventory-generic-mode (Bug#23762)
Tim Chambers [Sun, 12 Jun 2016 05:13:40 +0000 (23:13 -0600)]
Add new ansible-inventory-generic-mode (Bug#23762)

* lisp/generic-x.el (ansible-inventory-generic-mode): Add new mode.

Copyright-paperwork-exempt: yes

7 years agoFix ifdef-vs-if typo with RANDR13_LIBRARY
Paul Eggert [Wed, 15 Jun 2016 05:40:18 +0000 (22:40 -0700)]
Fix ifdef-vs-if typo with RANDR13_LIBRARY

* src/xfns.c (x_get_monitor_attributes_xrandr): Use #if, not #ifdef.
This ports to systems that predate xrandr 1.3. See Christian Lynbech in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00198.html

7 years agoFix todo-mode use of minibuffer completion keymap (bug#23695).
Stephen Berman [Tue, 14 Jun 2016 21:43:20 +0000 (23:43 +0200)]
Fix todo-mode use of minibuffer completion keymap (bug#23695).

* lisp/calendar/todo-mode.el (todo-read-category): Don't
override minibuffer-local-completion-map globally (bug#23695).
Bind <SPC> key to self-insert-command.

7 years agoPort to platforms where char * has top bit set
Paul Eggert [Tue, 14 Jun 2016 19:19:36 +0000 (12:19 -0700)]
Port to platforms where char * has top bit set

This fixes a five-year-old FIXME comment.  Although I don’t know
of a platform where this is a problem in practice, better safe
than sorry.
* src/doc.c (Fdocumentation): If SUBRP, simply use doc as integer,
as it is now an integer, not char *.
(store_function_docstring): Offset is now EMACS_INT, not ptrdiff_t;
this is a file offset and EMACS_INT is better if --with-wide-int.
If SUBRP, simply store the offset rather than negating it and
converting it to char *.
* src/lisp.h (struct Lisp_Subr.doc): Now EMACS_INT, not char *.

7 years agoRemove recursion from store_function_docstring
Paul Eggert [Tue, 14 Jun 2016 18:46:30 +0000 (11:46 -0700)]
Remove recursion from store_function_docstring

* src/doc.c (store_function_docstring):
Refactor to avoid the need for C-level recursion.

7 years agoRemove system-specific -I switch from Cygwin-w32 build
Ken Brown [Tue, 14 Jun 2016 13:50:38 +0000 (09:50 -0400)]
Remove system-specific -I switch from Cygwin-w32 build

Suggested by Eli Zaretskii in discussion of bug#18302.

* src/image.c [HAVE_NTGUI]: Remove the unused macro
PIXEL_ALREADY_TYPEDEFED.  On Cygwin, include "noX/xpm.h" instead of
"X11/xpm.h".

* configure.ac [CYGWIN && HAVE_W32]: Change the xpm test to use
"noX/xpm.h".  Don't add a -I switch to CPPFLAGS.

7 years ago* src/alloc.c (ALIGN): Avoid error on DragonFly BSD. (Bug#23764)
Glenn Morris [Tue, 14 Jun 2016 17:39:30 +0000 (13:39 -0400)]
* src/alloc.c (ALIGN): Avoid error on DragonFly BSD.  (Bug#23764)

7 years agoMake python.el work in Emacs 24
Noam Postavsky [Sat, 4 Jun 2016 17:32:50 +0000 (13:32 -0400)]
Make python.el work in Emacs 24

* lisp/progmodes/python.el: Bump version.
(python-define-auxiliary-skeleton): Only use format-message if
fbound (Bug#23126).

7 years agoAvoid compiler warning
Ken Brown [Mon, 13 Jun 2016 23:26:05 +0000 (19:26 -0400)]
Avoid compiler warning

* src/w32fns.c (deliver_wm_chars): Add 'const' to declaration of
'type_CtrlAlt'.

7 years ago* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
Glenn Morris [Mon, 13 Jun 2016 22:18:34 +0000 (18:18 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
Avoid mangling autoloads with unspecified arguments.  (Bug#21299)

7 years agoCall tzset after setting TZ
Paul Eggert [Mon, 13 Jun 2016 21:50:08 +0000 (14:50 -0700)]
Call tzset after setting TZ

* src/editfns.c (tzlookup): Call tzset after setting TZ, so that
the setting change propagates into Emacs local time (Bug#23600).
(emacs_setenv_TZ): Clarify comments.

7 years ago* lisp/help-fns.el (describe-function-1): Avoid reporting advised
Glenn Morris [Mon, 13 Jun 2016 17:14:35 +0000 (13:14 -0400)]
* lisp/help-fns.el (describe-function-1): Avoid reporting advised
autoloads as aliases.  (Bug#21299)

7 years agoUpdate texinfo.tex
Paul Eggert [Mon, 13 Jun 2016 17:04:11 +0000 (10:04 -0700)]
Update texinfo.tex

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