1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-09 09:16:02 -08:00
Commit graph

136824 commits

Author SHA1 Message Date
Stefan Kangas
4ec926dc03 Remove XEmacs support from bookmark.el
* lisp/bookmark.el (bookmark-store): Remove XEmacs compat code
(bug#36189).
2019-06-13 16:02:39 +02:00
Lars Ingebrigtsen
e6e4a05087 Use cl-print-object instead of object-print throughout cedet
* lisp/cedet/semantic/db-find.el (semanticdb-find-log-activity):
Ditto.

* lisp/cedet/semantic/analyze/debug.el
(semantic-analyzer-debug-insert-include-summary): Ditto.

* lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment)
(semantic-c-describe-environment)
(semantic-c-describe-environment): Ditto.

* lisp/cedet/semantic/decorate/include.el
(semantic-decoration-fileless-include-describe): Ditto.
(semantic-decoration-all-include-summary): Ditto.

* lisp/cedet/srecode/insert.el
(srecode-insert-variable-secondname-handler): Use cl-print-object
instead of object-print.
2019-06-13 15:58:32 +02:00
Lars Ingebrigtsen
67b261d2da erc-dcc.el minor clean-ups
* lisp/erc/erc-dcc.el: Remove outdated comments.
(erc-dcc-get-file): Remove XEmacs compat code.
2019-06-13 14:37:25 +02:00
Lars Ingebrigtsen
390c8805c2 Fix erc-dcc server-close code and fix compilation warning
* lisp/erc/erc-dcc.el (erc-dcc-get-filter): We receive unibyte
data, so no need to convert to unibyte.
(erc-dcc-send-filter): Kill the process before killing the buffer
so that we're not queried about killing the process.
2019-06-13 14:35:30 +02:00
Lars Ingebrigtsen
bc7e771f9b Make erc-dcc-server work again by making synchronous
* lisp/erc/erc-dcc.el (erc-dcc-server): :server and :nowait can't
be mixed, so remove the :nowait.
2019-06-13 14:26:18 +02:00
Pip Cet
bfec493efe Escape newlines when printing functions in timer list
* timer-list.el (list-timers): Bind `print-escape-newlines' to avoid
newlines in printed representation (bug#36187).
2019-06-13 14:11:39 +02:00
Lars Ingebrigtsen
f660616f82 Compilation fix for previous change 2019-06-13 13:56:16 +02:00
Lars Ingebrigtsen
bb5641d3cc Compilation warning fix for disass.el
* lisp/emacs-lisp/disass.el (disassemble-1): Remove a
string-as-unibyte that probably doesn't do anything, because the
string in question should be unibyte anyway.  If the assert fails,
revert the patch.
2019-06-13 13:54:53 +02:00
Alan Mackenzie
25b1376516 CC Mode: replace an erroneous re-search-forward with search-forward
Move two declarations to a more suitable point in the cc-engine.el.

* lisp/progmodes/cc-engine.el (c-after-change-unmark-raw-strings): Change an
re-search-forward to search-forward.
(c-semi-lit-near-cache, c-semi-near-cache-limit): Move the declarations.
2019-06-13 10:06:33 +00:00
Eli Zaretskii
2f4b4c8571 Fix display of Hebrew text with precomposed characters
* lisp/language/hebrew.el (base): Include precomposed
Hebrew characters from the Alphabetic Presentation Forms in
the composition patterns.  (Bug#36171)
2019-06-13 12:41:37 +03:00
Eli Zaretskii
52305bcb51 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2019-06-13 11:53:18 +03:00
Eli Zaretskii
769e9fa5ae Fix text shaping of precomposed characters with HarfBuzz
* src/hbfont.c (hbfont_shape): Fix setting TO of lglyph for
the case when Lisp shape-gstring function performed some
compositions by itself.  This happens with hebrew.el.  See
https://lists.freedesktop.org/archives/harfbuzz/2019-June/007396.html
for the details of the problem this solves.
2019-06-13 11:49:30 +03:00
Alan Mackenzie
95c400a508 Move declaration of c-syntax-table-hwm to avoid compiler warnings.
This variable was declared after an invocation of a defsubst which used it,
the defsubst being in another file.

* lisp/progmodes/cc-mode (c-syntax-table-hwm): Move the declaration to earlier
in the file.
2019-06-13 08:46:30 +00:00
Glenn Morris
4c3e78a9f4 Allow for line breaks in a bytecomp test
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
Warnings from the byte compiler may be filled.
2019-06-12 19:31:00 -07:00
Lars Ingebrigtsen
4752de8349 Avoid string-make-multibyte in ps-mode.el
* lisp/progmodes/ps-mode.el (ps-mode-octal-region): Avoid usage of
string-make-multibyte, but work in both unibyte and multibyte buffers.
2019-06-13 03:12:03 +02:00
Lars Ingebrigtsen
c25e3754ed Add more ps-mode octal tests
* test/lisp/progmodes/ps-mode-tests.el
(ps-mode-test-octal-region-multibyte): New test.
2019-06-13 03:03:26 +02:00
Lars Ingebrigtsen
986e333eaa Revert previous ps-mode.el change
* lisp/progmodes/ps-mode.el (ps-mode-octal-region): Revert
previous change because the `string-make-unibyte' insertion was
the previous single change (in 2013) to this file, so it must have
some subtle meaning or other.
2019-06-13 02:54:24 +02:00
Lars Ingebrigtsen
5b7ec43c61 Add ps-mode-tests.el and remove a compilation warning
* lisp/progmodes/ps-mode.el (ps-mode-octal-region): Remove a
string-make-unibyte that apparently had no effect here.
* test/lisp/progmodes/ps-mode-tests.el: New file.
2019-06-13 02:48:41 +02:00
Lars Ingebrigtsen
b334124a23 Suppress warnings in tildify.el
* lisp/textmodes/tildify.el (tildify--deprecated-ignore-evironments):
(tildify-tildify, tildify-mode): Suppress warnings about obsolete
internal function `tildify--pick-alist-entry'.  Apparently these
semi-deprecated functions rely on each other.
2019-06-13 02:29:57 +02:00
Lars Ingebrigtsen
db2bd19c45 Add comment to clarify the use of `str' 2019-06-13 02:29:57 +02:00
Glenn Morris
fb69593f60 Revert "Compilation warning fix for byte-run.el"
* lisp/emacs-lisp/byte-run.el (macro-declaration-function):
Revert change that causes a bootstrap failure.

