1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

136852 commits

Author SHA1 Message Date
Lars Ingebrigtsen
5b525f4f56 Use cl-typep instead of obsolete predicate functions throughout cedet
* lisp/cedet/srecode/dictionary.el (srecode-create-dictionary):
(srecode-dictionary-add-entries):
(srecode-compound-toString):
(srecode-dump):
* lisp/cedet/srecode/compile.el (srecode-dump-code-list):
* lisp/cedet/semantic/util.el (semantic-something-to-tag-table):
* lisp/cedet/semantic/db-typecache.el (semanticdb-typecache-length):
* lisp/cedet/semantic/db-ref.el (semanticdb-check-references):
* lisp/cedet/semantic/db-find.el
(semanticdb-find-incomplete-cache-entries-p):
(semanticdb-find-translate-path-includes-default):
(semanticdb-find-results-p):
(semanticdb-find-result-with-nil-p):
* lisp/cedet/semantic/analyze/complete.el
(semantic-analyze-possible-completions): Use cl-typep instead of
functions like `srecode-dictionary-compound-value-child-p' etc.
2019-06-14 15:47:54 +02:00
Lars Ingebrigtsen
9fac0e70e3 srecode/srt-mode compilation fix
* lisp/cedet/srecode/srt-mode.el (srecode/insert): Require to
avoid compilation warning about unknown slot.  Remove function
declarations that point to that file.
2019-06-14 15:36:17 +02:00
Lars Ingebrigtsen
51ba1250bc srecode/find compilation fix
* lisp/cedet/srecode/find.el (srecode/compile): Require to
avoid compilation warning about unknown slot.  Remove function
declarations that point to that file.
2019-06-14 15:34:00 +02:00
Lars Ingebrigtsen
2604ea84b3 srecode/dictionary compilation warning fix
* lisp/cedet/srecode/dictionary.el (srecode/fields): Require to
avoid compilation warning about unknown slot.  Remove function
declarations that point to that file.
2019-06-14 15:32:33 +02:00
Lars Ingebrigtsen
4d96ee406d srecode/dictionary compilation fix
* lisp/cedet/srecode/ctxt.el (srecode/dictionary): Require to
avoid compilation warning about unknown slot.  Remove function
declarations that point to that file.
2019-06-14 15:31:03 +02:00
Lars Ingebrigtsen
98df06c19e srecode-inserter-prin-example compilation fix
* lisp/cedet/srecode/insert.el (srecode-inserter-prin-example):
Move prin1 example to file that defines the structure it prints.
2019-06-14 15:29:17 +02:00
Lars Ingebrigtsen
595e12c2da Move functions from semantic.el to analyze.el to avoid warnings
* lisp/cedet/semantic.el (semantic-analyze-completion-at-point-function)
(semantic-analyze-notc-completion-at-point-function)
(semantic-analyze-nolongprefix-completion-at-point-function): Add
autoloads for the moved functions.

* lisp/cedet/semantic/analyze.el
(semantic-analyze-completion-at-point-function)
(semantic-analyze-notc-completion-at-point-function)
(semantic-analyze-nolongprefix-completion-at-point-function): Move
here from semantic.el to avoid getting compilation warnings about
unknown slot `bounds'.
2019-06-14 15:15:09 +02:00
Lars Ingebrigtsen
c213422fd3 Adjust erc functions after previous erc-pre-send-function change 2019-06-14 14:56:23 +02:00
Lars Ingebrigtsen
37a61055ff Adjust erc functions after previous erc-pre-send-function change
* lisp/erc/erc-goodies.el (noncommands): Use
erc-pre-send-functions instead of the hook.
(erc-send-distinguish-noncommands): Adjust function to new interface.

* lisp/erc/erc-ring.el (ring): Ditto.
(erc-add-to-input-ring): Ditto.

