]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years ago* doc/lispref/sequences.texi (Sequence Functions): Improve indexing.
Eli Zaretskii [Sat, 16 Dec 2017 14:54:32 +0000 (16:54 +0200)]
* doc/lispref/sequences.texi (Sequence Functions): Improve indexing.

7 years agoAvoid reordering of output in 'shr-insert-document'
Eli Zaretskii [Sat, 16 Dec 2017 14:09:41 +0000 (16:09 +0200)]
Avoid reordering of output in 'shr-insert-document'

* lisp/net/shr.el (shr-string-pixel-width): Preserve point across
shr-pixel-column invocations.  (Bug#29734)

7 years agoImprove documentation of 'invisible-p'
Eli Zaretskii [Sat, 16 Dec 2017 10:15:06 +0000 (12:15 +0200)]
Improve documentation of 'invisible-p'

* doc/lispref/display.texi (Invisible Text): Document the return
value of 'invisible-p'.

* src/xdisp.c (Finvisible_p): Rename the argument POS.  Doc fix.
(Bug#29721)

7 years agoRemove one more check that Vframe_list is non-nil
Martin Rudalics [Sat, 16 Dec 2017 09:14:29 +0000 (10:14 +0100)]
Remove one more check that Vframe_list is non-nil

* src/dispnew.c (check_glyph_memory): Remove no-longer-needed
check that Vframe_list is non-nil, as FOR_EACH_FRAME no longer
assumes that.

7 years agoFix off-by-one error in 'css--hex-color'
Simen Heggestøyl [Sat, 16 Dec 2017 08:37:11 +0000 (09:37 +0100)]
Fix off-by-one error in 'css--hex-color'

* lisp/textmodes/css-mode.el (css--hex-color): Fix off-by-one error.

* test/lisp/textmodes/css-mode-tests.el (css-test-hex-color): New test
for 'css--hex-color'.

7 years agoSave and restore text-pixel height and width of frames (Bug#28442)
Aaron Jensen [Sat, 16 Dec 2017 08:36:35 +0000 (09:36 +0100)]
Save and restore text-pixel height and width of frames (Bug#28442)

* lisp/frameset.el (frameset--record-relationships): Record
text-pixel-height and text-pixel-width of frame.
(frameset--restore-frame): Restore text-pixel-height and
text-pixel-width of frame if available.  (Bug#28442)

7 years agoPartially revert "Mention new strictness for &optional, &rest..."
Noam Postavsky [Sat, 16 Dec 2017 04:20:25 +0000 (23:20 -0500)]
Partially revert "Mention new strictness for &optional, &rest..."

The changes to cl argument parsing are not backwards compatible, and
cause inconvenience when writing macros (e.g., instead of doing '&aux
,@auxargs', some more complicated conditionals would be required).
The `cl-defstruct' macro makes use of this convenience when defining
empty structs (Bug#29728).
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
(cl--do-&aux, cl--do-arglist): Undo strict checking of &rest, &key,
and &aux.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-bad-arglist): Remove
test.

7 years ago* lisp/vc/smerge-mode.el (smerge-refine): Respect font-lock-mode.
Glenn Morris [Fri, 15 Dec 2017 18:40:06 +0000 (13:40 -0500)]
* lisp/vc/smerge-mode.el (smerge-refine): Respect font-lock-mode.

7 years ago* lisp/vc/smerge-mode.el (smerge-refine): Replace obsolete alias.
Glenn Morris [Fri, 15 Dec 2017 18:35:25 +0000 (13:35 -0500)]
* lisp/vc/smerge-mode.el (smerge-refine): Replace obsolete alias.

7 years agoFOR_EACH_FRAME no longer assumes frame-list
Paul Eggert [Fri, 15 Dec 2017 17:07:52 +0000 (09:07 -0800)]
FOR_EACH_FRAME no longer assumes frame-list

This cleans up a recent fix related to Bug#29661.
Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2017-12/msg00544.html
* src/frame.c (next_frame, prev_frame, delete_frame):
Restore debugging checks that Vframe_list is non-nil,
as FOR_EACH_FRAME no longer has these checks.
(delete_frame): Remove no-longer-needed checks that Vframe_list is
non-nil, as FOR_EACH_FRAME no longer assumes that.
* src/frame.h (FOR_EACH_FRAME): Do not assume Vframe_list is non-nil.

7 years ago* src/font.c (Ffont_info): Doc fix. (Bug#29682)
Eli Zaretskii [Fri, 15 Dec 2017 10:30:30 +0000 (12:30 +0200)]
* src/font.c (Ffont_info): Doc fix.  (Bug#29682)

7 years agoModernise message.el face spec syntax
Basil L. Contovounesios [Fri, 15 Dec 2017 10:20:38 +0000 (12:20 +0200)]
Modernise message.el face spec syntax

* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name, message-header-xheader)
(message-separator, message-cited-text, message-mml):
Use (DISPLAY . PLIST) face spec syntax as recommended in
`(elisp) Defining Faces'.  (Bug#29405)

7 years agoUpdate message.el obsolete face aliases
Basil L. Contovounesios [Fri, 15 Dec 2017 10:18:43 +0000 (12:18 +0200)]
Update message.el obsolete face aliases

* lisp/gnus/message.el: (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name, message-header-xheader)
(message-separator, message-cited-text, message-mml):
Use define-obsolete-face-alias.  (Bug#29405)

7 years ago; * lisp/comint.el (comint-terminfo-terminal): Add a :version tag.
Eli Zaretskii [Fri, 15 Dec 2017 09:50:11 +0000 (11:50 +0200)]
; * lisp/comint.el (comint-terminfo-terminal): Add a :version tag.

7 years agoImprove documentation of TERM environment variable
Eli Zaretskii [Fri, 15 Dec 2017 09:45:22 +0000 (11:45 +0200)]
Improve documentation of TERM environment variable

* doc/emacs/trouble.texi (Checklist):
* doc/emacs/building.texi (Compilation Shell):
* doc/emacs/misc.texi (Shell Options): Improve indexing of TERM.
* doc/emacs/building.texi (Compilation Shell): Mention
'comint-terminfo-terminal' in conjunction with the TERM value.

7 years agoAdd option to configure comint TERM
Allen Li [Fri, 15 Dec 2017 09:30:25 +0000 (11:30 +0200)]
Add option to configure comint TERM

* lisp/comint.el (comint-terminfo-terminal): New defcustom.
(comint-term-environment): New function for setting terminal options
(comint-exec-1): Use comint-term-environment.  (Bug#29583)
* lisp/progmodes/compile.el (compilation-start): Use comint-term-environment.

* etc/NEWS:
* doc/emacs/misc.texi (Shell Options): Document the new option.

7 years agoBetter support utf-8-with-signature and utf-8-hfs in XML/HTML
Eli Zaretskii [Fri, 15 Dec 2017 09:06:07 +0000 (11:06 +0200)]
Better support utf-8-with-signature and utf-8-hfs in XML/HTML

* lisp/international/mule.el (sgml-xml-auto-coding-function):
Support UTF-8 with BOM and utf-8-hfs as variants of UTF-8, and
obey the buffer's encoding if it is one of these variants, instead
of re-encoding in UTF-8 proper.  (Bug#20623)

7 years ago* lisp/menu-bar.el (menu-bar-mode): Doc fix.
Eli Zaretskii [Fri, 15 Dec 2017 08:59:33 +0000 (10:59 +0200)]
* lisp/menu-bar.el (menu-bar-mode): Doc fix.

7 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Fri, 15 Dec 2017 08:50:22 +0000 (10:50 +0200)]
; * etc/NEWS: Fix last change.

7 years agoFix Bug#29712 in tramp-tests.el
Michael Albinus [Fri, 15 Dec 2017 08:37:42 +0000 (09:37 +0100)]
Fix Bug#29712 in tramp-tests.el

* test/lisp/net/tramp-tests.el
(tramp-test32-environment-variables-and-port-numbers):
Skip for macOS.  (Bug#29712)

7 years agoDon't run FOR_EACH_FRAME when there's no frame left (Bug#29961)
Martin Rudalics [Fri, 15 Dec 2017 07:30:09 +0000 (08:30 +0100)]
Don't run FOR_EACH_FRAME when there's no frame left (Bug#29961)

This does not fix Bug#29961 but avoids that Emacs segfaults when
trying to shut down because it lost connection to the X server.

* src/dispnew.c (check_glyph_memory):
* src/frame.c (delete_frame): Don't run FOR_EACH_FRAME when
there's no frame left (Bug#29961).

7 years ago* lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable.
Glenn Morris [Fri, 15 Dec 2017 06:01:32 +0000 (22:01 -0800)]
* lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable.

7 years agoRemember password change for IMAP in Gnus (Bug#29692)
Ted Zlatanov [Fri, 15 Dec 2017 05:17:30 +0000 (00:17 -0500)]
Remember password change for IMAP in Gnus (Bug#29692)

Reported by Trey Jackson <trey_jackson@mentor.com>.

* lisp/gnus/mail-source.el (mail-source-fetch-imap): Check
`mail-source-password-cache' for password.

7 years agoAdd %DUMBFW to the default GnuTLS priority strings
Ted Zlatanov [Fri, 15 Dec 2017 04:16:38 +0000 (23:16 -0500)]
Add %DUMBFW to the default GnuTLS priority strings

* lisp/net/gnutls.el (gnutls-boot-parameters): Add %DUMBFW to
the default priority strings (Bug#25061).

* etc/NEWS: Mention it.

* doc/misc/emacs-gnutls.texi (Help For Users): Point to the
GnuTLS priority string documentation URL.

7 years agoSmall fixes prompted by make check-declare
Glenn Morris [Fri, 15 Dec 2017 02:31:28 +0000 (21:31 -0500)]
Small fixes prompted by make check-declare

* lisp/frame.el (x-focus-frame): Update declaration.
(ns-mouse-absolute-pixel-position): Fix declaration.
* lisp/vc/diff-mode.el (diff-refine-hunk):
Use smerge-refine-regions rather than obsolete alias.
(smerge-refine-subst): Remove declaration, no longer relevant.

7 years agoFix some custom groups
Glenn Morris [Fri, 15 Dec 2017 02:01:08 +0000 (21:01 -0500)]
Fix some custom groups

* lisp/vc/vc-hooks.el (vc-faces): Rename from vc-state-faces.
* lisp/vc/cvs-status.el (cvs-status): Unused, remove.

7 years agoFix fontification of first declaration within a C++ lambda form.
Alan Mackenzie [Thu, 14 Dec 2017 21:04:39 +0000 (21:04 +0000)]
Fix fontification of first declaration within a C++ lambda form.

* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): Cease
spuriously recognizing the braces of a lambda form as a brace list when there
is an "=" preceding the introductory brackets.

7 years ago* src/data.c (Fadd_variable_watcher): Doc fix.
Charles A. Roelli [Thu, 14 Dec 2017 19:53:35 +0000 (20:53 +0100)]
* src/data.c (Fadd_variable_watcher): Doc fix.

7 years agoFix misfontification of C++ member initialization list after "throw"
Alan Mackenzie [Thu, 14 Dec 2017 17:55:59 +0000 (17:55 +0000)]
Fix misfontification of C++ member initialization list after "throw"

* lisp/progmodes/cc-engine.el (c-forward-type): Stop recognizing a "type"
starting with "throw", by using c-opt-type-modifier-prefix-key.

* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): New lang const
which, in C++, doesn't contain "throw", otherwise like c-type-modifier-kwds.
(c-opt-type-modifier-prefix-key): New lang const and var, a regexp matching
any keyword in the previous lang const.

7 years agoFix doc-string of Fbuffer_list
Martin Rudalics [Thu, 14 Dec 2017 08:38:06 +0000 (09:38 +0100)]
Fix doc-string of Fbuffer_list

* src/buffer.c (Fbuffer_list): Fix doc-string.

7 years agoDon't raise an extraneous frame (bug#29696)
Basil L. Contovounesios [Thu, 14 Dec 2017 04:45:21 +0000 (04:45 +0000)]
Don't raise an extraneous frame (bug#29696)

* lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Lookup
summary buffer keys from article buffer without affecting window
configuration (bug#29696).

7 years agoMention new strictness for &optional, &rest in arglists (Bug#29165)
Noam Postavsky [Mon, 13 Nov 2017 17:46:13 +0000 (12:46 -0500)]
Mention new strictness for &optional, &rest in arglists (Bug#29165)

* etc/NEWS: Explain that '&optional' not followed by a variable is now
an error.
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda, cl--do-&aux)
(cl--do-arglist): Also reject '&optional', '&rest', or '&aux' not
followed by a variable for consistency.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-bad-arglist): New
test.

7 years agoDon't misfontify "foo ()" inside C++ initialization parentheses as a type
Alan Mackenzie [Wed, 13 Dec 2017 20:55:03 +0000 (20:55 +0000)]
Don't misfontify "foo ()" inside C++ initialization parentheses as a type

Also recognize and handle function names introduced by "extern" inside a
function.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Add a new element to
the result list which is t when our declaration is, or is to be treated as,
being at top level.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Detect being
inside a C++ uniform initialization and return (not-decl nil) for this case.
(c-font-lock-declarations): Use the new element 4 of the result of
c-forward-decl-or-cast-1.

* lisp/progmodes/cc-langs.el (c-make-top-level-kwds, c-make-top-level-key):
New lang consts/vars.

7 years agoFixes for defcustoms, prompted by cus-test-opts
Glenn Morris [Wed, 13 Dec 2017 20:29:24 +0000 (15:29 -0500)]
Fixes for defcustoms, prompted by cus-test-opts

* lisp/files.el (save-some-buffers-default-predicate):
* lisp/time.el (display-time-world-list):
* lisp/gnus/gnus-art.el (gnus-article-show-cursor):
* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-names):
* lisp/progmodes/verilog-mode.el (verilog-auto-wire-type):
* lisp/textmodes/less-css-mode.el (less-css-output-directory)
(less-css-output-file-name, less-css-input-file-name):
* lisp/vc/emerge.el (emerge-metachars):
* lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles):
Fix :types.
* lisp/net/newst-backend.el (newsticker-url-list-defaults): Fix url.

7 years ago* lisp/net/newst-backend.el (newsticker--raw-url-list-defaults):
Glenn Morris [Wed, 13 Dec 2017 20:25:56 +0000 (15:25 -0500)]
* lisp/net/newst-backend.el (newsticker--raw-url-list-defaults):
Update.

7 years ago* lisp/htmlfontify.el (hfy-which-etags): Fix it.
Glenn Morris [Wed, 13 Dec 2017 18:55:29 +0000 (13:55 -0500)]
* lisp/htmlfontify.el (hfy-which-etags): Fix it.

7 years agoAdd missing :version tags revealed by cusver-check
Glenn Morris [Wed, 13 Dec 2017 07:21:24 +0000 (23:21 -0800)]
Add missing :version tags revealed by cusver-check

* lisp/comint.el (comint-move-point-for-matching-input):
* lisp/epa.el (epa-replace-original-text):
* lisp/image-dired.el (image-dired-cmd-optipng-program)
(image-dired-cmd-optipng-options):
* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table):
* lisp/gnus/gnus-cloud.el (gnus-cloud-storage-method)
(gnus-cloud-interactive):
* lisp/net/mailcap.el (mailcap-user-mime-data):
* lisp/progmodes/cc-vars.el (c-asymmetry-fontification-flag)
(c-noise-macro-names, c-noise-macro-with-parens-names):
* lisp/progmodes/flymake.el (flymake-start-on-flymake-mode)
(flymake-wrap-around):
* lisp/progmodes/grep.el (grep-use-null-filename-separator):
* lisp/progmodes/js.el (js-indent-align-list-continuation):
* lisp/progmodes/perl-mode.el (perl-flymake-command):
* lisp/progmodes/python.el (python-flymake-command)
(python-flymake-command-output-pattern, python-flymake-msg-alist):
* lisp/progmodes/ruby-mode.el (ruby-flymake-use-rubocop-if-available)
(ruby-rubocop-config):
* lisp/textmodes/less-css-mode.el (less-css):
* lisp/textmodes/tex-mode.el (tex-chktex-program)
(tex-chktex-extra-flags): Add missing :version tags.

7 years agoEscape column-zero doc parens
Glenn Morris [Wed, 13 Dec 2017 07:18:35 +0000 (23:18 -0800)]
Escape column-zero doc parens

* lisp/htmlfontify.el (hfy-display-class):
* lisp/calendar/icalendar.el (icalendar--do-create-ical-alarm):
* lisp/net/shr.el (shr-external-rendering-functions):
* lisp/progmodes/cc-vars.el (c-asymmetry-fontification-flag):
* lisp/textmodes/tildify.el (tildify-tildify):
Escape column-zero doc parens.  A shame bug#21871 remains unfixed.

7 years agoRemove ObjC blocks (Bug#23753)
Alan Third [Sun, 10 Dec 2017 10:16:25 +0000 (10:16 +0000)]
Remove ObjC blocks (Bug#23753)

* src/macfont.m (macfont_get_glyph_for_character):
(mac_font_get_glyphs_for_variants): Inline Objective-C blocks.

(cherry picked from commit 4590f1d768adbb2120a2b02c614f7ed3b21a4a3e)

7 years agoImport the latest IVD_Sequences.txt
Eli Zaretskii [Tue, 12 Dec 2017 19:41:23 +0000 (21:41 +0200)]
Import the latest IVD_Sequences.txt

* admin/unidata/IVD_Sequences.txt: New version from
http://www.unicode.org/ivd/, the 2017-12-12 version of the Unicode
Ideographic Variation Database.

* src/macuvs.h: Regenerated.

7 years agoFix dired-do-compress when tar doesn't default to stdin (Bug#29094)
Max [Tue, 31 Oct 2017 23:33:59 +0000 (02:33 +0300)]
Fix dired-do-compress when tar doesn't default to stdin (Bug#29094)

* lisp/dired-aux.el (dired-compress-file-suffixes): Use argument '-f-'
to write to stdout rather than relying on the default (the choice of
default is decided when compiling tar, BSD systems usually set it to a
tape drive).  Drop '-v', since the output is not used anywhere.

Copyright-paperwork-exempt: yes

7 years agoSuppress warnings during elisp completion macroexpansion
Noam Postavsky [Tue, 5 Dec 2017 01:01:40 +0000 (20:01 -0500)]
Suppress warnings during elisp completion macroexpansion

Errors are already suppressed, therefore it is logical to suppress
warnings as well.  Some macros (e.g., use-package) may produce
warnings when given the `elisp--witness--lisp' symbol.
* lisp/progmodes/elisp-mode.el (elisp--local-variables): Let-bind
warning-minimum-log-level to :emergency.

7 years ago* lisp/progmodes/verilog-mode.el (verilog-mode): Fix typo (Bug#24410).
Chunyang Xu [Sun, 11 Sep 2016 11:39:30 +0000 (19:39 +0800)]
* lisp/progmodes/verilog-mode.el (verilog-mode): Fix typo (Bug#24410).

7 years agoMake tramp-interrupt-process more robust
Michael Albinus [Mon, 11 Dec 2017 08:36:23 +0000 (09:36 +0100)]
Make tramp-interrupt-process more robust

* lisp/net/tramp.el (tramp-interrupt-process): Fall back to
the default implementation if there's no success.

7 years agoMake quail-input-method work when inhibit-read-only is non-nil (bug#29504)
Katsumi Yamaoka [Mon, 11 Dec 2017 01:27:17 +0000 (01:27 +0000)]
Make quail-input-method work when inhibit-read-only is non-nil (bug#29504)

* lisp/international/quail.el (quail-input-method): Work not only
when buffer-read-only is nil but also when inhibit-read-only is non-nil
(bug#29504).

7 years agoFix 'fontset-name-p'
Eli Zaretskii [Sun, 10 Dec 2017 17:45:25 +0000 (19:45 +0200)]
Fix 'fontset-name-p'

* lisp/international/fontset.el (fontset-name-p): Make the
function work with full fontset names and fontset alias names.

7 years agoFix fontset documentation inconsistencies for bug#29630
Eli Zaretskii [Sun, 10 Dec 2017 17:19:40 +0000 (19:19 +0200)]
Fix fontset documentation inconsistencies for bug#29630

* doc/lispref/display.texi (Face Attributes): Don't document
:family as accepting a fontset.  Document that :font accepts a
fontset.

* lisp/faces.el (set-face-attribute): Doc fix.

7 years agoRemove sentence from child frames section in Elisp manual
Martin Rudalics [Sun, 10 Dec 2017 09:38:08 +0000 (10:38 +0100)]
Remove sentence from child frames section in Elisp manual

* doc/lispref/frames.texi (Child Frames): Remove one sentence.
Suggested by Bob Weiner <rsw@gnu.org>.

7 years agoAvoid crashes in 'font-at' after 'set-fontset-font'
Eli Zaretskii [Sun, 10 Dec 2017 08:42:34 +0000 (10:42 +0200)]
Avoid crashes in 'font-at' after 'set-fontset-font'

* src/fontset.c (free_realized_fontsets): Call
recompute_basic_faces, so that the basic faces are available to
any Lisp that calls this function, e.g. via set-fontset-font.
(Bug#29632)

7 years ago* lisp/files-x.el (connection-local-set-profile-variables): Fix docstring.
Ted Zlatanov [Sun, 10 Dec 2017 03:52:50 +0000 (22:52 -0500)]
* lisp/files-x.el (connection-local-set-profile-variables): Fix docstring.

7 years agoAdd /etc/ssl/cert.pem to gnutls-trustfiles for macOS
Ted Zlatanov [Sat, 9 Dec 2017 22:52:01 +0000 (17:52 -0500)]
Add /etc/ssl/cert.pem to gnutls-trustfiles for macOS

Problem reported by Mark Ferlatte (Bug#28603).
* lisp/net/gnutls.el (gnutls-trustfiles): Add /etc/ssl/cert.pem for macOS.

7 years agoFix tool-tip display when display margins are non-zero by default
Eli Zaretskii [Sat, 9 Dec 2017 20:06:19 +0000 (22:06 +0200)]
Fix tool-tip display when display margins are non-zero by default

* src/buffer.h (bset_left_margin_cols, bset_right_margin_cols):
New inline functions.
* src/xfns.c (Fx_show_tip):
* src/w32fns.c (Fx_show_tip): Force display margins of the tip
buffer to zero, as it will be displayed in a pseudo-window, which
doesn't support display margins.  (Bug#29627)

7 years agoHandle hash tables and vectors when reading/writing EIEIO objects
Eric Abrahamsen [Tue, 5 Dec 2017 22:41:50 +0000 (14:41 -0800)]
Handle hash tables and vectors when reading/writing EIEIO objects

* lisp/emacs-lisp/eieio.el (eieio-override-prin1): EIEIO objects
  printed with `prin1' can no longer be read with `read'. Make sure
  they are printed with object-write instead, even when they're inside
  hash tables and vectors.
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  Check for written representations of objects inside hash tables and
  vectors, and reconstruct them.

7 years agoImprove interactive debugging commands in xdisp.c
Eli Zaretskii [Sat, 9 Dec 2017 13:21:21 +0000 (15:21 +0200)]
Improve interactive debugging commands in xdisp.c

* src/xdisp.c (Fdump_glyph_row, Fdump_tool_bar_row): Allow to
specify ROW via prefix argument.  Fix the doc strings.

7 years agoFix calculation of continuation_pixel_width in display engine
Eli Zaretskii [Sat, 9 Dec 2017 12:45:31 +0000 (14:45 +0200)]
Fix calculation of continuation_pixel_width in display engine

* src/xdisp.c (display_line): Remove incorrect increment of
it->continuation_pixel_width when word-wrap is used.  (Bug#29594)

7 years agoImprove documentation of 'save-abbrevs'.
Eli Zaretskii [Sat, 9 Dec 2017 11:43:29 +0000 (13:43 +0200)]
Improve documentation of 'save-abbrevs'.

* doc/emacs/abbrevs.texi (Saving Abbrevs): Document the 'silently'
value of 'save-abbrevs'.  Suggested by Alex Branham
<alex.branham@gmail.com> in emacs-manual-bugs@gnu.org.

7 years agoImprove documentation of Dired
Eli Zaretskii [Sat, 9 Dec 2017 11:29:11 +0000 (13:29 +0200)]
Improve documentation of Dired

* doc/emacs/dired.texi (Dired): Mention that the Dired buffer can
be made modifiable in Wdired.  Suggested by Alex Branham
<alex.branham@gmail.com> in emacs-manual-bugs@gnu.org.

7 years ago* lisp/bookmark.el (bookmark-alist): Doc fix. (Bug#29551)
Eli Zaretskii [Sat, 9 Dec 2017 09:18:06 +0000 (11:18 +0200)]
* lisp/bookmark.el (bookmark-alist): Doc fix.  (Bug#29551)

7 years agoMinor Tramp fixes
Michael Albinus [Fri, 8 Dec 2017 15:37:53 +0000 (16:37 +0100)]
Minor Tramp fixes

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Fix a bug when renaming.

* test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test.
(tramp-test42-delay-load, tramp-test42-remote-load-path):
Skip unless Emacs >= 26.

7 years ago* lisp/help-mode.el (help-function-def):
Glenn Morris [Fri, 8 Dec 2017 01:30:39 +0000 (20:30 -0500)]
* lisp/help-mode.el (help-function-def):
Allow help-make-xrefs to call with one argument.  (Bug#29611)

7 years agoFix doc-string of 'display-buffer-in-side-window'
Martin Rudalics [Thu, 7 Dec 2017 08:55:21 +0000 (09:55 +0100)]
Fix doc-string of 'display-buffer-in-side-window'

* lisp/window.el (display-buffer-in-side-window): In doc-string
clarify why the window returned gets dedicated to its buffer.

7 years agoFix Bug#29579
Michael Albinus [Wed, 6 Dec 2017 19:49:30 +0000 (20:49 +0100)]
Fix Bug#29579

* lisp/files.el (file-name-non-special):
Inhibit `file-name-handler-alist' only for some operations.
Add missing operations.  (Bug#29579)

* lisp/net/tramp-compat.el (tramp-compat-file-name-quote):
Do not quote if it is quoted already.

* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Use `copy-tree' but `copy-sequence'.

* lisp/net/tramp.el (tramp-handle-file-truename): Handle several
trailing slashes correctly.

* test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test24-file-acl)
(tramp-test25-file-selinux, tramp--test-check-files):
Handle also quoted file names.
(tramp-test21-file-links): Fix file name quoting test.
(tramp-test24-file-acl): Be more robust for "smb" method.
(tramp-test35-make-auto-save-file-name): Enable hidden test cases.

7 years ago; NEWS: Update Org version number
Rasmus [Wed, 6 Dec 2017 14:24:22 +0000 (15:24 +0100)]
; NEWS: Update Org version number

7 years agoBackport: Update Org to v9.1.4
Rasmus [Wed, 6 Dec 2017 14:02:15 +0000 (15:02 +0100)]
Backport: Update Org to v9.1.4

Please note this is a bugfix release. See etc/ORG-NEWS for details.

(cherry picked from commit 567b5efe1f338c10c574758fb968915c5c34c909)

7 years agoIn windows.texi mention special splitting behavior of side and atomic windows
Martin Rudalics [Wed, 6 Dec 2017 08:53:30 +0000 (09:53 +0100)]
In windows.texi mention special splitting behavior of side and atomic windows

* doc/lispref/windows.texi (Splitting Windows): Add note about
and links to side and atomic windows.

7 years ago* lisp/gnus/gnus-group.el (gnus-group-mode-map):
Katsumi Yamaoka [Tue, 5 Dec 2017 08:22:20 +0000 (08:22 +0000)]
* lisp/gnus/gnus-group.el (gnus-group-mode-map):
Bind [follow-link] to mouse-face, not 'mouse-face (bug#29538).

7 years agoAvoid compilation warning in xterm.c
Eli Zaretskii [Mon, 4 Dec 2017 19:59:28 +0000 (21:59 +0200)]
Avoid compilation warning in xterm.c

* src/xterm.c (x_draw_underwave): Move the declaration of
'thickness' to the non-USE_CAIRO branch, to avoid compiler
warning.  (Bug#29567)

7 years ago* README: Document all the top-level directories. (Bug#29558)
Eli Zaretskii [Mon, 4 Dec 2017 16:38:15 +0000 (18:38 +0200)]
* README: Document all the top-level directories.  (Bug#29558)

7 years agoDon't enable erc modules on simply loading erc.el
Glenn Morris [Mon, 4 Dec 2017 02:54:08 +0000 (18:54 -0800)]
Don't enable erc modules on simply loading erc.el

* lisp/erc/erc.el (erc-modules): Use default :initialize.  (Bug#29417)

7 years agoAllow shr to use data: URLs without encoding
Lars Ingebrigtsen [Sun, 3 Dec 2017 22:46:52 +0000 (23:46 +0100)]
Allow shr to use data: URLs without encoding

* lisp/net/shr.el (shr-image-from-data): Don't bug out on
image data: URLs that have no base64 encoding like
(shr-image-from-data
"text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E").

7 years agoDon't add newlines in minibuffer history
E. Choroba [Sun, 3 Dec 2017 15:59:03 +0000 (17:59 +0200)]
Don't add newlines in minibuffer history

* lisp/simple.el (next-line-or-history-element): Bind
next-line-add-newlines to nil.  (Bug#29529)

Copyright-paperwork-exempt: yes

7 years agomodhelp.py: Support Python 3 (Bug#24954)
Syohei YOSHIDA [Wed, 16 Nov 2016 14:16:15 +0000 (23:16 +0900)]
modhelp.py: Support Python 3 (Bug#24954)

* modules/modhelp.py: 'print' statement was removed in Python
3.  'print' function should be used instead of 'print' statement.

7 years agoUse forward slashes for python w32 config example (Bug#21656)
Noam Postavsky [Sun, 3 Dec 2017 05:24:21 +0000 (00:24 -0500)]
Use forward slashes for python w32 config example (Bug#21656)

* lisp/progmodes/python.el: Use forward slashes for Windows path
example, it doesn't require doubling of slashes which reduces chances
of confusion.

7 years agoFix bug in i18n/l10n optimization
Paul Eggert [Sun, 3 Dec 2017 05:31:24 +0000 (21:31 -0800)]
Fix bug in i18n/l10n optimization

This fixes a off-by-one buffer overrun bug introduced in
2017-06-04T15:39:37Z!eggert@cs.ucla.edu.  Problem uncovered by an
experimental version of Emacs built with -fcheck-pointer-bounds
and running on Intel MPX hardware.
* src/editfns.c (styled_format): Avoid overrunning internal buffers.

7 years agoLet autoload-compute-prefix be set file-locally (Bug#29471)
Noam Postavsky [Mon, 27 Nov 2017 12:26:10 +0000 (07:26 -0500)]
Let autoload-compute-prefix be set file-locally (Bug#29471)

* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): Mark
boolean values as safe.

7 years agoImprove edit-kbd-macro prompting in case of remapped keys (Bug#29399)
Noam Postavsky [Mon, 27 Nov 2017 00:16:16 +0000 (19:16 -0500)]
Improve edit-kbd-macro prompting in case of remapped keys (Bug#29399)

* lisp/edmacro.el (edit-kbd-macro): Use substitute-command-keys to
present the current bindings in the prompt.  Check the the
non-remapped binding of the entered key sequence as well.

7 years agoAdd tests on electric-indentation and Python multiline strings (Bug#29305)
Lele Gaifax [Wed, 15 Nov 2017 09:10:19 +0000 (10:10 +0100)]
Add tests on electric-indentation and Python multiline strings (Bug#29305)

* test/lisp/progmodes/python-tests.el
(python-indent-electric-comma-inside-multiline-string,
python-indent-electric-comma-after-multiline-string): New tests.

7 years agoDisable electric indent for python strings (Bug#29305)
Noam Postavsky [Sun, 19 Nov 2017 14:00:43 +0000 (09:00 -0500)]
Disable electric indent for python strings (Bug#29305)

* lisp/progmodes/python.el (python-indent-post-self-insert-function):
Do nothing when point or beginning of line is in string.

7 years ago; ChangeLog.2: Fix bug reference.
Noam Postavsky [Mon, 27 Nov 2017 02:23:48 +0000 (21:23 -0500)]
; ChangeLog.2: Fix bug reference.

7 years agoFix buffer overflow in fontname conversion (Bug#29523)
Yuuki Harano [Fri, 1 Dec 2017 19:31:16 +0000 (19:31 +0000)]
Fix buffer overflow in fontname conversion (Bug#29523)

* src/nsterm.m (ns_xlfd_to_fontname): Fix sscanf format.

Copyright-paperwork-exempt: yes

7 years agoFix byte compilation of files with leading directories
Eli Zaretskii [Sat, 2 Dec 2017 11:29:39 +0000 (13:29 +0200)]
Fix byte compilation of files with leading directories

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Pass basename
of target-file to make-temp-file, in case target-file includes a
leading directory that might not exist under TMPDIR.  See
http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00680.html
for the details.

7 years ago* lisp/files.el (make-backup-file-name-1): Fix scoping error.
Michael Albinus [Sat, 2 Dec 2017 11:27:27 +0000 (12:27 +0100)]
* lisp/files.el (make-backup-file-name-1): Fix scoping error.

7 years agoRevert Tramp commit from 2017-11-20
Michael Albinus [Sat, 2 Dec 2017 11:09:57 +0000 (12:09 +0100)]
Revert Tramp commit from 2017-11-20

* lisp/net/tramp.el (tramp-drop-volume-letter)
(tramp-handle-find-backup-file-name): Revert change from
2017-11-20.  Emacs' `make-backup-file-name-1' handles this
case now.

7 years agoImprove documentation of buffer-list commands and features
Eli Zaretskii [Sat, 2 Dec 2017 10:56:45 +0000 (12:56 +0200)]
Improve documentation of buffer-list commands and features

* doc/emacs/buffers.texi (List Buffers): Add a cross-reference to
"Several Buffers", to establish a relation between the two
sections.
(Buffer Menus): Expand on customizability of alternative buffer
menu offered by bs.el.  Mention IBuffer.
Suggested by Alex Branham <alex.branham@gmail.com> in
emacs-manual-bugs@gnu.org.

7 years agoFix backing up remote files in local directories on MS-Windows
Eli Zaretskii [Sat, 2 Dec 2017 08:57:15 +0000 (10:57 +0200)]
Fix backing up remote files in local directories on MS-Windows

* lisp/files.el (make-backup-file-name-1): Support remote file
names correctly when they are backed up into a local directory on
MS-Windows and MS-DOS.  (Bug#29440)

7 years ago* doc/emacs/mule.texi (Output Coding): Clarify sendmail coding.
Glenn Morris [Sat, 2 Dec 2017 00:59:11 +0000 (19:59 -0500)]
* doc/emacs/mule.texi (Output Coding): Clarify sendmail coding.

7 years agoRevert "Fix backing up remote files in local directories on MS-Windows"
John Wiegley [Fri, 1 Dec 2017 20:42:58 +0000 (12:42 -0800)]
Revert "Fix backing up remote files in local directories on MS-Windows"

This reverts commit 8c8b6732882248df4ca3b687e0a4b4e5e4ab3777.

7 years agoFix a typo in ELisp manual
Eli Zaretskii [Fri, 1 Dec 2017 19:56:31 +0000 (21:56 +0200)]
Fix a typo in ELisp manual

* doc/lispref/sequences.texi (Sequence Functions): Fix the example
of using 'seq-uniq'.  (Bug#29524)

7 years ago* lisp/composite.el (find-composition): Fix a typo in the doc string.
Eli Zaretskii [Fri, 1 Dec 2017 16:59:13 +0000 (18:59 +0200)]
* lisp/composite.el (find-composition): Fix a typo in the doc string.

7 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Dec 2017 11:27:29 +0000 (06:27 -0500)]
; Auto-commit of loaddefs files.

7 years agoFix backing up remote files in local directories on MS-Windows
Eli Zaretskii [Fri, 1 Dec 2017 10:40:26 +0000 (12:40 +0200)]
Fix backing up remote files in local directories on MS-Windows

* lisp/files.el (make-backup-file-name-1): Support remote file
names correctly when they are backed up into a local directory on
MS-Windows and MS-DOS.  (Bug#29440)

7 years agoFix vertical cursor motion in pixel-scroll.el
Tak Kunihiro [Fri, 1 Dec 2017 08:54:37 +0000 (10:54 +0200)]
Fix vertical cursor motion in pixel-scroll.el

* lisp/pixel-scroll.el (pixel-scroll-up): Move cursor down
regardless of whether EOB is shown at the top.
(pixel-scroll-down) Move cursor up regardless of whether BOB
is shown at the top.  (Bug#29374)

7 years agoFix typos in doc strings of message.el
Basil L. Contovounesios [Fri, 1 Dec 2017 08:49:57 +0000 (10:49 +0200)]
Fix typos in doc strings of message.el

* lisp/gnus/message.el (message-header-to)
(message-header-subject, message-header-newsgroups)
(message-header-other): Fix typos in doc strings.  (Bug#29405)

7 years agoFix a typo in the Emacs manual
Eli Zaretskii [Fri, 1 Dec 2017 08:26:58 +0000 (10:26 +0200)]
Fix a typo in the Emacs manual

* doc/emacs/abbrevs.texi (Abbrev Concepts): Fix a typo.  Reported
by clemens.radermacher@posteo.de in emacs-manual-bugs@gnu.org.

7 years agoImprove the documentation of 'table-insert-sequence'
Eli Zaretskii [Fri, 1 Dec 2017 08:20:47 +0000 (10:20 +0200)]
Improve the documentation of 'table-insert-sequence'

* doc/emacs/text.texi (Table Misc): Fix the description of
'table-insert-sequence'.  Reported by jack <jackh@gmx.co.uk> in
emacs-manual-bugs@gnu.org.

7 years agoPort better to QNX
Paul Eggert [Thu, 30 Nov 2017 23:22:46 +0000 (15:22 -0800)]
Port better to QNX

Problem reported by Elad Lahav on emacs-devel.
* configure.ac: On QNX, default CC to qcc (a GCC wrapper),
and default LDFLAGS to -N2MB so that the initial stack size
is not too small.  Also, fix misspelling of ‘qnxnto’.

7 years agoMake tramp-test42-auto-load more robust
Michael Albinus [Thu, 30 Nov 2017 19:31:33 +0000 (20:31 +0100)]
Make tramp-test42-auto-load more robust

* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Make it more robust.  Don't skip.

7 years ago; * lisp/composite.el (find-composition): Fix a typo in last change.
Eli Zaretskii [Thu, 30 Nov 2017 17:58:02 +0000 (19:58 +0200)]
; * lisp/composite.el (find-composition): Fix a typo in last change.

7 years agoAvoid assertions in find-composition
Eli Zaretskii [Thu, 30 Nov 2017 17:55:41 +0000 (19:55 +0200)]
Avoid assertions in find-composition

* src/font.c (font_range): If called with STRING non-nil and FACE
a NULL pointer, compute face by calling face_at_string_position.
(Bug#29506)

* lisp/composite.el (find-composition): Doc fix.

7 years ago; * lisp/emacs-lisp/bytecomp.el: Tweak message formatting in previous.
Glenn Morris [Wed, 29 Nov 2017 20:27:06 +0000 (15:27 -0500)]
; * lisp/emacs-lisp/bytecomp.el: Tweak message formatting in previous.