; Ref eg https://hydra.nixos.org/build/94678649
2019-06-12 17:20:50 -07:00
Lars Ingebrigtsen
c717a5bf53 Fix compilation warnings in rfc2104
* lisp/net/rfc2104.el (rfc2104-hash): Remove superflous calls to
string-make-unibyte and avoid two compilation warnings.
2019-06-13 01:53:58 +02:00
Lars Ingebrigtsen
73ab8f4b8c New file rfc2104-tests.el
* test/lisp/net/rfc2104-tests.el: New file to test rfc2104 hashes.
2019-06-13 01:53:58 +02:00
Glenn Morris
e2e63dc3f0 Give more information in a bytecomp test failure
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
More informative failure messages.
2019-06-12 16:49:06 -07:00
Lars Ingebrigtsen
d16b73fb4a Fix compilation warning in qp.el
* lisp/mail/qp.el (quoted-printable-encode-region): No need to
convert the regexp to multibyte before searching.
2019-06-13 01:43:58 +02:00
Lars Ingebrigtsen
982af7f516 Fix warning about obsolete func calling obsolete func in etags.el
* lisp/progmodes/etags.el (find-tag-other-frame): Don't give a
warning about an obsolete function calling another obsolete function.
2019-06-13 01:33:27 +02:00
Lars Ingebrigtsen
9645b5752a Compilation warning fix in feedmail.el
* lisp/mail/feedmail.el (feedmail-scroll-buffer): Remove XEmacs
compat code (that gave a compilation warning).
2019-06-13 01:29:27 +02:00
Lars Ingebrigtsen
1743da11d0 Remove XEmacs compat code from mml.el that gave a compilation warning
* lisp/gnus/mml.el (mml-mode): Remove XEmacs compat code
2019-06-13 01:27:36 +02:00
Lars Ingebrigtsen
7556772ac2 message.el byte compilation warning fix
* lisp/gnus/message.el (message-inhibit-body-encoding): Move
earlier to avoid compilation warning.
2019-06-13 01:24:47 +02:00
Lars Ingebrigtsen
e4636297c6 Compilation warning fix for byte-run.el
* lisp/emacs-lisp/byte-run.el (macro-declaration-function):
Suppress warning about obsolete function used by obsolete variable.
2019-06-13 01:14:47 +02:00
Lars Ingebrigtsen
afa47a6dd0 todo-mode.el compilation warning fix
* lisp/calendar/todo-mode.el (hl-line-highlight): Declare to avoid
compilation warning.
2019-06-13 01:12:23 +02:00
Lars Ingebrigtsen
6d63f68f33 Touch ups to the XEmacs deletion patch for idlw-shell.el
* lisp/progmodes/idlw-shell.el (idlwave-xemacs-hack-mouse-track):
Fix up previous obsoletion.
2019-06-13 00:16:17 +02:00
Lars Ingebrigtsen
1f03c52173 Remove XEmacs support from idlw-shell.el
* lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file)
(idlwave-shell-mouse-examine)
(idlwave-xemacs-hack-mouse-track, idlwave-display-buffer)
(idlwave-shell-debug-line-map)
(idlwave-shell-make-new-bp-overlay, idlwave-shell-mode-map):
Remove XEmacs support.
2019-06-13 00:08:57 +02:00
Lars Ingebrigtsen
2c139c9a09 Remove XEmacs support from ido.el
* lisp/ido.el (ido-active, ido-completion-help)
(ido-minibuffer-setup): Remove XEmacs support.
2019-06-12 23:38:55 +02:00
Lars Ingebrigtsen
2034bfdf63 Remove compat code for XEmacs and pre-Emacs 20 Emacs in pcomplete.el
* lisp/pcomplete.el (pcomplete-event-matches-key-specifier-p)
(pcomplete-read-event, pcomplete-show-completions): Remove XEmacs
support and mark now-trivial defaliases as obsolete.
2019-06-12 23:26:56 +02:00
Lars Ingebrigtsen
6317c2563c Remove XEmacs support from dig.el
* lisp/net/dig.el (dig-mode): Remove XEmacs support.
2019-06-12 23:26:56 +02:00
Lars Ingebrigtsen
dee0ed52c0 Remove XEmacs support from goto-addr.el
* lisp/net/goto-addr.el (goto-address-highlight-keymap): Remove
XEmacs support.
2019-06-12 23:26:56 +02:00
Lars Ingebrigtsen
9fb448e00c Remove XEmacs support from dns.el
* lisp/net/dns.el (dns-read-string-name, dns-write, dns-read)
(dns-make-network-process, dns-query): Remove XEmacs support.
2019-06-12 23:26:56 +02:00
Lars Ingebrigtsen
6fbfd36bf4 Remove XEmacs compat code from tempo.el
* lisp/tempo.el (tempo-insert-template): Remove XEmacs compat code.
2019-06-12 23:26:56 +02:00
Alan Mackenzie
468517c8b8 CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes
* lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Maintain the new
variable c-syntax-table-hwm after buffer changes.

