]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoImprove warning and error messages fix/eieio-persistent
Eric Abrahamsen [Sat, 10 Mar 2018 08:26:38 +0000 (16:26 +0800)]
Improve warning and error messages

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read,
  (eieio-persistent-validate/fix-slot-value): Indicate exactly what
  went wrong.

6 years agoAdjust eieio persistence tests for expected failure
Eric Abrahamsen [Sat, 30 Dec 2017 18:12:22 +0000 (10:12 -0800)]
Adjust eieio persistence tests for expected failure

* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
 (eieio-test-persist-hash-and-vector,
  eieio-test-persist-interior-lists): Persistence does not currently
 handle deeply-nested objects. Expect current failures, and mark for
 future fixes.

6 years agoLet eieio-persistent-read read what object-write has written
Eric Abrahamsen [Fri, 29 Dec 2017 02:14:47 +0000 (18:14 -0800)]
Let eieio-persistent-read read what object-write has written

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  `object-write' may quote lists inside hash tables and vectors, so
  unquote those lists here.

This patch allows the eieio-persistent write/restore process to
perform a clean round trip. It only handles a very specific and
limited range of object structures, but at least the write and read
procedures match.

6 years agoHandle possible classtype values in eieio-persistent-read
Eric Abrahamsen [Tue, 19 Dec 2017 22:56:13 +0000 (14:56 -0800)]
Handle possible classtype values in eieio-persistent-read

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  The function `eieio-persistent-slot-type-is-class-p' could return
  either a single class, or a list of classes.

6 years agoAdd new tests for eieio persistence
Pierre Téchoueyres [Fri, 15 Dec 2017 20:42:21 +0000 (21:42 +0100)]
Add new tests for eieio persistence

* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el:
  (hash-equal): New comparison test for hash-tables.
  (persist-test-save-and-compare): Use test for hash-tables.
  (eieio-test-persist-hash-and-vector,
  eieio-test-persist-interior-lists): New tests.

6 years ago* test/lisp/emacs-lisp/derived-tests.el: Fix copy&paste leftovers
Stefan Monnier [Mon, 18 Dec 2017 16:43:34 +0000 (11:43 -0500)]
* test/lisp/emacs-lisp/derived-tests.el: Fix copy&paste leftovers

6 years ago* lisp/subr.el (delayed-after-hook-functions): Rename from ...-forms
Stefan Monnier [Mon, 18 Dec 2017 16:39:17 +0000 (11:39 -0500)]
* lisp/subr.el (delayed-after-hook-functions): Rename from ...-forms

(run-mode-hooks): `funcall` the functions instead of `eval`ing the forms.
* lisp/emacs-lisp/derived.el (define-derived-mode): Push functions
rather than forms (bug#29679).

6 years ago* lisp/net/shr.el (shr-string-pixel-width): Return pixel-width,
Katsumi Yamaoka [Mon, 18 Dec 2017 02:53:26 +0000 (02:53 +0000)]
* lisp/net/shr.el (shr-string-pixel-width): Return pixel-width,
not position (bug#29734).

6 years agopython.el doc fixes
Charles A. Roelli [Sun, 17 Dec 2017 16:09:55 +0000 (17:09 +0100)]
python.el doc fixes

* lisp/progmodes/python.el (python-shell-accept-process-output):
(python-shell-comint-end-of-output-p):
(python-shell-first-prompt-hook):
(python-info-beginning-of-backslash): Doc fixes.

6 years agoMake 'mouse-drag-and-drop-region' more robust and customizable
Tak Kunihiro [Sun, 17 Dec 2017 10:19:19 +0000 (11:19 +0100)]
Make 'mouse-drag-and-drop-region' more robust and customizable

* lisp/mouse.el
(mouse-drag-and-drop-region-cut-when-buffers-differ): New option
to permit 'mouse-drag-and-drop-region' to cut text also when source
and destination buffers differ.
(mouse-drag-and-drop-region-show-tooltip): New option to toggle
display of tooltip during mouse dragging on graphic displays.
(mouse-drag-and-drop-region-show-cursor): New option to toggle
moving point with mouse cursor during mouse dragging of region.
(mouse-drag-and-drop-region): New face to highlight original
text while dragging.
(mouse-drag-and-drop-region): Make use of new options and face.
Ignore errors during tracking.

6 years agoBackport: Don't compare arguments that can be nil (Bug#28039)
Oscar Fuentes [Sat, 16 Dec 2017 00:34:35 +0000 (01:34 +0100)]
Backport: Don't compare arguments that can be nil (Bug#28039)

copy-region-as-kill can be called passing nil as `beg' and
`end'. Magit does that, which caused an error when this advice was in
effect.

* lisp/ses.el (ses--advice-copy-region-as-kill): avoid comparison
  unless `beg' and `end' are non-nil.

6 years agoDon't mess up syntax-ppss cache in electric-pair (Bug#29710)
Noam Postavsky [Fri, 15 Dec 2017 02:25:13 +0000 (21:25 -0500)]
Don't mess up syntax-ppss cache in electric-pair (Bug#29710)

In Emacs 25 and above, calling `scan-sexps', `parse-partial-sexp', or
similar may update the syntax-ppss cache if
`parse-sexp-lookup-properties' is non-nil.  Therefore, when calling
any of these functions with a different than normal syntax-table, the
cache must be cleaned afterwards.
* lisp/elec-pair.el (electric-pair--with-uncached-syntax): New macro.
(electric-pair--syntax-ppss, electric-pair--balance-info): Use it.

6 years ago* etc/emacs.appdata.xml: Update file format.
Glenn Morris [Sun, 17 Dec 2017 00:12:18 +0000 (16:12 -0800)]
* etc/emacs.appdata.xml: Update file format.

6 years agoUse utf-8-hfs-unix on macOS (Bug#29712)
Alan Third [Sat, 16 Dec 2017 17:13:34 +0000 (17:13 +0000)]
Use utf-8-hfs-unix on macOS (Bug#29712)

This is a quick fix for the Emacs 26 release. Do not merge to master.

* test/src/fileio-tests.el (fileio-tests--symlink-failure): Override
file-name-coding-system to utf-8-hfs-unix to prevent test failure.

6 years ago* lisp/progmodes/cc-defs.el (c-version): Update to 5.33.1.
Alan Mackenzie [Sat, 16 Dec 2017 16:01:49 +0000 (16:01 +0000)]
* lisp/progmodes/cc-defs.el (c-version): Update to 5.33.1.

6 years agoImprove fix for Bug#29712
Michael Albinus [Sat, 16 Dec 2017 15:40:03 +0000 (16:40 +0100)]
Improve fix for Bug#29712

* test/lisp/net/tramp-tests.el
(tramp-test32-environment-variables-and-port-numbers):
Adapt check for systems which do not support "echo -n".  (Bug#29712)

6 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.

6 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)

6 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)

6 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.

6 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'.

6 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)

6 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.

6 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.

6 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.

6 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.

6 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)

6 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)

6 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)

6 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.

6 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.

6 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.

6 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)

6 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.

6 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.

6 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)

6 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).

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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).

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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)

6 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.

6 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

6 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.

6 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).

6 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.

6 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).

6 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.

6 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.

6 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>.

6 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)

6 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.

6 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.

6 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)

6 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.

6 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.

6 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)

6 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.

6 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.

6 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)

6 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.

6 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)

6 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.

6 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.

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

6 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)

6 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.

6 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).

6 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)

6 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)

6 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)

6 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").

6 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

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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

6 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.

6 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.

6 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.

6 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.