1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
Commit graph

137048 commits

Author SHA1 Message Date
Lars Ingebrigtsen
45a0ce0905 Remove XEmacs compat code from table.el
* lisp/textmodes/table.el:
(table-disable-menu, null, table-recognize-cell)
(table--make-cell-map, table--update-cell)
(table--update-cell-widened, table--update-cell-heightened)
(table--read-from-minibuffer, table--untabify)
(table--update-cell-face, table--warn-incompatibility)
(table--fill-region, table--set-timer): Remove XEmacs compat code.
2019-06-20 12:51:39 +02:00
Lars Ingebrigtsen
954b58f00b Remove XEmacs compat code from dns-mode.el
* lisp/textmodes/dns-mode.el (dns-mode): Remove XEmacs compat code.
2019-06-20 12:51:39 +02:00
Lars Ingebrigtsen
b67a6cb8dd Clean up eieio-custom slightly
* lisp/emacs-lisp/eieio-custom.el: Remove commented out code.
2019-06-20 12:51:39 +02:00
Lars Ingebrigtsen
4e0baad410 Remove XEmacs compat code from checkdoc.el
* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode-map): Remove
XEmacs compat code.
2019-06-20 12:51:39 +02:00
Lars Ingebrigtsen
717a99dacf Clean up after previous viper patch
* lisp/emulation/viper-ex.el (viper-get-ex-address-subr): Fix
syntax error in last checkin.
(viper-ex): Don't use now-obsolete function.
2019-06-20 12:51:39 +02:00
Lars Ingebrigtsen
dfec2bc785 Remove most of the XEmacs compat code from viper*.el
* lisp/emulation/viper-cmd.el ()
(viper-insert-state-post-command-sentinel)
(viper-change-state-to-vi, viper-change-state-to-insert)
(viper-change-state-to-emacs, viper-escape-to-state)
(viper-special-read-and-insert-char, viper-toggle-key-action)
(viper-prefix-arg-value, viper-prefix-arg-com)
(viper-digit-argument, viper-command-argument, )
(viper-exec-Yank, viper-repeat, viper-forward-char)
(viper-backward-char, viper-forward-word, viper-forward-Word)
(viper-end-of-word, viper-end-of-Word, viper-backward-word)
(viper-backward-Word, viper-beginning-of-line)
(viper-bol-and-skip-white, viper-goto-eol, viper-goto-col)
(viper-next-line, viper-next-line-at-bol, viper-previous-line)
(viper-previous-line-at-bol, viper-goto-line, )
(viper-repeat-find, viper-repeat-find-opposite)
(viper-window-top, viper-window-middle, viper-window-bottom)
(viper-paren-match, viper-search, viper-buffer-search-enable)
(viper-put-back, viper-Put-back, viper-mark-point)
(viper-cycle-through-mark-ring, viper-goto-mark-subr)
(viper-brac-function, viper-register-to-point)
(viper-submit-report): Remove some XEmacs compat code.

* lisp/emulation/viper-ex.el (viper-get-ex-address-subr)
(viper-handle-!, ex-edit, ex-mark, ex-next-related-buffer)
(ex-help, ex-write, ex-write-info, viper-info-on-file): Ditto.

* lisp/emulation/viper-keym.el (viper-add-keymap): Ditto.

* lisp/emulation/viper-macs.el (viper-record-kbd-macro): Remove
XEmacs compat code.

* lisp/emulation/viper-mous.el (viper-mouse-click-insert-word)
(viper-mouse-click-search-word): Remove some XEmacs compat code.

* lisp/emulation/viper-util.el (viper-overlay-p)
(viper-color-defined-p, viper-iconify, viper-memq-char)
(viper-char-equal, viper=, viper-color-display-p)
(viper-get-cursor-color, viper-frame-value)
(viper-change-cursor-color, viper-save-cursor-color)
(viper-restore-cursor-color, viper-get-visible-buffer-window)
(viper-file-checked-in-p, viper-put-on-search-overlay)
(viper-flash-search-pattern, viper-hide-search-overlay)
(viper-move-replace-overlay, viper-set-replace-overlay)
(viper-set-replace-overlay-glyphs, viper-hide-replace-overlay)
(viper-replace-start, viper-replace-end)
(viper-set-minibuffer-overlay, viper-check-minibuffer-overlay)
(viper-abbreviate-file-name, viper-mark-marker)
(viper-set-mark-if-necessary, viper-leave-region-active)
(viper-copy-event, viper-read-event-convert-to-char)
(viper-event-key, viper-last-command-char)
(viper-key-to-emacs-key, viper-eventify-list-xemacs)
(viper-set-unread-command-events, viper-char-array-p)
(viper-key-press-events-to-chars, viper-read-char-exclusive):
Remove most of the XEmacs compat code.

