]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoNew function eieio-declare-slots
Lars Ingebrigtsen [Mon, 17 Jun 2019 13:46:09 +0000 (15:46 +0200)]
New function eieio-declare-slots

* lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): New
function to suppress compiler warnings about unknown slots.

5 years agoFix use of obsolete constructor in semantic/complete.el
Lars Ingebrigtsen [Mon, 17 Jun 2019 11:30:30 +0000 (13:30 +0200)]
Fix use of obsolete constructor in semantic/complete.el

* lisp/cedet/semantic/complete.el (make-instance): Use
make-instance instead of the obsolete constructor method...  which
didn't work, anyway.  The following would bug out

5 years agoFix compilation warning by having ede-target inherit from eieio-named
Lars Ingebrigtsen [Mon, 17 Jun 2019 11:05:34 +0000 (13:05 +0200)]
Fix compilation warning by having ede-target inherit from eieio-named

* lisp/cedet/ede/base.el (ede-target): Inherit from eieio-named so
that if you're customizing objects via eieio-object-value-get, you
can set the name.

* lisp/emacs-lisp/eieio-custom.el (eieio-object-value-get): Don't
use obsolete function `eieio-object-set-name-string'.

5 years agoRemove the now unneeded c-font-lock-flush from CC Mode.
Alan Mackenzie [Mon, 17 Jun 2019 11:00:55 +0000 (11:00 +0000)]
Remove the now unneeded c-font-lock-flush from CC Mode.

* lisp/progmodes/cc-defs.el (c-font-lock-flush): Delete this macro.

* lisp/progmodes/cc-engine.el (c-propertize-raw-string-opener): Delete the
call to the macro.

5 years agoMake calc-macs.el lexical
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:45:10 +0000 (12:45 +0200)]
Make calc-macs.el lexical

* lisp/calc/calc-macs.el: Enable lexical binding.  This fixes a
build warning in calc.el (which is lexical).

5 years agoSuppress warning in isearchb about iswitchb being obsolete
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:37:02 +0000 (12:37 +0200)]
Suppress warning in isearchb about iswitchb being obsolete

* lisp/isearchb.el (obsolete): Suppress warning about package
being obsolete.  Instead, this has been reported to the bug
tracker, because it requires a rewrite of isearchb.

5 years agoMake do-after-load-evaluation check whether warnings are enabled.
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:36:01 +0000 (12:36 +0200)]
Make do-after-load-evaluation check whether warnings are enabled.

* lisp/subr.el (do-after-load-evaluation): Heed
`byte-compile-warning-enabled-p', if defined.  This allows
suppressing the warning about packages being obsolete.

5 years agoSuppress compilation warning in srt-mode
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:22:15 +0000 (12:22 +0200)]
Suppress compilation warning in srt-mode

* lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro): Check
for the existence of `key' in the macro before using it, and
suppress the warning.

5 years agoSuppress warning about out-of-tree Java class in cedet
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:19:44 +0000 (12:19 +0200)]
Suppress warning about out-of-tree Java class in cedet

* lisp/cedet/ede/config.el (ede-java-classpath): Hack to suppress
a compilation warning in glue code to out-of-tree code.

5 years agoSuppress warning about object-print in eieio.el
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:12:48 +0000 (12:12 +0200)]
Suppress warning about object-print in eieio.el

* lisp/emacs-lisp/eieio.el (obsolete): Suppress warning about
object-print being obsolete, because there are no in-tree
definitions any more.

5 years agoAdd check for enabled warning before issuing
Lars Ingebrigtsen [Mon, 17 Jun 2019 10:09:18 +0000 (12:09 +0200)]
Add check for enabled warning before issuing

* lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): Check
whether we want the `obsolete' warning before issuing it.

5 years agoSuppress warning about object-print in eieio.el
Lars Ingebrigtsen [Mon, 17 Jun 2019 09:42:03 +0000 (11:42 +0200)]
Suppress warning about object-print in eieio.el

* lisp/emacs-lisp/eieio.el (cl-print-object): Suppress the warning
about object-print being obsolete, since there are no in-tree
methods like that any more.

5 years agoMake with-suppressed-warnings work in cl-defmethod
Lars Ingebrigtsen [Mon, 17 Jun 2019 09:39:56 +0000 (11:39 +0200)]
Make with-suppressed-warnings work in cl-defmethod

