]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agooutline-invisible-p): Only return `t' for the 'outline property
Paul Rankin [Fri, 30 Sep 2016 08:06:02 +0000 (10:06 +0200)]
outline-invisible-p): Only return `t' for the 'outline property

* lisp/outline.el (outline-invisible-p): Only return `t' for
the 'outline property.

8 years agoFix problems found by static checking --with-ns
Paul Eggert [Fri, 30 Sep 2016 03:09:37 +0000 (20:09 -0700)]
Fix problems found by static checking --with-ns

This is for Fedora 24 when configured with --enable-gcc-warnings.
Although it does not fix all the problems, it fixes many of them.
* src/frame.c (XParseGeometry):
* src/nsterm.m (mouseDown:):
Mark locals with UNINIT to pacify --enable-gcc-warnings.
* src/image.c (PIX_MASK_DRAW, DefaultDepthOfScreen):
Remove unused macros.
(slurp_file xbm_scan, xbm_read_bitmap_data, xbm_load_image)
(xbm_file_p, xbm_load, xpm_scan, xpm_make_color_table_v)
(xpm_put_color_table_v, xpm_get_color_table_v)
(xpm_make_color_table_h, xpm_put_color_table_h)
(xpm_get_color_table_h, xpm_load_image, xpm_load)
(pbm_next_char, pbm_scan_number, pbm_load, svg_load)
(svg_load_image):
* src/nsfns.m (x_get_string_resource):
* src/nsimage.m (ns_image_from_XBM):
Fix pointer signedness problems.
* src/image.c (xpm_load_image, x_build_heuristic_mask, pbm_load)
(imagemagick_load_image): Omit unused locals.
* src/nsfns.m (ns_send_types, ns_return_types, ns_drag_types)
(Fx_open_connection):
* src/nsfont.m (ns_antialias_threshold):
Move extern decl to nsterm.h so it can be checked.
* src/nsmenu.m (svcsMenu, dockMenu):
Move to the only file that uses them, so they can be static.
* src/nsterm.h (find_and_call_menu_selection):
* src/nsterm.m (x_set_frame_alpha):
Omit duplicate decls.
* src/nsterm.h (ns_dump_glyphstring): Mark as EXTERNALLY_VISIBLE.
* src/nsfns.m (ns_tooltip, ns_display_info_for_name)
(ns_set_name_as_filename, x_set_menu_bar_lines)
(x_set_tool_bar_lines, x_set_internal_border_width):
* src/nsterm.m (ns_drag_types, ns_draw_text_decoration):
Now static.
* src/nsfns.m (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp):
* src/nsterm.m (ns_free_indexed_color, ns_color_to_lisp):
Remove; unused.
* src/nsfont.m (ns_dump_glyphstring):
* src/nsterm.m (hide_bell, ns_get_color, ns_color_to_lisp)
(ns_clear_frame, keyDown:):
Fix signedness problem with printf arg.
* src/nsterm.h (ns_input_events, ns_finish_events):
* src/nsterm.m (ns_finish_events, hide_bell):
Prototype the decls.
* src/nsterm.m (NSMenuDidBeginTrackingNotification):
Omit unnecessary decl.
(dockMenu):
(mainMenu) [NS_IMPL_COCOA]: Now static, and in this file.
(ns_dumpglyphs_box_or_relief, changeFont:, initFrameFromEmacs:)
(toggleFullScreen:): Use FACE_FROM_ID instead of
FACE_FROM_ID_OR_NULL in contexts where the caller expects the
result to be non-null.
(applicationShouldTerminate:): Fix misleading indentation.

8 years agoTurn on more lexical-binding
Mark Oteiza [Wed, 28 Sep 2016 17:08:12 +0000 (13:08 -0400)]
Turn on more lexical-binding

* lisp/dom.el:
* lisp/faces.el:
* lisp/htmlfontify.el: Turn on lexical-binding.
(htmlfontify-string): Use pushnew instead of add-to-list.
* lisp/info-xref.el:
* lisp/isearch.el:
* lisp/man.el:
* lisp/ps-def.el:
* lisp/ps-print.el:
* lisp/replace.el: Turn on lexical-binding.  Require cl-lib at compile
time.
(multi-occur): Use cl-pushnew instead of add-to-list.
(replace-match-string-symbols): Remove unused lexical variable.
(replace-search, replace-highlight): Fix argument shadowing.
* lisp/sort.el:
* lisp/xml.el: Turn on lexical-binding.
(xml--parse-buffer): Use push instead of add-to-list.
* lisp/xt-mouse.el: Turn on lexical-binding.

8 years ago; Fix previous change
Mark Oteiza [Tue, 27 Sep 2016 17:34:29 +0000 (13:34 -0400)]
; Fix previous change

* lisp/woman.el (woman-parse-man.conf, woman-manpath-add-locales)
(woman-cached-data): Use :test #'equal for instances of cl-pushnew.

8 years ago* admin/notes/bug-triage: Do not mention closed bugs
Michael Albinus [Tue, 27 Sep 2016 08:53:49 +0000 (10:53 +0200)]
* admin/notes/bug-triage: Do not mention closed bugs

* admin/notes/bug-triage: Do not mention closed bugs, they are
suppressed by default in debbugs-{gnu,org}.

8 years ago* etc/PROBLEMS: Remove problem Bug#22814, again.
Michael Albinus [Tue, 27 Sep 2016 08:39:09 +0000 (10:39 +0200)]
* etc/PROBLEMS: Remove problem Bug#22814, again.

8 years agoStick with debbugs-supported tags in triage
Paul Eggert [Tue, 27 Sep 2016 00:28:17 +0000 (17:28 -0700)]
Stick with debbugs-supported tags in triage

* admin/notes/bug-triage: Stick to the tag "unreproducible", which
debbugs supports, rather than suggesting "doneunreproducible" or
"unreproducable".

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 23:18:08 +0000 (16:18 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

5b73408 Backport mm-convert-shr-links fix from master (bug#23964)

8 years agoBackport mm-convert-shr-links fix from master (bug#23964)
Katsumi Yamaoka [Mon, 26 Sep 2016 22:34:53 +0000 (22:34 +0000)]
Backport mm-convert-shr-links fix from master (bug#23964)

* lisp/gnus/mm-decode.el (mm-convert-shr-links):
Preserve key bindings that shr adds (bug#23964).

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:39:17 +0000 (13:39 -0700)]
Merge from origin/emacs-25

9fc9988 Improve documentation of 'expand-abbrev' and wrapper hooks
c14a1d4 Minor copyedits of MS-Windows installation instructions
f281924 Fix display of cursor when 'blink-cursor-delay' has small value

# Conflicts:
# lisp/minibuffer.el

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:37:36 +0000 (13:37 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

7cb120e Improve the doc string of 'format'
3a9866e Improve doc strings in whitespace.el
2e2469b Improve detectability of 'next-logical-line' and 'previous-lo...
16e6207 Fix (next-frame nil t) crash (Bug#24281)
3f539c0 Fix debugging of string-match-p errors
f746a92 Fix region display while dragging mouse
df4f812 Fix 'vertical-motion' and 'posn-at-point' under 'visual-line-...
9135bd7 Improve display of tex-verbatim and Info quoted
e0dd65c Document how to check for ImageMagick support
dc1e0ac Run find-function-after-hook after finding a symbol

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:37:36 +0000 (13:37 -0700)]
Merge from origin/emacs-25

0ae9a81 Document 'timerp'
2c72c46 Improve documentation of overlay priorities
f6fa160 Fix 'dired-compress-files'
2b8c5f0 Update commentary of STRING_CHAR and FETCH_MULTIBYTE_CHAR

# Conflicts:
# lisp/dired.el
# src/buffer.h
# src/character.h

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:35:57 +0000 (13:35 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

0d016ca Increment Emacs version to 25.1.50

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:35:56 +0000 (13:35 -0700)]
Merge from origin/emacs-25

cf9e174 Document the optional zlib library in MS-Windows builds
84eb144 ; * admin/notes/unicode: Mention BidiCharacterTest.txt.
73c67dd Fix tagging of DEFUN by etags
ea1960b Avoid resetting track-mouse by mouse clicks
505fef3 Improve nt/README.W32 instructions
1229cc4 Document that desktop file overrides frame parameters
f0eb70d ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release

# Conflicts:
# ChangeLog.2
# admin/notes/unicode
# lisp/ldefs-boot.el

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:32:28 +0000 (13:32 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

8d0ff83 * etc/AUTHORS: Regenerate the AUTHORS file

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 26 Sep 2016 20:32:28 +0000 (13:32 -0700)]
Merge from origin/emacs-25

0ffc9ce Update admin/authors.el
0ad7410 Update Antinews in ELisp manual
ea0f750 Fix comments on window height macros
0bbdeed Fix 'url-http-create-request' when cookies are used
0045998 Fix cross reference in frames.texi
1392894 ; * etc/DEBUG: Minor copyedits.
304a5c8 ; * etc/DEBUG: Improve documentation of getting control to GDB.
56bf7d7 Fix regexp-opt documentation (bug #17862)
803ad6f ; Fix documentation of seq-subseq
ed4530d * lisp/emacs-lisp/gv.el (gv-ref): Fix example of PLACE in doc...
88ea396 ; Spelling fixes
17197d0 Fix tags-query-replace docstring
80a7f8b Clarify documentation of precision in format specs
88a5052 Improve and clarify documentation of subprocesses
89eb09f * etc/PROBLEMS: Mention gnutls-cli 3.5.3 (Bug#24247).

# Conflicts:
# etc/PROBLEMS
# src/process.c

8 years agoImprove documentation of 'expand-abbrev' and wrapper hooks
Eli Zaretskii [Mon, 26 Sep 2016 16:02:01 +0000 (19:02 +0300)]
Improve documentation of 'expand-abbrev' and wrapper hooks

* lisp/simple.el (filter-buffer-substring-functions)
(buffer-substring--filter): Add a link to 'with-wrapper-hook' as
the place to look for documentation of wrapper hooks.
* lisp/minibuffer.el (completion-in-region-functions)
(completion--in-region): Add a link to 'with-wrapper-hook' as the
place to look for documentation of wrapper hooks.
* lisp/abbrev.el (expand-abbrev, abbrev--default-expand): Clarify
the doc strings.  (Bug#24540)

* doc/lispref/text.texi (Buffer Contents): Mention
'with-wrapper-hook's doc string as the place to learn about that
obsolete facility.

8 years ago* lisp/net/tramp-compat.el (tramp-compat-funcall): Don't use `subrp'.
Michael Albinus [Mon, 26 Sep 2016 07:50:39 +0000 (09:50 +0200)]
* lisp/net/tramp-compat.el (tramp-compat-funcall): Don't use `subrp'.