* lisp/erc/erc.el (erc-send-this): Really make obsolete.
(erc-pre-send-functions): Change to a list of functions to allow
erc-goodies and erc-ring to work as before.
2019-06-14 14:56:04 +02:00
Lars Ingebrigtsen
fe12ec4b0d Unobsolete string-to-multibyte
* lisp/subr.el: Un-obsolete string-to-multibyte, because it's a
useful function.  string-to-unibyte has already been un-obsoleted.
2019-06-14 14:37:29 +02:00
Lars Ingebrigtsen
7b837cd707 Use CLOS-style accessors in oref/oset
* lisp/cedet/srecode/texi.el (srecode-semantic-handle-:texitag):
* lisp/cedet/srecode/table.el (srecode-mode-table-new):
(srecode-dump):
* lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro):
(semantic-analyze-possible-completions):
* lisp/cedet/srecode/semantic.el (srecode-compound-toString):
(srecode-semantic-apply-tag-to-dict-default):
* lisp/cedet/srecode/mode.el (srecode-minor-mode-templates-menu):
(srecode-edit):
* lisp/cedet/srecode/insert.el (srecode-insert-method):
(srecode-inserter-apply-state):
(srecode-insert-ask-default):
(srecode-insert-method-ask):
(srecode-insert-method-field):
(srecode-insert-method-helper):
(srecode-parse-input):
(srecode-match-end):
(srecode-insert-include-lookup):
(srecode-insert-method):
* lisp/cedet/srecode/find.el (srecode-template-table-in-project-p):
(srecode-template-get-table):
(srecode-template-get-table-for-binding):
(srecode-all-template-hash):
* lisp/cedet/srecode/extract.el (srecode-inserter-extract):
(srecode-inserter-extract):
* lisp/cedet/srecode/el.el (srecode-semantic-apply-tag-to-dict):
* lisp/cedet/srecode/dictionary.el (initialize-instance):
(srecode-dictionary-add-template-table):
(srecode-compound-toString):
* lisp/cedet/srecode/cpp.el (srecode-semantic-apply-tag-to-dict):
* lisp/cedet/srecode/compile.el (srecode-compile-template-table):
(srecode-dump):
* lisp/cedet/srecode/args.el (srecode-semantic-handle-:project):
* lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions):
* lisp/cedet/semantic/symref/list.el (semantic-symref-results-dump):
(semantic-symref-list-create-macro-on-open-hit):
(semantic-symref-list-rename-open-hits):
(semantic-symref-list-map-open-hits):
* lisp/cedet/semantic/symref/idutils.el
(semantic-symref-perform-search):
(semantic-symref-parse-tool-output-one-line):
* lisp/cedet/semantic/symref/global.el (semantic-symref-perform-search):
(semantic-symref-parse-tool-output-one-line):
* lisp/cedet/semantic/symref/cscope.el (semantic-symref-perform-search):
(semantic-symref-parse-tool-output-one-line):
* lisp/cedet/semantic/mru-bookmark.el
(semantic-mrub-ring-to-assoc-list):
* lisp/cedet/semantic/grammar.el
(semantic-analyze-possible-completions):
* lisp/cedet/semantic/decorate/include.el
(semantic-decoration-include-describe):
* lisp/cedet/semantic/debug.el (semantic-debug-highlight-lexical-token):
(semantic-debug-highlight-rule):
* lisp/cedet/semantic/db-typecache.el
(semanticdb-typecache-for-database):
* lisp/cedet/semantic/complete.el
(semantic-collector-calculate-completions-raw):
* lisp/cedet/semantic/bovine/make.el
(semantic-analyze-possible-completions):
* lisp/cedet/semantic/analyze/refs.el (semantic-analyze-refs-impl):
(semantic-analyze-refs-proto):
* lisp/cedet/semantic/analyze/debug.el
(semantic-analyzer-debug-describe-scope):
* lisp/cedet/semantic/analyze.el (semantic-analyze-interesting-tag):
(semantic-analyze-interesting-tag):
(semantic-analyze-pulse):
* lisp/cedet/ede/util.el (ede-update-version):
* lisp/cedet/ede/shell.el (ede-shell-run-something):
* lisp/cedet/ede/project-am.el (project-am-load-makefile):
(project-rescan):
(project-am-macro):
(ede-buffer-mine):
(project-compile-target-command):
(project-am-package-info):
* lisp/cedet/ede/files.el (ede--project-inode):
(ede-directory-get-open-project):
(ede-directory-get-toplevel-open-project):
(ede-find-subproject-for-directory):
(ede-toplevel-project):
* lisp/cedet/ede/cpp-root.el (initialize-instance):
(project-compile-project):
(project-compile-target):
* lisp/cedet/ede/config.el (ede-config-get-configuration):
(project-debug-target):
(project-run-target):
(project-compile-project):
(ede-preprocessor-map):
(ede-java-classpath):
* lisp/cedet/ede/base.el (ede-normalize-file/directory): Use
CLOS-style oref/oset accessors instead of eieio-style :colon
accessors.  This avoids compilation warnings and is allegedly
faster.
2019-06-14 14:24:18 +02:00
Lars Ingebrigtsen
07df91d45a Obsolete erc-send-pre-hook and add new erc-pre-send-function
* lisp/erc/erc.el (erc-send-pre-hook): Make obsolete.
(erc-send-input): Ditto.
(erc-pre-send-function): New function.
(erc-send-input): Use the new function, and silence byte
compilation warning about the dynamic variable `str' used by the
now-obsolete hook.
2019-06-14 14:05:30 +02:00
Lars Ingebrigtsen
a983bf0c49 Fix compilation warning in rmailmm
* lisp/mail/rmailmm.el (rmail-mime-insert-bulk): Remove apparently
superfluous call to string-as-unibyte -- the buffer should be
unibyte already at this point.
2019-06-14 14:05:30 +02:00
Lars Ingebrigtsen
7486b8f4eb Avoid compilation warning in byte-run
* lisp/emacs-lisp/byte-run.el (macro-declaration-function): Avoid
compilation warning by not using `symbol-function'.
2019-06-14 13:24:47 +02:00
Stefan Monnier
622bfdffa8 * lisp/gnus/message.el: Fix NNTP sending, broken by e51adfbdb7
(message-check-news-header-syntax): `message--check-continuation-headers`
signals an error instead of returning nil on error.
2019-06-14 02:51:07 -04:00
Glenn Morris
5e09ace074 Stop a tramp test leaving a file behind
* test/lisp/net/tramp-tests.el
(tramp-test10-write-region-file-precious-flag):
Avoid leaving a backup file after we are done.
2019-06-13 20:24:41 -04:00
Stefan Monnier
28ba9d542c * lisp/widget.el (define-widget-keywords): Use declare. 2019-06-13 17:42:58 -04:00
Stefan Monnier
cf5aa2f39a * lisp/progmodes/ps-mode.el (ps-mode-octal-region): Simplify. 2019-06-13 17:40:32 -04:00
Lars Ingebrigtsen
d64d36de8e Fix typo in object-print cleanup
* lisp/cedet/srecode/insert.el
(srecode-insert-variable-secondname-handler): Fix typo in
object-print cleanup.
2019-06-13 17:42:26 +02:00
Lars Ingebrigtsen
a6191e060b Remove outdated FIXME
* lisp/emacs-lisp/eieio-core.el (eieio--slot-name-index): Remove
comment about issuing a byte compilation warning about accessing
slots via :initarg -- it was implemented a few months later.
2019-06-13 17:19:32 +02:00
Lars Ingebrigtsen
7bee5072f9 semantic/senator.el byte compilation fix
* lisp/cedet/semantic/senator.el (semantic/analyze): Require to
avoid compilation warnings about unknown slots, and remove
declare-function.
2019-06-13 16:58:58 +02:00
Lars Ingebrigtsen
37d827152f semantic/idle.el compilation warning fix
* lisp/cedet/semantic/idle.el (semantic/analyze): Require to
avoid compilation warnings about unknown slots, and remove
declare-function.
2019-06-13 16:57:50 +02:00
Lars Ingebrigtsen
5b8fa27279 semantic/grammar byte compilation fixes
* lisp/cedet/semantic/grammar.el (semantic/analyze): Require to
avoid compilation warnings about unknown slots, and remove
declare-function.
2019-06-13 16:56:01 +02:00
Lars Ingebrigtsen
1cd77d2021 semantic/chart.el compilation warning fixes
* lisp/cedet/semantic/chart.el (semantic/db-typecache)
(semantic/scope): Require to avoid byte compilation warnings about
undefined slots.  Remove declare-functions from these packages.
2019-06-13 16:53:10 +02:00
Lars Ingebrigtsen
126702a979 Fix some cedet compilation warnings pertaining to semantic/db
* lisp/cedet/ede/config.el (semantic/db)
(ede-preprocessor-map): Ditto.