* lisp/emacs-lisp/cl-generic.el (cl-defmethod): Pass the symbol
name on to `byte-compile-warning-enabled-p' to make
with-suppressed-warnings work in cl-defmethods, too.

5 years agoRewrite object-print methods in cedet to be cl-print-object methods
Lars Ingebrigtsen [Mon, 17 Jun 2019 09:22:21 +0000 (11:22 +0200)]
Rewrite object-print methods in cedet to be cl-print-object methods

* lisp/cedet/semantic/db-el.el (object-print): Ditto.
(object-print): Ditto.

* lisp/cedet/semantic/db-global.el (object-print): Ditto.

* lisp/cedet/semantic/db.el (object-print): Remove; unused.
* lisp/cedet/semantic/db.el (semanticdb-debug-info): New method.
(object-print): Rewritten to be cl-print-object.

* lisp/emacs-lisp/eieio.el (eieio-object-name): Allow the EXTRA
argument to be a list of strings.

5 years agoAdd doc strings to the -at-point commands in vc-git
Lars Ingebrigtsen [Mon, 17 Jun 2019 08:35:05 +0000 (10:35 +0200)]
Add doc strings to the -at-point commands in vc-git

* lisp/vc/vc-git.el (vc-git-stash-delete-at-point)
(vc-git-stash-show-at-point, vc-git-stash-apply-at-point)
(vc-git-stash-pop-at-point): Add doc strings to these commands.

5 years ago* find-dired.el (find-dired-refine-function): Fix defcustom.
Roland Winkler [Mon, 17 Jun 2019 04:02:12 +0000 (23:02 -0500)]
* find-dired.el (find-dired-refine-function): Fix defcustom.

5 years agoPrevent the Gnus registry from being loaded twice at startup
Eric Abrahamsen [Mon, 17 Jun 2019 02:14:25 +0000 (19:14 -0700)]
Prevent the Gnus registry from being loaded twice at startup

* lisp/gnus/gnus-registry.el (gnus-registry-load): Check if the
  registry is already loaded, and don't load again unless new optional
  FORCE argument is non-nil.
  (gnus-registry-clear): New function to clear the registry, added as
  a Gnus shutdown. Now that loading doesn't unilaterally reset the
  registry, we need to make sure it is reloaded when Gnus is.

5 years agoAvoid rounding error in image rotation
YAMAMOTO Mitsuharu [Mon, 17 Jun 2019 01:43:31 +0000 (10:43 +0900)]
Avoid rounding error in image rotation

* src/image.c (image_set_rotation): Halve translations as double values.

5 years agoTweak compilation mode used by byte-recompile-directory
Glenn Morris [Mon, 17 Jun 2019 00:36:52 +0000 (17:36 -0700)]
Tweak compilation mode used by byte-recompile-directory

* lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode):
Doc fix.
(byte-recompile-directory): Use emacs-lisp-compilation-mode.

5 years agoDisable filling of warnings in a bytecomp test
Glenn Morris [Mon, 17 Jun 2019 00:35:36 +0000 (17:35 -0700)]
Disable filling of warnings in a bytecomp test

* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
Disable filling rather than working around it.

5 years agoTweak how byte-compile-print-syms fills
Glenn Morris [Mon, 17 Jun 2019 00:34:27 +0000 (17:34 -0700)]
Tweak how byte-compile-print-syms fills

* lisp/emacs-lisp/bytecomp.el (byte-compile-print-syms):
Use fill-column from the compile log buffer.

5 years agoDon't hard-code the fill-column for display-warning
Glenn Morris [Mon, 17 Jun 2019 00:31:49 +0000 (17:31 -0700)]
Don't hard-code the fill-column for display-warning

* lisp/emacs-lisp/warnings.el (warning-fill-column): New variable.
(display-warning): Use warning-fill-column.
* doc/lispref/display.texi (Warning Variables):
Mention warning-fill-column.

5 years ago* lisp/emacs-lisp/cl-generic.el (gv-setter): Move declaration.
Stefan Monnier [Sun, 16 Jun 2019 22:35:35 +0000 (18:35 -0400)]
* lisp/emacs-lisp/cl-generic.el (gv-setter): Move declaration.

Move it to those places where we know gv has been loaded.

5 years agoFix up the --no-print-directory changes in src/Makefile.in
Lars Ingebrigtsen [Sun, 16 Jun 2019 22:33:53 +0000 (00:33 +0200)]
Fix up the --no-print-directory changes in src/Makefile.in

* src/Makefile.in (AM_V_NO_PD): New macro written by Andreas
Schwab that can be either --no-print-directory or "".
(%.elc): Use it instead if the if statement.

5 years ago; Update admin notes re web pages
Glenn Morris [Sun, 16 Jun 2019 22:25:19 +0000 (15:25 -0700)]
; Update admin notes re web pages

5 years agoBump up max_specpdl_size to 1500. (Bug#36216)
Juanma Barranquero [Sun, 16 Jun 2019 21:14:51 +0000 (23:14 +0200)]
Bump up max_specpdl_size to 1500.  (Bug#36216)

* src/eval.c (init_eval_once): Set max_specpdl_size to 1500.
* doc/lispref/variables.texi (Local Variables): Document it.

5 years agoAdd comment to eieio-opt about why we're requiring cl-extra
Lars Ingebrigtsen [Sun, 16 Jun 2019 20:26:34 +0000 (22:26 +0200)]
Add comment to eieio-opt about why we're requiring cl-extra

* lisp/emacs-lisp/eieio-opt.el (cl-extra): Add comment about why
we're not requiring cl-lib.

5 years agoRevert "Simplify image transforms"
Alan Third [Sun, 16 Jun 2019 19:46:31 +0000 (20:46 +0100)]
Revert "Simplify image transforms"

This reverts commit cf3081d208814ea02fce33aac645abfc24f880a6.

; Pushed in error.

5 years agoSimplify image transforms
Alan Third [Sun, 16 Jun 2019 19:10:20 +0000 (20:10 +0100)]
Simplify image transforms

* src/image.c: (image_set_rotation, image_set_size,
image_set_transform): Combine into image_set_transform.
(image_set_crop): Remove function.
(lookup_image): Remove calls to removed functions and remove
transform_matrix.
* test/manual/image-transforms-tests.el (test-cropping): Remove
function.
(test-transforms): Remove reference to test-cropping.

5 years agoDocument image transforms
Alan Third [Tue, 11 Jun 2019 19:31:24 +0000 (20:31 +0100)]
Document image transforms

* doc/lispref/display.texi (Image Descriptors): Document :crop and
update :rotation.
* src/image.c: Describe the image transform matrix layout.
* test/manual/image-transforms-tests.el: New file.

5 years agoFix compilation warning about gv-setter in cl-generic
Lars Ingebrigtsen [Sun, 16 Jun 2019 15:58:31 +0000 (17:58 +0200)]
Fix compilation warning about gv-setter in cl-generic

* lisp/emacs-lisp/cl-generic.el (gv-setter): Declare to avoid a
compilation warning.

5 years agoCC Mode: Remedy recent loss in performance
Alan Mackenzie [Sun, 16 Jun 2019 15:46:12 +0000 (15:46 +0000)]
CC Mode: Remedy recent loss in performance

* lisp/progmodes/cc-engine.el (c-back-over-member-initializers): call
c-parse-state outside of the narrowing operation.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context)
(c-font-lock-cut-off-declarators): Replace calls to c-determine-limit with
crude position calculations for speed.

5 years agoFix compilation warning i eieio-base
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:48:34 +0000 (16:48 +0200)]
Fix compilation warning i eieio-base

* lisp/emacs-lisp/eieio-base.el (clone): Use eieio-object-class
instead of obsolete function class-of.

5 years agoFix compilation warning in ede.el
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:39:28 +0000 (16:39 +0200)]
Fix compilation warning in ede.el

* lisp/cedet/ede/auto.el (ede-project-autoload): Inherit from
eieio-named, because we want to set the object name...

* lisp/cedet/ede.el (ede-new): ... which we do here, and fix the
compilation warning about the obsolete
eieio-object-set-name-string function.

5 years agoRevert "Fix compilation warning in ede.el"
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:29:52 +0000 (16:29 +0200)]
Revert "Fix compilation warning in ede.el"

This reverts commit 7bbb56bc430465a6807a8129a322c704c89e3eba.

The commit led to a bootstrap error.

5 years agoFix compilation warning in ede.el
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:23:25 +0000 (16:23 +0200)]
Fix compilation warning in ede.el

* lisp/cedet/ede.el (ede-new): ... which we do here, and fix the
compilation warning about the obsolete
eieio-object-set-name-string function.

* lisp/cedet/ede/auto.el (ede-project-autoload): Inherit from
eieio-named, because we want to set the object name...

5 years agoRemove obsolete name arg from two constructors
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:06:34 +0000 (16:06 +0200)]
Remove obsolete name arg from two constructors

* lisp/cedet/semantic/grammar.el
(semantic-analyze-current-context): Remove obsolete name arg.

* lisp/cedet/srecode/insert.el (srecode--insert-into-buffer): Ditto.

5 years agoCompilation fix for previous change to eieio-opt
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:04:51 +0000 (16:04 +0200)]
Compilation fix for previous change to eieio-opt

* lisp/emacs-lisp/eieio-opt.el (cl-extra): Require for
cl--describe-class.

5 years agoFix compilation warning in eieio-opt
Lars Ingebrigtsen [Sun, 16 Jun 2019 14:02:42 +0000 (16:02 +0200)]
Fix compilation warning in eieio-opt

* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Don't
use obsolete function eieio-help-class.

5 years agoAvoid "unknown slot" compilation warning in eieio-custom
Lars Ingebrigtsen [Sun, 16 Jun 2019 13:53:03 +0000 (15:53 +0200)]
Avoid "unknown slot" compilation warning in eieio-custom

* lisp/emacs-lisp/eieio-custom.el
(eieio-read-customization-group): Slot `name' may not exist in all
classes, so protect against that (and avoid a compilation warning
about it).