8 years agoMinor copyedits of MS-Windows installation instructions
Eli Zaretskii [Sun, 25 Sep 2016 15:16:07 +0000 (18:16 +0300)]
Minor copyedits of MS-Windows installation instructions

* nt/INSTALL:
* nt/README.W32: Add URL of Emacs dependencies on alpha.gnu.org.

8 years agoFix 'dired-mark-extension' with prefix argument
Eli Zaretskii [Sat, 24 Sep 2016 15:10:42 +0000 (18:10 +0300)]
Fix 'dired-mark-extension' with prefix argument

* lisp/dired-x.el (dired-mark-extension): Allow to specify
MARKER-CHAR interactively as a string, not as a character's
codepoint.  (Bug#24518)

* doc/misc/dired-x.texi (Advanced Mark Commands): Document the
behavior when invoked with a prefix arg.

8 years agoSupport completion of classes and IDs in CSS mode
Simen Heggestøyl [Sat, 24 Sep 2016 11:55:36 +0000 (13:55 +0200)]
Support completion of classes and IDs in CSS mode

* lisp/textmodes/css-mode.el (css-class-list-function): New variable
holding the function to call for retrieving completions of class
names.
(css-id-list-function): New variable holding the function to call for
retrieving completions of IDs.
(css--foreign-completions): New function for retrieving completions
from other buffers.
(css--complete-selector): Support completing HTML class names and IDs
from other buffers in addition to completing HTML tags.

* lisp/textmodes/sgml-mode.el (html--buffer-classes-cache): New
variable holding a cache for `html-current-buffer-classes'.
(html--buffer-ids-cache): New variable holding a cache for
`html-current-buffer-ids'.
(html-current-buffer-classes): New function returning a list of class
names used in the current buffer.
(html-current-buffer-ids): New function returning a list of IDs used
in the current buffer.
(html-mode): Set `css-class-list-function' and `css-id-list-function'
to `html-current-buffer-classes' and `html-current-buffer-ids'
respectively.

8 years agoUpdate test suite files due to removal of test/lisp/legacy
Eli Zaretskii [Sat, 24 Sep 2016 10:32:44 +0000 (13:32 +0300)]
Update test suite files due to removal of test/lisp/legacy

* test/README: Reference file-organization.org.
* test/file-organization.org: Remove the description of files in
the lisp/legacy/ directory.

8 years ago; * test/src/undo-tests.el: Moved from test/lisp/legacy/.
Eli Zaretskii [Sat, 24 Sep 2016 10:27:57 +0000 (13:27 +0300)]
; * test/src/undo-tests.el: Moved from test/lisp/legacy/.

8 years ago; * test/src/textprop-tests.el: Minor copyedits.
Eli Zaretskii [Sat, 24 Sep 2016 10:25:04 +0000 (13:25 +0300)]
; * test/src/textprop-tests.el: Minor copyedits.

8 years ago; * Move test/lisp/legacy/textprop-tests.el to test/src/.
Eli Zaretskii [Sat, 24 Sep 2016 10:23:20 +0000 (13:23 +0300)]
; * Move test/lisp/legacy/textprop-tests.el to test/src/.

8 years agoIncorporate syntax-tests in lisp-tests.
Eli Zaretskii [Sat, 24 Sep 2016 10:20:19 +0000 (13:20 +0300)]
Incorporate syntax-tests in lisp-tests.

* test/lisp/emacs-lisp/lisp-tests.el: Add tests from
test/lisp/legacy/syntax-tests.el.
* test/lisp/legacy/syntax-tests.el: File deleted.

8 years ago; * test/src/process-tests.el: Renamed from test/lisp/legacy/process-tests.el.
Eli Zaretskii [Sat, 24 Sep 2016 10:12:43 +0000 (13:12 +0300)]
; * test/src/process-tests.el: Renamed from test/lisp/legacy/process-tests.el.

8 years agoIncorporate occur-tests in replace-tests
Eli Zaretskii [Sat, 24 Sep 2016 10:00:40 +0000 (13:00 +0300)]
Incorporate occur-tests in replace-tests

* test/lisp/replace-tests.el: Add tests from
test/lisp/legacy/occur-tests.el.
* test/lisp/legacy/occur-tests.el: File deleted.

8 years agoIncorporate lexbind-tests.el in bytecomp-test.el
Eli Zaretskii [Sat, 24 Sep 2016 09:53:46 +0000 (12:53 +0300)]
Incorporate lexbind-tests.el in bytecomp-test.el

* test/lisp/emacs-lisp/bytecomp-tests.el: Added tests from
test/lisp/legacy/lexbind-tests.el.
* test/lisp/legacy/lexbind-tests.el: File deleted.

8 years ago; * test/src/font-tests.el: Minor copyedits.
Eli Zaretskii [Sat, 24 Sep 2016 09:43:40 +0000 (12:43 +0300)]
; * test/src/font-tests.el: Minor copyedits.

8 years ago; * test/src/font-tests.el: Moved from test/lisp/legacy/font-parse-tests.el.
Eli Zaretskii [Sat, 24 Sep 2016 09:40:10 +0000 (12:40 +0300)]
; * test/src/font-tests.el: Moved from test/lisp/legacy/font-parse-tests.el.

8 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 24 Sep 2016 09:36:43 +0000 (12:36 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

8 years ago; * test/lisp/files-tests.el: Minor copyedits.
Eli Zaretskii [Sat, 24 Sep 2016 09:35:54 +0000 (12:35 +0300)]
; * test/lisp/files-tests.el: Minor copyedits.

8 years agoImprove integer overflow handling a bit
Paul Eggert [Sat, 24 Sep 2016 09:35:13 +0000 (02:35 -0700)]
Improve integer overflow handling a bit

* src/charset.c (read_hex): Use INT_LEFT_SHIFT_OVERFLOW for clarity.
The machine code is the same on my platform.
* src/doprnt.c (doprnt):
* src/emacs-module.c (module_funcall):
* src/font.c (font_intern_prop):
* src/keyboard.c (Frecursion_depth):
* src/lread.c (read1):
Use WRAPV macros instead of checking overflow by hand.
* src/editfns.c (hi_time, time_arith, decode_time_components):
* src/emacs-module.c (Fmodule_load):
Simplify by using FIXNUM_OVERFLOW_P.
* src/emacs-module.c: Include intprops.h.
* src/xdisp.c (percent99): New function.
(decode_mode_spec): Use it to simplify overflow avoidance and
formatting of %p and %P.

8 years ago; * test/lisp/files-tests.el: Moved from test/lisp/legacy/.
Eli Zaretskii [Sat, 24 Sep 2016 09:34:15 +0000 (12:34 +0300)]
; * test/lisp/files-tests.el: Moved from test/lisp/legacy/.

8 years agoIncorporate core-elisp-tests in lisp-tests
Eli Zaretskii [Sat, 24 Sep 2016 09:30:22 +0000 (12:30 +0300)]
Incorporate core-elisp-tests in lisp-tests

* test/lisp/emacs-lisp/lisp-tests.el: Added tests from
test/lisp/legacy/core-elisp-tests.el.
* test/lisp/legacy/core-elisp-tests.el: File removed.

8 years agoMove coding-tests.el and decoder-test.el to their places
Eli Zaretskii [Sat, 24 Sep 2016 09:18:54 +0000 (12:18 +0300)]
Move coding-tests.el and decoder-test.el to their places

* test/src/coding-tests.el: Added all the tests from
test/lisp/legacy/decoder-tests.el.
* test/lisp/legacy/decoder-tests.el: File deleted.

8 years ago; * test/src/coding-tests.el: Moved from test/lisp/legacy/.
Eli Zaretskii [Sat, 24 Sep 2016 09:04:55 +0000 (12:04 +0300)]
; * test/src/coding-tests.el: Moved from test/lisp/legacy/.

8 years ago; * test/lisp/emacs-lisp/bytecomp-tests.el: Fix header and 'provide'.
Eli Zaretskii [Sat, 24 Sep 2016 09:01:44 +0000 (12:01 +0300)]
; * test/lisp/emacs-lisp/bytecomp-tests.el: Fix header and 'provide'.

8 years ago; * test/lisp/emacs-lisp/bytecomp-tests.el: Moved from test/lisp/.
Eli Zaretskii [Sat, 24 Sep 2016 08:59:42 +0000 (11:59 +0300)]
; * test/lisp/emacs-lisp/bytecomp-tests.el: Moved from test/lisp/.

8 years ago; * test/lisp/bytecomp-tests.el: Moved from test/lisp/legacy/.
Eli Zaretskii [Sat, 24 Sep 2016 08:55:03 +0000 (11:55 +0300)]
; * test/lisp/bytecomp-tests.el: Moved from test/lisp/legacy/.

8 years agoUse correct TYPE value for displaying error messages in (erc-display-message)
Vibhav Pant [Sat, 24 Sep 2016 06:11:44 +0000 (11:41 +0530)]
Use correct TYPE value for displaying error messages in (erc-display-message)

8 years agoFix display of cursor when 'blink-cursor-delay' has small value
Eli Zaretskii [Fri, 23 Sep 2016 14:25:55 +0000 (17:25 +0300)]
Fix display of cursor when 'blink-cursor-delay' has small value

* lisp/frame.el (blink-cursor-check, blink-cursor-mode):
Protect ourselves against too small values of blink-cursor-delay.
This avoids erratic display of the cursor, or even failure to
display it, when user types text at high speed or leans on a key
to invoke the keyboard auto-repeat feature.  (Bug#24372)

8 years agoImprove the doc string of 'format'
Eli Zaretskii [Fri, 16 Sep 2016 09:55:15 +0000 (12:55 +0300)]
Improve the doc string of 'format'

* src/editfns.c (Fformat): Fix ambiguity in the doc string's usage
of a literal period.  (Bug#24407)

This was backported from master
(cherry picked from commit 7123896626b06c26c4e37839ab41e41980c8f433)

8 years agoImprove doc strings in whitespace.el
Eli Zaretskii [Fri, 16 Sep 2016 09:46:15 +0000 (12:46 +0300)]
Improve doc strings in whitespace.el

* lisp/whitespace.el (whitespace-mode, whitespace-newline-mode)
(global-whitespace-mode, global-whitespace-newline-mode): Improve
the doc strings.  (Bug#24413)

This was backported from master
(cherry picked from commit 3462fe73351f3da5bc3ebf8296ee44dd2e6b1dbc)

8 years agoImprove detectability of 'next-logical-line' and 'previous-logical-line'
Eli Zaretskii [Fri, 16 Sep 2016 09:31:41 +0000 (12:31 +0300)]
Improve detectability of 'next-logical-line' and 'previous-logical-line'

* lisp/simple.el (next-line, previous-line): Mention
'next-logical-line' and 'previous-logical-line' in the doc
strings.  (Bug#24443)

This was backported from master
(cherry picked from commit e95d0d15bb1534803b0adb3c3a927c8beb7d4e79)

8 years agoFix (next-frame nil t) crash (Bug#24281)
Martin Rudalics [Mon, 22 Aug 2016 06:33:48 +0000 (08:33 +0200)]
Fix (next-frame nil t) crash (Bug#24281)

* src/frame.c (candidate_frame): Check minibuf argument before
comparing it to zero (Bug#24281).

This was backported from master
(cherry picked from commit dc491c3df305a73908fe8de20b7c428a5b38c846)

8 years agoFix debugging of string-match-p errors
Noam Postavsky [Sat, 6 Aug 2016 02:11:00 +0000 (22:11 -0400)]
Fix debugging of string-match-p errors

* src/eval.c (call_debugger): Bind inhibit-changing-match-data to nil so
that debugger code that needs to do regexp match won't break
(Bug #23949, Bug #24166, Bug#16294).

This was backported from master
(cherry picked from commit 7fb75680b38fe0805c2ff7e9cca3bec8121ba984)

8 years agoFix region display while dragging mouse
Eli Zaretskii [Sat, 30 Jul 2016 08:32:02 +0000 (11:32 +0300)]
Fix region display while dragging mouse

* lisp/mouse.el (mouse-drag-track): Reset deactivate-mark in the
buffer of the drag event, to allow mark to be set and the region
be shown as we drag the mouse.  (Bug#24030)

This was backported from master
(cherry picked from commit 7d58b02f363ab02961faa950d1ba727df96f2f19)

8 years agoFix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'
Eli Zaretskii [Sat, 21 May 2016 09:35:08 +0000 (12:35 +0300)]
Fix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'

* src/xdisp.c (move_it_in_display_line_to): Don't assume we can
wrap on a whitespace character if it's followed by another
whitespace character.  When returning under WORD_WRAP for a screen
line that is continued, restore to wrap point when atpos/atx
position would be displayed on the next screen line due to
line-wrap.  (Bug#23570)

This is backported from master
(cherry picked from commit 99848b37d2c3e14c0af45fc6da437a806aa58a80)

8 years agoImprove display of tex-verbatim and Info quoted
Paul Eggert [Fri, 13 May 2016 20:30:33 +0000 (13:30 -0700)]
Improve display of tex-verbatim and Info quoted

Problem reported by Glenn Morris (Bug#19889).
* doc/emacs/display.texi (Standard Faces):
* doc/lispref/display.texi (Basic Faces):
* etc/NEWS: Mention fixed-pitch-serif.
* lisp/faces.el (face-font-family-alternatives):
New family alias Monospace Serif.
(fixed-pitch-serif): New face, which uses the new family.
* lisp/info.el (Info-quoted):
* lisp/textmodes/tex-mode.el (tex-verbatim): Use the new face.
* test/lisp/legacy/font-parse-tests.el (font-parse-tests--data):
Add test case for Monospace Serif.

This is backport from master
(cherry picked from commit 36906806ccfc0e53f1d8c365ab0d7151288b7833)

8 years agoDocument how to check for ImageMagick support
Lars Ingebrigtsen [Sat, 30 Apr 2016 19:39:21 +0000 (21:39 +0200)]
Document how to check for ImageMagick support

* doc/lispref/display.texi (ImageMagick Images): Say how to
check for ImageMagick support, which isn't quite obvious
(bug#20702).

This is backport from master
(cherry picked from commit faf07d646575c78d6d956ce91820ebbf38308553)

8 years agoRun find-function-after-hook after finding a symbol
Tino Calancha [Mon, 25 Apr 2016 17:27:06 +0000 (19:27 +0200)]
Run find-function-after-hook after finding a symbol

* lisp/emacs-lisp/find-func.el (find-library):
* lisp/help-mode.el (help-function-def, help-variable-def):
Run `find-function-after-hook' inside the help-function of the
buttons (bug#22583).
* etc/NEWS: Mention the change.

This is a backport from master.
(cherry picked from commit f069d854508946bcc03e4c77ceb430748e3ab6d7)

8 years agoDocument 'timerp'
Eli Zaretskii [Fri, 23 Sep 2016 08:43:25 +0000 (11:43 +0300)]
Document 'timerp'

* doc/lispref/os.texi (Timers): Document 'timerp'.  (Bug#24511)
Improve indexing.

8 years agoImprove documentation of overlay priorities
Eli Zaretskii [Fri, 23 Sep 2016 08:27:18 +0000 (11:27 +0300)]
Improve documentation of overlay priorities

* doc/lispref/display.texi (Overlay Properties): Minor copyedits.
By popular demand, mention the '(PRIMNARY . SECONDARY)' form of
overlay properties used for the region.  (Bug#20253)

8 years agoFix 'dired-compress-files'
Eli Zaretskii [Fri, 23 Sep 2016 08:08:34 +0000 (11:08 +0300)]
Fix 'dired-compress-files'

* lisp/dired-aux.el (dired-do-compress-to): Make sure the archive
file name is fully expanded by running it through
'expand-file-name'.  Suggested by Drew Adams <drew.adams@oracle.com>.
(Bug#24486)  Doc fix.
* lisp/dired.el: Regenerated changes in autoloads.

8 years agoUpdate commentary of STRING_CHAR and FETCH_MULTIBYTE_CHAR
Eli Zaretskii [Fri, 23 Sep 2016 07:52:07 +0000 (10:52 +0300)]
Update commentary of STRING_CHAR and FETCH_MULTIBYTE_CHAR

* src/character.h (STRING_CHAR):
* src/buffer.h (FETCH_MULTIBYTE_CHAR): Update commentary: these
two macros no longer do any character unification, so the caveats
in those comments are no longer pertinent.

8 years agoIncrement Emacs version to 25.1.50
Eli Zaretskii [Fri, 23 Sep 2016 07:46:26 +0000 (10:46 +0300)]
Increment Emacs version to 25.1.50

* README:
* configure.ac:
* etc/NEWS:
* msdos/sed2v2.inp: Bump the version to 25.1.50.

8 years agoBump the version to 25.2.50
Eli Zaretskii [Fri, 23 Sep 2016 07:40:47 +0000 (10:40 +0300)]
Bump the version to 25.2.50

* README:
* configure.ac:
* etc/NEWS:
* msdos/sed2v2.inp: Increment the Emacs version to 25.2.50.

8 years agoibuffer-do-view-other-frame: Display each buffer in a new frame
Tino Calancha [Fri, 23 Sep 2016 06:16:15 +0000 (15:16 +0900)]
ibuffer-do-view-other-frame: Display each buffer in a new frame

* lisp/ibuffer.el (ibuffer-do-view-1):
When TYPE equals 'other-frame, then display each buffer
in a new frame (Bug#24086).

8 years agoUpdate from gnulib
Paul Eggert [Thu, 22 Sep 2016 21:52:59 +0000 (14:52 -0700)]
Update from gnulib

This incorporates:
2016-09-22 stdint: port to GCC 7
2016-09-22 limits-h, stdint: don't assume extensions
* doc/misc/texinfo.tex, m4/limits-h.m4, m4/stdint.m4: Copy from gnulib.

8 years ago* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Fix coding error
Alan Mackenzie [Thu, 22 Sep 2016 09:56:55 +0000 (09:56 +0000)]
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Fix coding error

8 years agoPort recent flexmember changes to NetBSD
Paul Eggert [Wed, 21 Sep 2016 22:17:20 +0000 (15:17 -0700)]
Port recent flexmember changes to NetBSD

The NetBSD library supports localtime_rz directly, and without
this change 'configure' omitted the flexmember test that is marked
as conditional on localtime_rz.  Emacs now needs to use
flexmember.m4 even when localtime_rz works.
Problem reported by Thomas Klausner.
* admin/merge-gnulib (GNULIB_MODULES): Add flexmember.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.

8 years ago* doc/misc/texinfo.tex: Copy from gnulib.
Paul Eggert [Wed, 21 Sep 2016 20:50:24 +0000 (13:50 -0700)]
* doc/misc/texinfo.tex: Copy from gnulib.

8 years ago; * lisp/net/tramp.el (tramp-clear-passwd): Make it compatible to Emacs 23
Michael Albinus [Wed, 21 Sep 2016 18:02:54 +0000 (20:02 +0200)]
; * lisp/net/tramp.el (tramp-clear-passwd): Make it compatible to Emacs 23

8 years agoDocument the optional zlib library in MS-Windows builds
Eli Zaretskii [Wed, 21 Sep 2016 15:28:30 +0000 (18:28 +0300)]
Document the optional zlib library in MS-Windows builds

* nt/README.W32:
* nt/INSTALL.W64:
* nt/INSTALL: Mention the optional text decompression support and
the zlib library.

8 years ago; * admin/notes/unicode: Mention BidiCharacterTest.txt.
Eli Zaretskii [Wed, 21 Sep 2016 15:14:50 +0000 (18:14 +0300)]
; * admin/notes/unicode: Mention BidiCharacterTest.txt.

8 years agoFix tagging of DEFUN by etags
Eli Zaretskii [Wed, 21 Sep 2016 15:10:29 +0000 (18:10 +0300)]
Fix tagging of DEFUN by etags

* lib-src/etags.c (C_entries): Tag DEFUN twice: once with its C
name, and then again with its Lisp name.  This restores the
ability to find Lisp primitives by their C name, which was lost
when the etags back-end was switched to a more strict search
criteria.

* 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 the changes in etags.c wrt
tagging DEFUN.

8 years agoAvoid resetting track-mouse by mouse clicks
Eli Zaretskii [Wed, 21 Sep 2016 15:00:18 +0000 (18:00 +0300)]
Avoid resetting track-mouse by mouse clicks

* lisp/mouse.el (mouse-drag-line, mouse-drag-track): Don't assume
the previous value of track-mouse is nil; instead, save and
restore the previous value.  (Bug#24480)

8 years ago* lisp/net/tramp.el (tramp-clear-passwd): Call also `auth-source-forget'.
Michael Albinus [Wed, 21 Sep 2016 10:00:11 +0000 (12:00 +0200)]
* lisp/net/tramp.el (tramp-clear-passwd): Call also `auth-source-forget'.

8 years agoUse flexmembers on IBM XL C for AIX
Paul Eggert [Tue, 20 Sep 2016 15:30:17 +0000 (08:30 -0700)]
Use flexmembers on IBM XL C for AIX

This removes a workaround where Emacs did not use flexible
array members when compiled with IBM XL C.  Instead, avoid
the problem by making the aliasing issues more obvious to
this compiler.
* admin/merge-gnulib: Don’t remove m4/flexmember.m4.
* m4/flexmember.m4: Copy from gnulib.
* configure.ac (AC_C_FLEXIBLE_ARRAY_MEMBER): Remove workaround.
* src/alloc.c (allocate_string_data): Rephrase to avoid aliasing
problem that would otherwise mess up code generated for flexible
array members by IBM XL C for AIX, V12.1.
* src/conf_post.h (FLEXIBLE_ARRAY_MEMBER): Remove; now done
by gnulib code.

8 years agoImprove nt/README.W32 instructions
Eli Zaretskii [Tue, 20 Sep 2016 15:25:41 +0000 (18:25 +0300)]
Improve nt/README.W32 instructions

* nt/README.W32: Add instructions for installing 64-bit builds of
optional libraries.  (Bug#24470)

8 years agoFix a problem with Tramp when the temporary dir isn't C:/Temp on w32
Michael Albinus [Mon, 19 Sep 2016 12:21:35 +0000 (14:21 +0200)]
Fix a problem with Tramp when the temporary dir isn't C:/Temp on w32

* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name): Don't use
`tramp-drop-volume-letter' any longer, it causes collateral
damages.  Reported by Chris Zheng <chriszheng99@gmail.com>.

8 years agoPort January __morecore changes to AIX 7.1
Paul Eggert [Sat, 17 Sep 2016 22:06:24 +0000 (15:06 -0700)]
Port January __morecore changes to AIX 7.1

* src/vm-limit.c (__MALLOC_HOOK_VOLATILE, __morecore)
(__after_morecore_hook):
* src/ralloc.c (__morecore):
Declare if DOUG_LEA_MALLOC is not defined, not if HAVE_MALLOC_H is
not defined.  <malloc.h> does not declare these in AIX 7.1.

8 years agoDefine _GNU_SOURCE in files delaying config.h
Paul Eggert [Sat, 17 Sep 2016 18:05:07 +0000 (11:05 -0700)]
Define _GNU_SOURCE in files delaying config.h

Problem reported by Richard Copley in:
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00440.html
* src/w32.c, src/w32notify.c, src/w32proc.c (_GNU_SOURCE):
Define early.

8 years agoUpdate the bidi test code and data
Eli Zaretskii [Sat, 17 Sep 2016 16:12:46 +0000 (19:12 +0300)]
Update the bidi test code and data

* test/manual/BidiCharacterTest.txt: Import the version from
Unicode Standard 9.0.0.
* test/manual/biditest.el (biditest-generate-testfile): Allow 'x'
in the 4th field of the test data.

8 years agoibuffer-do-toggle-read-only: Fix unused argument
Tino Calancha [Sat, 17 Sep 2016 13:38:19 +0000 (22:38 +0900)]
ibuffer-do-toggle-read-only: Fix unused argument

* lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call
'read-only-mode' with ARG when its an integer.
Clarify the meaning of ARG in doc string.

8 years agoImprove accuracy of line/column numbers in byte compiler's warning messages.
Alan Mackenzie [Sat, 17 Sep 2016 12:43:54 +0000 (12:43 +0000)]
Improve accuracy of line/column numbers in byte compiler's warning messages.

* lisp/emacs-lisp/bytecomp.el (byte-compile-set-symbol-position): ensure new
value of byte-compile-last-position is not lower than old value.
(byte-compile-function-warn): call byte-compile-set-symbol-position.

8 years agoDocument that desktop file overrides frame parameters
Eli Zaretskii [Sat, 17 Sep 2016 09:20:09 +0000 (12:20 +0300)]
Document that desktop file overrides frame parameters

* doc/emacs/misc.texi (Saving Emacs Sessions):
* doc/emacs/frames.texi (Frame Parameters): Document that frame
parameters restored by desktop.el take precedence over the
customizations in the init file, and explain how to countermand
that.  For the details of the issue, see
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00318.html.

8 years agoMinor Tramp tweaks
Michael Albinus [Sat, 17 Sep 2016 08:01:31 +0000 (10:01 +0200)]
Minor Tramp tweaks

* lisp/net/tramp.el (tramp-get-buffer): Reuse connection
property "process-buffer" if already existing.
(tramp-connectable-p): Suppress debug messages.

8 years agoDefine _GNU_SOURCE in unexmacosx.c
Paul Eggert [Sat, 17 Sep 2016 01:01:39 +0000 (18:01 -0700)]
Define _GNU_SOURCE in unexmacosx.c

Problem reported by Bob Halley in:
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00427.html
* src/unexmacosx.c (_GNU_SOURCE): Define if not already defined.

8 years agoC Mode: Fix mis-fontification of macro invocation as function declaration
Alan Mackenzie [Fri, 16 Sep 2016 10:47:55 +0000 (10:47 +0000)]
C Mode: Fix mis-fontification of macro invocation as function declaration

This happened with a macro invocation which was followed by a statement block
in braces.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): CASE 11: distinguish
between contexts nil and top, being less permissive in the former case.
(c-just-after-func-arglist-p): call c-forward-decl-or-cast-1 with context top.

8 years agoImprove the doc string of 'format'
Eli Zaretskii [Fri, 16 Sep 2016 09:55:15 +0000 (12:55 +0300)]
Improve the doc string of 'format'

* src/editfns.c (Fformat): Fix ambiguity in the doc string's usage
of a literal period.  (Bug#24407)

8 years agoImprove doc strings in whitespace.el
Eli Zaretskii [Fri, 16 Sep 2016 09:46:15 +0000 (12:46 +0300)]
Improve doc strings in whitespace.el

* lisp/whitespace.el (whitespace-mode, whitespace-newline-mode)
(global-whitespace-mode, global-whitespace-newline-mode): Improve
the doc strings.  (Bug#24413)

8 years agoImprove detectability of 'next-logical-line' and 'previous-logical-line'
Eli Zaretskii [Fri, 16 Sep 2016 09:31:41 +0000 (12:31 +0300)]
Improve detectability of 'next-logical-line' and 'previous-logical-line'

* lisp/simple.el (next-line, previous-line): Mention
'next-logical-line' and 'previous-logical-line' in the doc
strings.  (Bug#24443)

8 years agoUpdate from gnulib
Paul Eggert [Fri, 16 Sep 2016 07:55:40 +0000 (00:55 -0700)]
Update from gnulib

This incorporates:
2016-09-16 extensions: fix typo in comment
2016-09-16 stdio: don't redefine __USE_MINGW_ANSI_STDIO
* m4/extensions.m4, m4/stdio_h.m4: Copy from gnulib.

8 years agoPrefer now-standard int width macros
Paul Eggert [Thu, 15 Sep 2016 22:25:33 +0000 (15:25 -0700)]
Prefer now-standard int width macros

* src/data.c (ULL_WIDTH):
* src/lisp.h (EMACS_INT_WIDTH, BITS_PER_BITS_WORD):
* src/lread.c (read_integer):
* src/term.c (produce_glyphless_glyph):
* src/xterm.c (x_send_scroll_bar_event):
Use *_WIDTH macros instead of CHAR_BIT * sizeof.
* src/data.c (ULL_WIDTH): Rename from BITS_PER_ULL for consistency
with the *_WIDTH standard macros.  All uses changed.
* src/gmalloc.c (INT_BIT): Remove.  All uses replaced with INT_WIDTH.
* src/lisp.h (EMACS_INT_WIDTH): Rename from BITS_PER_EMACS_INT
for consistency with the *_WIDTH standard macros.  All uses changed.
(BITS_PER_CHAR): Remove; all uses replaced by CHAR_BIT.  This must
be the same as CHAR_WIDTH and avoids confusion with Elisp
char-width, which counts columns not bits.
(BITS_PER_SHORT): Remove; all uses replaced by SHRT_WIDTH.
(BITS_PER_LONG): Remove; all uses replaced by LONG_WIDTH.
* src/lread.c: Do not include limits.h since CHAR_BIT is no longer
used directly.

8 years agoUpdate from gnulib
Paul Eggert [Thu, 15 Sep 2016 18:50:23 +0000 (11:50 -0700)]
Update from gnulib

This incorporates:
2016-09-15 stdint: support new _WIDTH macros
2016-09-15 limits-h: new module
2016-09-15 sys_types: avoid glibc 2.25 warnings about major()
2016-09-15 extensions: port to more ISO C TSes
2016-09-13 intprops: new macro TYPE_WIDTH
2016-09-13 extensions: port to recent ISO C TRs
* .gitignore: Add lib/limits.h.
* doc/misc/texinfo.tex, lib/ftoastr.h, lib/intprops.h:
* lib/stdint.in.h, m4/extensions.m4, m4/stdint.m4, m4/stdio_h.m4:
* m4/sys_types_h.m4: Copy from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/limits.in.h, m4/limits-h.m4: New files, copie from gnulib.
* nt/gnulib.mk: Merge changes from lib/gnulib.mk.

8 years ago; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release emacs-25.1
Nicolas Petton [Thu, 15 Sep 2016 21:30:09 +0000 (23:30 +0200)]
; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release

8 years ago* etc/AUTHORS: Regenerate the AUTHORS file
Nicolas Petton [Thu, 15 Sep 2016 21:08:14 +0000 (23:08 +0200)]
* etc/AUTHORS: Regenerate the AUTHORS file

8 years agoUpdate admin/authors.el
Eli Zaretskii [Thu, 15 Sep 2016 19:21:19 +0000 (22:21 +0300)]
Update admin/authors.el

* admin/authors.el (authors-fixed-entries): Add an entry for Bob
Weiner.

8 years agoRework fixing Bug#24432
Michael Albinus [Thu, 15 Sep 2016 07:24:07 +0000 (09:24 +0200)]
Rework fixing Bug#24432

* lisp/net/tramp.el (tramp-get-buffer): Set connection property
"process-buffer" in order to mark connection as active.

* lisp/net/tramp-cache.el (tramp-get-hash-table)
(tramp-set-connection-property)
(tramp-dump-connection-properties): Do not use "active" property.
(tramp-list-connections): Use "process-buffer" property.

* lisp/net/tramp-cmds.el (tramp-cleanup-connection): Flush process
properties prior deletion of process.

8 years ago* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix debug spec (Bug#24430).
Johan Bockgård [Wed, 14 Sep 2016 19:50:31 +0000 (21:50 +0200)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix debug spec (Bug#24430).

8 years ago* lisp/emacs-lisp/edebug.el (defun): Fix debug spec.
Johan Bockgård [Wed, 14 Sep 2016 19:01:08 +0000 (21:01 +0200)]
* lisp/emacs-lisp/edebug.el (defun): Fix debug spec.

8 years agoAvoid compiler warning on MS-Windows due to clone_file
Eli Zaretskii [Wed, 14 Sep 2016 17:46:59 +0000 (20:46 +0300)]
Avoid compiler warning on MS-Windows due to clone_file

* src/fileio.c (clone_file): Condition on !WINDOWSNT, since the
call to it is not compiled in that build, and having it defined
causes compiler warnings.

8 years agoAvoid aborts in GC due to abort_on_gc
Eli Zaretskii [Wed, 14 Sep 2016 17:41:04 +0000 (20:41 +0300)]
Avoid aborts in GC due to abort_on_gc

* src/lisp.h:
* src/print.c (Fprin1_to_string):
* src/eval.c (signal_or_quit):
* src/alloc.c (garbage_collect_1): Remove declarations, setting,
and testing the value of abort_on_gc.  It is no longer needed, and
using it causes rare aborts in GC for no good reason.  (Bug#23912)

8 years agoUpdate Antinews in ELisp manual
Eli Zaretskii [Wed, 14 Sep 2016 14:20:24 +0000 (17:20 +0300)]
Update Antinews in ELisp manual

* doc/lispref/anti.texi (Antinews): Update for Emacs 25.1.
* doc/lispref/elisp.texi (Top): Update the main menu entry for
Antinews.

8 years ago; Complete fixing Bug#24432
Michael Albinus [Wed, 14 Sep 2016 12:52:54 +0000 (14:52 +0200)]
; Complete fixing Bug#24432

8 years agoFix Bug#24432
Michael Albinus [Wed, 14 Sep 2016 09:49:56 +0000 (11:49 +0200)]
Fix Bug#24432

* lisp/net/tramp-cache.el (tramp-get-hash-table): Initialize a
connection as inactive.
(tramp-set-connection-property): Make the connection active.
(tramp-dump-connection-properties): Don't save "active" property.
(tramp-list-connections): List only active connections.  (Bug#24432)

8 years agoDon't bug out on all-whitespace URLs
Lars Ingebrigtsen [Wed, 14 Sep 2016 09:11:17 +0000 (11:11 +0200)]
Don't bug out on all-whitespace URLs

* lisp/net/shr.el (shr-expand-url): Don't bug out on
degenerate all-whitespace URLs.