* lisp/emulation/viper.el (viper-go-away, viper-set-hooks)
(viper-non-hook-settings): Remove some XEmacs compat code.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
82aeaf1606 Remove XEmacs compat code from viper-macs.el
* lisp/emulation/viper-macs.el (viper-char-array-to-macro):
Remove XEmacs compat code.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
a4047f9d98 Remove XEmacs compat code from viper-cmd.el
* lisp/emulation/viper-cmd.el (viper-change-state)
(viper-escape-to-state, viper-special-read-and-insert-char)
(viper-prefix-arg-value, viper-prefix-arg-com)
(viper-display-current-destructive-command)
(viper-file-add-suffix, viper-adjust-window)
(viper-set-searchstyle-toggling-macros)
(viper-set-parsing-style-toggling-macro)
(viper-set-emacs-state-searchstyle-macros): Remove XEmacs compat code.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
1f6e6ee4f7 Remove XEmacs and old Emacs compat code from gamegrid.el
* lisp/play/gamegrid.el (gamegrid-event-x, gamegrid-event-y)
(gamegrid-make-glyph, image-size, gamegrid-initialize-display)
(gamegrid-start-timer, gamegrid-set-timer)
(gamegrid-kill-timer)
(gamegrid-add-score-with-update-game-score-1)
(gamegrid-add-score-insecure): Removed XEmacs compat code.
(gamegrid-characterp, gamegrid-set-display-table): Removed functions.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
ec45664d28 Remove XEmacs compat code from binhex.el
* lisp/mail/binhex.el (binhex-insert-char): Remove XEmacs compat
code and made into a function instead of a defalias.
(binhex-decode-region-internal): Remove XEmacs compat code.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
ac3219c0e8 Remove XEmacs compat code from uudecode.el
* lisp/mail/uudecode.el (uudecode-decode-region-external)
(uudecode-decode-region-internal): Remove XEmacs compat code.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
3c16eda5f1 Remove XEmacs compat code from pascal.el
* lisp/progmodes/pascal.el (pascal-mark-defun): Remove XEmacs compat.
2019-06-20 12:51:38 +02:00
Lars Ingebrigtsen
c2e27949d5 Remove XEmacs support from cperl-mode
* lisp/progmodes/cperl-mode.el (condition-case)
(cperl-electric-parens-mark, cperl-del-back-ch)
(cperl-do-not-fontify, cperl-mode, cperl-find-pods-heres)
(cperl-write-tags, cperl-tags-hier-init, cperl-perldoc)
(cperl-build-manpage): Remove XEmacs support.