5 years agoAvoid a compilation warning in srt-mode.el
Lars Ingebrigtsen [Sun, 16 Jun 2019 13:42:30 +0000 (15:42 +0200)]
Avoid a compilation warning in srt-mode.el

* lisp/cedet/srecode/srt-mode.el (srecode-macro-help): Add hack to
avoid compilation warning about slot that has to exist at this
point.

5 years agoFix one of the tags/xref warnings in viper-ex.el
Lars Ingebrigtsen [Sun, 16 Jun 2019 13:21:10 +0000 (15:21 +0200)]
Fix one of the tags/xref warnings in viper-ex.el

* lisp/emulation/viper-ex.el (ex-tag): Avoid a compilation warning
about find-tag-other-window.

5 years agoDeclare function in esh-mode before #'-ing it
Lars Ingebrigtsen [Sun, 16 Jun 2019 13:14:26 +0000 (15:14 +0200)]
Declare function in esh-mode before #'-ing it

* lisp/eshell/esh-mode.el (ansi-color-apply-text-property-face):
Declare to avoid a compilation warning.

5 years agoAvoid obsolete function in reftex-global.el
Lars Ingebrigtsen [Sun, 16 Jun 2019 13:09:52 +0000 (15:09 +0200)]
Avoid obsolete function in reftex-global.el