* lisp/progmodes/cc-mode.el (c-syntax-table-hwm): New variable.
(c-before-change): Set c-syntax-table-hwm to "infinity".
(c-after-change): Call syntax-ppss-flush-cache, just before a font locking is
due to take place.
2019-06-12 19:17:22 +00:00
Lars Ingebrigtsen
2d71e68428 Restore image scaling support when there's no native image scaling
* lisp/net/shr.el (shr--image-type): New function.
(shr-rescale-image): Use it to allow image scaling on Emacsen with
ImageMagick support that does not have native image scaling support.
2019-06-12 19:00:43 +02:00
Lars Ingebrigtsen
26f2b1faaa Rewrite the kmacro register function to avoid using obsolete functions
* lisp/kmacro.el (kmacro-register): New struct to replace the
general registerv struct.
(register-val-jump-to, register-val-describe)
(register-val-insert): New methods to implement the register
interface.
(kmacro-to-register): Use the kmacro-register struct.
2019-06-12 18:21:35 +02:00
Lars Ingebrigtsen
48178edeed (beginning-of-defun-raw): Suppress warning about syntax-begin-function
* lisp/emacs-lisp/lisp.el (beginning-of-defun-raw):
font-lock-compile-keywords also suppresses warnings about the
obsolete syntax-begin-function variable, so suppress the only
other use not in syntax.el.
2019-06-12 17:46:06 +02:00
Lars Ingebrigtsen
e4fd2cfc72 Suppress warning about pi not having a prefix
* lisp/emacs-lisp/float-sup.el (pi): Suppress warning about this
obsolete variable not having a prefix.
2019-06-12 17:46:06 +02:00
Richard Copley
9744f8df04 * doc/lispref/text.texi (Base 64): Fix typos.
Copyright-paperwork-exempt: yes.
2019-06-12 18:33:25 +03:00
Lars Ingebrigtsen
669ca75059 Suppress warning about obsolete function custom-show
* lisp/cus-edit.el (custom-variable-value-create): Suppress
warning about obsolete function custom-show.  The widget this
supports has been obsolete since Emacs 24, but we should perhaps
be very conservative about removing widget types, so suppress the
warning instead of removing the widget type.
2019-06-12 16:33:00 +02:00
Lars Ingebrigtsen
a5cc98c38e Suppress warning in display-completion-list about itself
* lisp/minibuffer.el (display-completion-list):
`display-completion-list' calls itself with the old, obsolete
callargs, so suppress this warning.
2019-06-12 16:18:34 +02:00
Lars Ingebrigtsen
aa41909c85 Suppress interactive-only warnings in epa*.el
* lisp/epa-mail.el (epa-mail-decrypt, epa-mail-verify)
(epa-mail-sign, epa-mail-encrypt): Ditto.

* lisp/epa.el (epa-verify-cleartext-in-region): Suppress warnings
about calling interactive-only functions, because these are
interactive-only thin wrappers around those functions.
2019-06-12 16:17:25 +02:00
Lars Ingebrigtsen
f9b61ba72e ehelp.el: Suppress warning
* lisp/ehelp.el (electric-help-execute-extended): Suppress warning
about `execute-extended-command' only being interactive, because
we're still using it interactively, but via a wrapper.
2019-06-12 16:15:30 +02:00
Lars Ingebrigtsen
f2071b6de4 Add the new macro with-suppressed-warnings
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): New macro.

* doc/lispref/compile.texi (Compiler Errors): Document
with-suppressed-warnings and deemphasise with-no-warnings
slightly.

* lisp/emacs-lisp/bytecomp.el (byte-compile--suppressed-warnings):
New internal variable.
(byte-compile-warning-enabled-p): Heed
byte-compile--suppressed-warnings, bound via with-suppressed-warnings.
(byte-compile-initial-macro-environment): Provide a macro
expansion of with-suppressed-warnings.
(byte-compile-file-form-with-suppressed-warnings): New byte hunk
handler for the suppressed symbol machinery.
(byte-compile-suppressed-warnings): Ditto for the byteop.
(byte-compile-file-form-defmumble): Ditto.
(byte-compile-form, byte-compile-normal-call)
(byte-compile-normal-call, byte-compile-variable-ref)
(byte-compile-set-default, byte-compile-variable-set)
(byte-compile-function-form, byte-compile-set-default)
(byte-compile-warn-obsolete, byte-compile--declare-var): Pass the
symbol being warned in to byte-compile-warning-enabled-p.

* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): New
function.
(bytecomp-test--with-suppressed-warnings): Tests.
2019-06-12 15:59:19 +02:00