* lisp/cedet/ede/cpp-root.el (semantic/db): Ditto.

* lisp/cedet/ede/emacs.el (semantic/db): Ditto.

* lisp/cedet/ede/linux.el (semantic/db): Require to avoid warnings
about unknown slot lexical-table, and remove declare-functions
from the now-required semantic/db.
2019-06-13 16:33:06 +02:00
Lars Ingebrigtsen
69d3d69d4c project.el compilation warning fix
* lisp/progmodes/project.el (xref--regexp-to-extended)
(xref--convert-hits): Declare more xref functions to avoid
compilation warnings.
2019-06-13 16:16:57 +02:00
Alan Mackenzie
6b5388794b Depessimize bits of CC Mode for long C macros.
* lisp/progmodes/cc-engine.el (c-end-of-macro): Check for being in a
degenerate zero length "macro", when setting the macro cache.
(c-determine-+ve-limit): Add in a missing goto-char form for when start-pos is
non-nil.
(c-back-over-member-initializers): Add a search limit parameter.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Add a search limit
to c-go-up-list-backward.
(c-font-lock-cut-off-declarators): Add a search limit to
c-back-over-member-initializers.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Don't
set c-new-END to the end of logical line (which might be a long macro).
(c-after-change-mark-abnormal-strings): Calculate end-hwm in place of the
setting of c-new-END (above).  Use this as a search limit rather than
c-new-END.
2019-06-13 14:10:02 +00:00
Stefan Kangas
38d8db1bf2 ; * etc/NEWS: Small cleanup.
* etc/NEWS: Merge two bookmark items in NEWS (bug#36188).
2019-06-13 16:04:40 +02:00
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