* lisp/textmodes/reftex-global.el (reftex-query-replace-document):
Rewrite to use fileloop directly to avoid the obsolete function
tags-query-replace.

5 years agoUse fileloop directly in vc-dir to avoid obsolete function
Lars Ingebrigtsen [Sun, 16 Jun 2019 13:07:37 +0000 (15:07 +0200)]
Use fileloop directly in vc-dir to avoid obsolete function

* lisp/vc/vc-dir.el (vc-dir-query-replace-regexp): Rewrite to use
fileloop directly to avoid the obsolete function
tags-query-replace.

5 years agoMaintain c-syntax-table-hwm when changing syntax-table text properties
Alan Mackenzie [Sun, 16 Jun 2019 11:52:01 +0000 (11:52 +0000)]
Maintain c-syntax-table-hwm when changing syntax-table text properties

* lisp/progmodes/cc-defs.el: (c-syntax-table-hwm): Move the defvar to here
from cc-mode.el, since the variable is needed at compile time in
c-emacs-features.
(c-min-property-position): New macro.
(c-put-char-property, c-clear-char-property, c-clear-char-properties)
(c-clear-char-property-with-value-function)
(c-clear-char-property-with-value-on-char-function)
(c-put-char-properties-on-char): Adjust c-syntax-table-hwm appropriately when
syntax-table text properties are changed.

* lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Remove the now
unneeded setting of c-syntax-table-hwm, and the unneeded declaration of
c-syntax-table-hwm.

5 years agoSay how Tramp is packaged with Emacs
Michael Albinus [Sun, 16 Jun 2019 08:32:46 +0000 (10:32 +0200)]
Say how Tramp is packaged with Emacs