There's a lot of support code in here for older versions of Emacs that
could be removed, too.
2019-06-20 12:51:38 +02:00
Paul Eggert
920745eba2 Simplify stdout buffering
* src/sysdep.c (_sobuf): Remove; we no longer need this
microoptimization.
(init_sys_modes): Simplify by assuming setvbuf.
2019-06-20 00:41:13 -07:00
Paul Eggert
2dbe05d01a Remove no-longer-needed fflushes of stderr
* src/gmalloc.c (mabort) [GC_MCHECK && !__GNU_LIBRARY__]:
* src/term.c (vfatal): Remove fflush (stderr) when it is now a
no-op because newline automatically flushes stderr.
2019-06-20 00:41:13 -07:00
Paul Eggert
2079e40a3c Line-buffer stderr
* src/sysdep.c (init_standard_fds) [!DOS_NT]:
Use setvbuf to ensure stderr is line-buffered.
2019-06-20 00:41:13 -07:00
Paul Eggert
4e8083ec81 Fix arbitrary INT_MAX limit on referrer repr
* src/pdumper.c (print_paths_to_root_1):
Don’t assume strlen (repr) < INT_MAX.
2019-06-20 00:41:13 -07:00
Paul Eggert
5f32ac13c8 Minor putc tweaks
* src/emacs-module.c (module_abort):
* src/xdisp.c (vmessage):
Prefer fputc to putc, since speed isn’t crucial here.
* src/region-cache.c (pp_cache) [ENABLE_CHECKING]: Simplify.
2019-06-20 00:41:13 -07:00
YAMAMOTO Mitsuharu
fdbbbf94a5 Change font_put_extra value for property removal from Qnil to Qunbound
* font.c (font_put_extra): If VAL is Qunbound, delete the slot for PROP from
the list of extra properties.  Previous value Qnil is valid as boolean.
(font_clear_prop): Changed argument of font_put_extra for property removal.
2019-06-20 12:12:01 +09:00
YAMAMOTO Mitsuharu
0701634aa7 Fix failure of setting default face attribute in init script (Bug#36284)
* src/xsettings.c (apply_xft_settings): Undo replacing all #ifdef HAVE_XFT
with #if defined USE_CAIRO || defined HAVE_XFT for this function.
2019-06-20 11:58:36 +09:00
Roland Winkler
9eb7886647 * bookmark.el (bookmark-set-internal): Fix format string. 2019-06-19 21:52:03 -05:00
Juri Linkov
8b379bbeca Add file sorting options to find-dired and grep-find (bug#36110)
* lisp/find-dired.el (find-ls-option-default-ls)
(find-ls-option-default-exec, find-ls-option-default-xargs):
New variables for values used for options of 'find-ls-option'.
(find-ls-option): Use these variables for default values and options.
(find-dired-refine-function): Refine :type.

* lisp/progmodes/grep.el (grep-find-use-xargs): Use defcustom
instead of defvar.  Add new value 'gnu-sort'.
(grep-compute-defaults): Handle new 'gnu-sort' option of
'grep-find-use-xargs'.
2019-06-20 00:55:07 +03:00
Lars Ingebrigtsen
f6ab713bbc Remove XEmacs and ancient Emacs compatibility from newst-backend.el
* lisp/net/newst-backend.el: Remove compatibility with XEmacs and
ancient Emacs versions.
2019-06-19 23:25:56 +02:00
Lars Ingebrigtsen
dd2bc89f0a Doc string fix
* lisp/calendar/timeclock.el (timeclock-completing-read): Fix doc
string punctuation.
2019-06-19 23:13:31 +02:00
Lars Ingebrigtsen
2a6dca26ef Remove XEmacs compat code from timeclock.el
* lisp/calendar/timeclock.el (timeclock-completing-read)
(timeclock-ask-for-project, timeclock-ask-for-reason): Remove
XEmacs compat code.
2019-06-19 23:10:04 +02:00
Lars Ingebrigtsen
20164ad93b Remove more XEmacs compat code from epa.el
* lisp/epa.el (epa-key-mode, epa-key-list-mode): Remove XEmacs
compat code.
2019-06-19 23:02:39 +02:00
Lars Ingebrigtsen
8e9ff8b115 Remove XEmacs compat code from calc
* lisp/calc/calc.el (calc-read-key-sequence)
(calcDigit-start, calc-read-key, calc-unread-command)
(calc-clear-unread-commands):
* lisp/calc/calc-misc.el (calc-dispatch-help):
* lisp/calc/calc-help.el (calc-help-for-help)
(calc-describe-key):
* lisp/calc/calc-ext.el (calc-fancy-prefix, calc-user-key-map):
Remove XEmacs compat code.
2019-06-19 22:56:26 +02:00
Lars Ingebrigtsen
a97ba6eb30 Remove XEmacs compat code from savehist.el
* lisp/savehist.el:
(savehist-install, savehist-uninstall, savehist-save)
(savehist-trim-history, savehist-printable)
(savehist-minibuffer-hook): Remove XEmacs compat code.
2019-06-19 22:37:33 +02:00
Lars Ingebrigtsen
8064f64eb1 Remove XEmacs compat code from ps-print
* lisp/ps-print.el:
(ps-print-color-p, ps-postscript-code-directory, ps-setup):
* lisp/ps-def.el:
(ps-mark-active-p, ps-face-foreground-name)
(ps-face-background-name, ps-color-device, ps-color-values)
(ps-face-bold-p, ps-face-italic-p, ps-face-strikeout-p)
(ps-face-overline-p, ps-face-box-p)
(ps-generate-postscript-with-faces1): Remove XEmacs compat code
and some outdated Emacs compat code.
2019-06-19 22:30:10 +02:00
Lars Ingebrigtsen
43a251ccf3 Remove XEmacs compat code from epa.el
* lisp/epa.el (epa-key-list-mode, epa-key-mode)
(epa--find-coding-system-for-mime-charset): Remove XEmacs compat
code and comments.
2019-06-19 22:24:50 +02:00
Lars Ingebrigtsen
e46fc9b017 Remove XEmacs compat code from dframe.el
* lisp/dframe.el (dframe-update-speed, dframe-update-keymap)
(dframe-frame-mode, dframe-detach, dframe-set-timer-internal)
(dframe-popup-kludge, dframe-mouse-event-p)
(dframe-track-mouse, dframe-help-echo, dframe-mouse-set-point)
(dframe-double-click, dframe-temp-buffer-show-function)
(dframe-hack-buffer-menu, dframe-mouse-hscroll): Remove XEmacs
compat code (and some ancient Emacs compat code).
2019-06-19 22:08:19 +02:00
Lars Ingebrigtsen
613d3848b8 Remove XEmacs compat code from ansi-color.el
* lisp/ansi-color.el (ansi-color-apply-overlay-face)
(ansi-color-make-face, ansi-color-make-extent)
(ansi-color-set-extent-face): Remove XEmacs compat code.
2019-06-19 22:08:19 +02:00
Alan Mackenzie
598d167f40 Update CC Mode's version number to 5.34
* doc/misc/cc-mode.texi (top level, "Introduction"),
lisp/progmodes/cc-defs.el (c-version): Update version number to 5.34.
2019-06-19 19:15:26 +00:00
Eli Zaretskii
a7f71e8dfa Update documentation of font backends on MS-Windows
* doc/emacs/msdos.texi (Windows Fonts): Update the
documentation of requesting specific font backends.
2019-06-19 19:40:33 +03:00
Lars Ingebrigtsen
c6239cc113 Fix typo in previous erc.el change
* lisp/erc/erc.el (erc-send-input): Fix typo in previous checkin.
2019-06-19 18:29:17 +02:00
Lars Ingebrigtsen
7121444100 Use add/remove-hook on erc-pre-send-functions
* lisp/erc/erc-goodies.el (noncommands): Ditto.

* lisp/erc/erc-ring.el (ring): Use add/remove-hook.
2019-06-19 18:20:22 +02:00
Lars Ingebrigtsen
fc8a8bdb7f Move around defgeneric/defmethods in eieio
* lisp/emacs-lisp/eieio.el (object-print):
* lisp/emacs-lisp/eieio-base.el (eieio-object-set-name-string):
Move the defgeneric before the defmethod, because that makes more
sense.
2019-06-19 17:12:29 +02:00
Lars Ingebrigtsen
3fb6993c8d Fix previous change to erc (where commands like /me wouldn't be sent)
* lisp/erc/erc-ring.el (erc-add-to-input-ring):
* lisp/erc/erc-goodies.el (erc-send-distinguish-noncommands): Pass
in a erc-input structure instead of a simple string.
* lisp/erc/erc.el (erc-pre-send-functions): Document the new
argument to the filter functions.
(erc-send-input): Use the new structure to allow the filter
functions to alter all three things: The string, whether to insert
the string, and whether to send the string.
2019-06-19 17:07:41 +02:00
Lars Ingebrigtsen
12efa07f95 Don't have erc-goodies and erc-ring register functions multiple times
* lisp/erc/erc-goodies.el (noncommands): Don't register functions
twice.

* lisp/erc/erc-ring.el (ring): Ditto.
2019-06-19 17:07:41 +02:00
Stefan Monnier
416b83e907 (with-suppressed-warnings): Make it apply to macro-expansion as well
* lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment):
Change with-suppressed-warnings so it also affects the macro-expansion of
the body.
2019-06-19 10:47:55 -04:00
Lars Ingebrigtsen
65b2faf6fa Rename function in completion.el to use completion- prefixes
* lisp/completion.el (locate-completion-entry)
(completion-locate-entry, locate-completion-entry-retry)
(completion-locate-entry-retry, locate-completion-db-error):
Rename to use a completion- prefix and make the old names obsolete
aliases.
(add-completion-to-head, delete-completion): Use the new function
names.
2019-06-19 16:04:02 +02:00
Stefan Monnier
a2dc749897 * lisp/textmodes/page-ext.el: Further cleanup
(pages--ctl-x-ctl-p-map): Rename from ctl-x-ctl-p-map.
Move initialization into declaration.
(pages-ctl-x-ctl-p-prefix): Rename from ctl-x-ctl-p-prefix.
(sort-subr): Remove redundant autoload.
(pages-set-delimiter): Use explicit `interactively` arg instead of
`called-interactively`.  Use `setq-local`.
(pages-directory-for-addresses): Use `setq-local`.
2019-06-19 09:53:06 -04:00
Lars Ingebrigtsen
1584d4cd95 Fix compilation warning in pcmpl-gnu.el
* lisp/pcmpl-gnu.el (pcomplete/tar): Remove binding of
pcomplete-suffix-list, because it's not consulted in any of the
functions called here, and has had no effect since 2011.  If we
want to support not inserting a space after the = sign, we have to
implement that, but it's not currently done.
2019-06-19 15:30:22 +02:00
Lars Ingebrigtsen
d8c6fa84a0 Revert "Fix one of the tags/xref warnings in viper-ex.el"
This reverts commit 4f2f950497.

We can't mix calls to find-tag and xref-find-definitions
2019-06-19 15:21:20 +02:00
Lars Ingebrigtsen
816b91a61a Fix up the function/variable names in page-ext.el
* lisp/textmodes/page-ext.el (previous-page)
(search-pages)
(sort-pages-in-region)
(sort-pages-buffer)
(pages-sort-buffer)
(pages-set-delimiter): Rename to have pages- prefixes and make the
previous name into aliases for the new names.
(ctl-x-ctl-p-map): Use the new command names.
2019-06-19 15:10:51 +02:00
Lars Ingebrigtsen
7c1cbed1b4 Touch up the OKURI-NASI progress reporting
* lisp/international/ja-dic-cnv.el (skkdic-convert-okuri-ari)
(skkdic-convert-postfix, skkdic-convert-prefix)
(skkdic-collect-okuri-nasi): Use INFO progress reporting.
(skkdic-set-okuri-nasi): Use the progress reporter instead of a
per-1000 output.
2019-06-19 14:29:41 +02:00
Lars Ingebrigtsen
0837d9a4ea Tweak progess reporting in finder-compile-keywords
* lisp/finder.el (finder-compile-keywords): Use progress reporter
to report the processing.
2019-06-19 14:06:29 +02:00
Lars Ingebrigtsen
390b4bc1e2 Allow specifying the expected number of shift/reduce conflicts
* admin/grammars/grammar.wy: Add %expectedconflicts.

* lisp/cedet/semantic/grammar-wy.el
(semantic-grammar-wy--keyword-table): Ditto.

* lisp/cedet/semantic/grammar.el
(semantic-grammar-expected-conflicts): New function.
(semantic-grammar-insert-defconst-with-eval): New function.
(semantic-grammar-create-package): Output the number of expected
shift/reduce conflicts.

* lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts):
Don't output the warning if the number of shift/reduce conflicts
is expected.
(wisent-expected-conflicts): Made obsolete.
2019-06-19 13:48:49 +02:00
Lars Ingebrigtsen
eef48e124d Tweak progress reporting in update-directory-autoloads
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Use
progress reporter so say what percentage the progress is at.
2019-06-19 13:48:48 +02:00
Mattias Engdegård
d3a7f3e6cd Compile any subsequence of `cond' clauses to switch (bug#36139)
A single `cond' form can how be compiled to any number of switch ops,
optionally interspersed with non-switch conditions.
Previously, switch ops would only be used for whole `cond' forms
containing no other tests.

* lisp/emacs-lisp/bytecomp.el (byte-compile--cond-vars):
Rename from `byte-compile-cond-vars'.
(byte-compile--default-val): Remove.
(byte-compile--cond-switch-prefix):
Replace `byte-compile-cond-jump-table-info'; now also returns
trailing non-switch clauses.
(byte-compile-cond-jump-table): New arguments; no longer compiles
the default case.
(byte-compile-cond): Look for and compile switches at any place in the
list of clauses.
* test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data):
Add test expression.
2019-06-19 11:22:21 +02:00