* doc/misc/tramp.texi (Obtaining Tramp):
Mention `customize-package-emacs-version-alist'.

5 years agoFix regressions in xref-find-definitions and ...-other-window
Dmitry Gutov [Sun, 16 Jun 2019 00:49:46 +0000 (03:49 +0300)]
Fix regressions in xref-find-definitions and ...-other-window

* lisp/progmodes/xref.el:
(xref--display-buffer-in-other-window)
(xref--display-buffer-in-window): New functions.
(xref--show-pos-in-buf): Use them (bug#33870)

5 years agoAdd MESSAGE string to bookmark-errors (bug#23408)
Stefan Kangas [Wed, 12 Jun 2019 16:42:46 +0000 (18:42 +0200)]
Add MESSAGE string to bookmark-errors (bug#23408)

* lisp/bookmark.el (bookmark-errors): Add MESSAGE parameter string.

5 years agoAlways try to display tree-widget with images (Bug#36147)
Noam Postavsky [Wed, 12 Jun 2019 11:31:23 +0000 (07:31 -0400)]
Always try to display tree-widget with images (Bug#36147)

Checking the result of display-images-p doesn't make sense if the
display capabilities when loading the file are different from the
display used to actually look at the widget (which is easily possible
now that Emacs supports both tty and graphic frames in the same
instance).
* lisp/tree-widget.el (tree-widget-image-enable): Default to t,
always.  This still shows text on displays that can't show images.

5 years agoAllow trailing whitespace in --eval argument (Bug#36219)
Noam Postavsky [Sat, 15 Jun 2019 12:40:23 +0000 (08:40 -0400)]
Allow trailing whitespace in --eval argument (Bug#36219)

* lisp/startup.el (command-line-1): Don't complain about trailing
garbage if it's only space, tab, or newline characters.

5 years ago* lisp/net/trampver.el (customize-package-emacs-version-alist):
Michael Albinus [Sat, 15 Jun 2019 19:47:41 +0000 (21:47 +0200)]
* lisp/net/trampver.el (customize-package-emacs-version-alist):

Adapt Tramp version integrated in Emacs 26.3.

5 years ago* src/xfaces.c (dump_realized_face): Fix incorrect format string.
Philipp Stephani [Sat, 15 Jun 2019 17:02:25 +0000 (19:02 +0200)]
* src/xfaces.c (dump_realized_face): Fix incorrect format string.

5 years ago* src/xfaces.c (dump_realized_face): Fix format specifier.
Philipp Stephani [Sat, 15 Jun 2019 16:53:20 +0000 (18:53 +0200)]
* src/xfaces.c (dump_realized_face): Fix format specifier.

5 years ago* src/nsterm.m (ns_row_rect): Remove unused variable ‘f.’
Philipp Stephani [Sat, 15 Jun 2019 16:50:50 +0000 (18:50 +0200)]
* src/nsterm.m (ns_row_rect): Remove unused variable ‘f.’

5 years ago; Merge from origin/emacs-26
Glenn Morris [Sat, 15 Jun 2019 16:50:33 +0000 (09:50 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

200f63c (origin/emacs-26) tramp-test42-auto-load: Add expected-result.

5 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 15 Jun 2019 16:50:33 +0000 (09:50 -0700)]
Merge from origin/emacs-26

7a8f22b * test/lisp/url/url-file-tests.el (url-file): Use file:///, n...
0c5f6c6 Fix doc of srecompile-compile-split-code (Bug#36200)

5 years ago; Merge from origin/emacs-26
Glenn Morris [Sat, 15 Jun 2019 16:50:33 +0000 (09:50 -0700)]
; Merge from origin/emacs-26

The following commits were skipped:

e587338 Make sure Gnus imap group names are decoded before searching
746d42f Remove failing test erroneously added in backport

5 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 15 Jun 2019 16:50:33 +0000 (09:50 -0700)]
Merge from origin/emacs-26

6242324 * lisp/net/sieve-manage.el (sieve-manage-parse-capability): D...

5 years ago; Merge from origin/emacs-26
Glenn Morris [Sat, 15 Jun 2019 16:50:32 +0000 (09:50 -0700)]
; Merge from origin/emacs-26

The following commits were skipped:

9473231 (tag: emacs-26.2.90) ; * lisp/ldefs-boot.el: Update.
fb1c966 Bump Emacs version to 26.2.90
2b705cd * etc/AUTHORS: Update.

5 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 15 Jun 2019 16:50:32 +0000 (09:50 -0700)]
Merge from origin/emacs-26

f53ce87 ; ChangeLog.3 update
eca2677 Fix description of 'display-buffer-in-previous-window' again ...
7be50cd Consistently use @minus{} for negative arguments

# Conflicts:
# ChangeLog.3

5 years agoUpdate hash value in pdumper.c
Eli Zaretskii [Sat, 15 Jun 2019 16:45:29 +0000 (19:45 +0300)]
Update hash value in pdumper.c

* src/pdumper.c (dump_fwd_buffer_obj) [CHECK_STRUCTS]: Update
the hash in HASH_Lisp_Buffer_Objfwd.  (Bug#36225)

5 years agoImprove error message when dmpstruct.h needs to be updated
Eli Zaretskii [Sat, 15 Jun 2019 16:28:51 +0000 (19:28 +0300)]
Improve error message when dmpstruct.h needs to be updated

* src/pdumper.c (dump_cons, dump_interval_tree, dump_string)
(dump_marker, dump_overlay, dump_finalizer)
(dump_bignum, dump_float, dump_fwd_int, dump_fwd_bool)
(dump_fwd_obj, dump_fwd_buffer_obj, dump_fwd_kboard_obj)
(dump_fwd, dump_blv, dump_symbol, dump_vectorlike_generic)
(dump_hash_table, dump_buffer, dump_bool_vector, dump_subr)
(dump_vectorlike, dump_object, dump_charset) [CHECK_STRUCTS]:
Make the error message more specific where to find the comment
to CHECK_STRUCTS.

5 years agoProbably fix the `helper' argument in feedmail.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:46:23 +0000 (17:46 +0200)]
Probably fix the `helper' argument in feedmail.el

* lisp/mail/feedmail.el (feedmail-queue-send-edit-prompt-inner):
Return the helper function (instead of the symbol `helper') so
that the caller can actually call it.

5 years agoFix compilation warning in esh-cmd.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:42:09 +0000 (17:42 +0200)]
Fix compilation warning in esh-cmd.el

* lisp/eshell/esh-cmd.el (pcomplete--here): Declare function to
avoid byte compilation warning, which is what erc-notify.el also
does in a similar situation.

5 years agoFix build warning in srecode/srt-mode
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:34:48 +0000 (17:34 +0200)]
Fix build warning in srecode/srt-mode

* lisp/cedet/srecode/srt-mode.el (srecode-inserter-prin-example):
Declare and require before use.

5 years agoSilence warnings about obsolete functions in obsolete/vip.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:13:38 +0000 (17:13 +0200)]
Silence warnings about obsolete functions in obsolete/vip.el

* lisp/obsolete/vip.el (ex-tag): Silence warnings about obsolete
functions because this is an obsolete file.

5 years agoSuppress compilation warnings in obsolete/otodo-mode.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:12:10 +0000 (17:12 +0200)]
Suppress compilation warnings in obsolete/otodo-mode.el

* lisp/obsolete/otodo-mode.el (lexical): Suppress warnings about
non-prefixed variables because this file is obsolete.

5 years agoSilence warning in obsolete/complete.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:10:53 +0000 (17:10 +0200)]
Silence warning in obsolete/complete.el

* lisp/obsolete/complete.el (PC-do-completion): Suppress warning
about obsolete variable in obsolete function.

5 years agoMake obsolete function zip-lists work again
Lars Ingebrigtsen [Sat, 15 Jun 2019 15:09:08 +0000 (17:09 +0200)]
Make obsolete function zip-lists work again

* lisp/obsolete/cl-compat.el (zip-lists): Use cl-mapcan instead of
mapcan; mapcan now takes only two parameters.

5 years agoSuppress compilation warning in supercite.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:59:21 +0000 (16:59 +0200)]
Suppress compilation warning in supercite.el

* lisp/mail/supercite.el (curline): Suppress warning about
non-prefixed variable used by forms in the `sc-mail-glom-frame'
variable.

5 years agoSuppress warning in mailheader.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:54:51 +0000 (16:54 +0200)]
Suppress warning in mailheader.el

* lisp/mail/mailheader.el (headers): Suppress warning about
non-prefixed variable part of the advertised interface.

5 years agoSuppress warning about non-prefixed variable in mailalias.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:53:52 +0000 (16:53 +0200)]
Suppress warning about non-prefixed variable in mailalias.el

* lisp/mail/mailalias.el (patters): Suppress warning about
non-prefixed variable used by `mail-complete-alist'.

5 years agoFix byte compilation warning in bindat.el
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:33:05 +0000 (16:33 +0200)]
Fix byte compilation warning in bindat.el

* lisp/emacs-lisp/bindat.el (bindat--unpack-item): Avoid a byte
compilation warning by using unibyte-string instead of concat +
string-make-unibyte.

5 years agoAvoid printing entering/leaving messages in second stage bootstrap
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:29:23 +0000 (16:29 +0200)]
Avoid printing entering/leaving messages in second stage bootstrap

* src/Makefile.in (%.elc): Default to not printing the
entering/leaving lines when compiling .el files in the second
stage of bootstrapping Emacs.  V=1 will output them.

5 years agoAlso test unpacking
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:10:28 +0000 (16:10 +0200)]
Also test unpacking

5 years agoRefactor for reuse
Lars Ingebrigtsen [Sat, 15 Jun 2019 14:06:38 +0000 (16:06 +0200)]
Refactor for reuse

5 years agoNew file to test bindat functions
Lars Ingebrigtsen [Sat, 15 Jun 2019 13:57:01 +0000 (15:57 +0200)]
New file to test bindat functions

5 years agoSuppress warning about `entry' in calendar
Lars Ingebrigtsen [Sat, 15 Jun 2019 12:30:50 +0000 (14:30 +0200)]
Suppress warning about `entry' in calendar

* lisp/calendar/cal-china.el (entry):
* lisp/calendar/cal-hebrew.el (entry): Suppress warning about
dynamically bound `entry', which has to be bound for
diary-chinese-anniversary and diary-hebrew-birthday to work.
These function can be used in the sexp part of users' diary files.

5 years agoSuppress warning about prefixless date variable in calendar
Lars Ingebrigtsen [Sat, 15 Jun 2019 12:22:38 +0000 (14:22 +0200)]
Suppress warning about prefixless date variable in calendar

* lisp/calendar/lunar.el (date):
* lisp/calendar/cal-persia.el (date):
* lisp/calendar/cal-mayan.el (date):
* lisp/calendar/cal-julian.el (date):
* lisp/calendar/cal-iso.el (date):
* lisp/calendar/cal-islam.el (date):
* lisp/calendar/cal-hebrew.el (date):
* lisp/calendar/cal-french.el (date):
* lisp/calendar/cal-coptic.el (date):
* lisp/calendar/cal-china.el (date):
* lisp/calendar/cal-bahai.el (date): Suppress warning about this
prefix-less dynamic variable, because it's part of the documented
calling convention used in the sexp part of users' diary files.

5 years agoClean up verilog-mode.el documentation examples to match behavior.
Wilson Snyder [Sat, 15 Jun 2019 12:16:05 +0000 (08:16 -0400)]
Clean up verilog-mode.el documentation examples to match behavior.

* verilog-mode.el (verilog-auto, verilog-auto-arg)
(verilog-auto-ascii-enum, verilog-auto-inout)
(verilog-auto-inout-comp, verilog-auto-inout-in)
(verilog-auto-inout-modport, verilog-auto-inout-module)
(verilog-auto-inout-param, verilog-auto-input)
(verilog-auto-insert-lisp, verilog-auto-inst)
(verilog-auto-inst-param, verilog-auto-inst-param-value)
(verilog-auto-output, verilog-auto-output-every, verilog-auto-reg)
(verilog-auto-reg-input, verilog-auto-reset, verilog-auto-sense)
(verilog-auto-tieoff, verilog-auto-undef, verilog-auto-unused)
(verilog-auto-wire, verilog-inject-auto, verilog-read-sub-decls):
Clean up documentation examples to match behavior.

5 years agoMake url-tramp more robust
Michael Albinus [Sat, 15 Jun 2019 10:19:01 +0000 (12:19 +0200)]
Make url-tramp more robust

* lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp)
(url-tramp-convert-tramp-to-url): Check, that obj is non-nil.

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 15 Jun 2019 10:16:36 +0000 (13:16 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoRemove another variable obsolete since Emacs 22
Stefan Kangas [Mon, 10 Jun 2019 01:42:27 +0000 (03:42 +0200)]
Remove another variable obsolete since Emacs 22

* lisp/progmodes/cc-langs.el: Remove obsolete variable
c-opt-op-identitier-prefix.
* etc/NEWS: Announce it.  (Bug#36173)

5 years agoLet tramp-archive unmount clean
Michael Albinus [Sat, 15 Jun 2019 09:46:04 +0000 (11:46 +0200)]
Let tramp-archive unmount clean

* lisp/net/tramp-archive.el (tramp-archive-cleanup-hash):
Don't check for a proper method.

5 years agoMake Tramp compatible to recent progress-reporter-update
Michael Albinus [Sat, 15 Jun 2019 09:38:13 +0000 (11:38 +0200)]
Make Tramp compatible to recent progress-reporter-update

* lisp/net/tramp-compat.el (tramp-compat-progress-reporter-update):
New defalias.

* lisp/net/tramp.el (tramp-progress-reporter-update): Add optional SUFFIX.

5 years agoSome changes in process output read of Tramp
Michael Albinus [Sat, 15 Jun 2019 09:33:16 +0000 (11:33 +0200)]
Some changes in process output read of Tramp

* lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
Read pending output.

* test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process):
Use a timeout when reading process output.

5 years agoTag remote autorevert tests as unstable
Michael Albinus [Sat, 15 Jun 2019 09:08:05 +0000 (11:08 +0200)]
Tag remote autorevert tests as unstable

* test/lisp/autorevert-tests.el (auto-revert--timeout):
Derive value from `auto-revert-interval'.
(auto-revert--deftest-remote): Tag it as `:unstable'.
(auto-revert-test05-global-notify, auto-revert-test06-write-file):
Suppress final newline.  Use `auto-revert--timeout'.

5 years agoRemove Lucid Emacs support from bookmark.el
Stefan Kangas [Wed, 12 Jun 2019 08:36:10 +0000 (10:36 +0200)]
Remove Lucid Emacs support from bookmark.el

* lisp/bookmark.el: Remove Lucid Emacs support.
(Bug#36179)

5 years agoImprove documentation of hash-code functions
Eli Zaretskii [Sat, 15 Jun 2019 08:16:49 +0000 (11:16 +0300)]
Improve documentation of hash-code functions

* src/fns.c (Fsxhash_eq, Fsxhash_eql, Fsxhash_equal):
* doc/lispref/hash.texi (Defining Hash): Warn against assuming
that sxhash returns consistent results.

5 years agotramp-test42-auto-load: Add expected-result.
Juanma Barranquero [Sat, 15 Jun 2019 05:23:25 +0000 (07:23 +0200)]
tramp-test42-auto-load: Add expected-result.

* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Expect a failed result if remote file access is not enabled,
as it happens while doing the test on Windows.

5 years ago* configure.ac: Lower required cairo version to 1.8.0.
YAMAMOTO Mitsuharu [Sat, 15 Jun 2019 03:46:30 +0000 (12:46 +0900)]
* configure.ac: Lower required cairo version to 1.8.0.

5 years agoRemove non-Xdbe double-buffering code on cairo
YAMAMOTO Mitsuharu [Sat, 15 Jun 2019 03:44:56 +0000 (12:44 +0900)]
Remove non-Xdbe double-buffering code on cairo

* src/xterm.c (x_begin_cr_clip, x_update_end) [USE_CAIRO]: Don't do
handcrafted double-buffering with image surface.

5 years agoRework x_scroll_run on cairo
YAMAMOTO Mitsuharu [Sat, 15 Jun 2019 03:36:26 +0000 (12:36 +0900)]
Rework x_scroll_run on cairo

* src/xterm.c (x_scroll_run) [USE_CAIRO]: Use FRAME_CR_CONTEXT or surface type
for conditions to call XCopyArea rather than FRAME_X_DOUBLE_BUFFERED_P.
Set compositing operator to CAIRO_OPERATOR_SOURCE when copying image.

5 years ago* test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://.
Juanma Barranquero [Sat, 15 Jun 2019 03:29:03 +0000 (05:29 +0200)]
* test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://.

5 years agoFix doc of srecompile-compile-split-code (Bug#36200)
Juanma Barranquero [Fri, 14 Jun 2019 23:37:27 +0000 (01:37 +0200)]
Fix doc of srecompile-compile-split-code (Bug#36200)

* lisp/cedet/srecode/compile.el (srecode-compile-split-code):
Remove leftover text from docstring.

5 years agoRevert "Silence okuri-nasi count-up messaging during compilation"
Lars Ingebrigtsen [Fri, 14 Jun 2019 18:59:31 +0000 (20:59 +0200)]
Revert "Silence okuri-nasi count-up messaging during compilation"

This takes long enough on some systems that the messages are useful.

This reverts commit 1d2e4d22c922f94d6f4b75a5ead18cbc679c5dfe.

5 years agoFix problem in remote file notification
Michael Albinus [Fri, 14 Jun 2019 17:45:00 +0000 (19:45 +0200)]
Fix problem in remote file notification

* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter): Do not kill the process.
Let `file-notify-rm-watch' do the job.

* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test09-watched-file-in-watched-dir): Do not
special-case remote files.

5 years agoSilence okuri-nasi count-up messaging during compilation
Lars Ingebrigtsen [Fri, 14 Jun 2019 15:14:49 +0000 (17:14 +0200)]
Silence okuri-nasi count-up messaging during compilation

* lisp/international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Remove
messaging while compilation to make compilation more regular.

5 years agoMake sure Gnus imap group names are decoded before searching
Eric Abrahamsen [Thu, 13 Jun 2019 22:09:24 +0000 (15:09 -0700)]
Make sure Gnus imap group names are decoded before searching

do not merge (fix unnecessary in Emacs 27)

* lisp/gnus/nnir.el (nnir-run-imap): Ensure that non-ascii group names
  have been fully decoded before passing them to imap search.