Lars Ingebrigtsen
ae3e3900a2
Provide help when doing (shell-command "... &") on buffer collisions
...
* lisp/simple.el (shell-command--same-buffer-confirm): New
function (bug#13649).
(shell-command): Use it to provide fuller help.
2022-04-24 15:48:29 +02:00
Lars Ingebrigtsen
8ee21db4af
Add new function `read-string-from-buffer'.
...
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it.
* lisp/textmodes/string-edit.el: New file.
2022-04-24 15:16:00 +02:00
Eli Zaretskii
98ec8c3bc8
; * etc/NEWS: Fix last change.
2022-04-24 15:48:50 +03:00
Eli Zaretskii
f3434fe2f3
; Fix last change 'display-local-help' and its documentation
...
* etc/NEWS:
* doc/emacs/help.texi (Help Summary): Fix typo and wording of
documentation of 'C-u C-h .'.
* lisp/help-at-pt.el (display-local-help): Avoid byte-compiler
warnings. Fix wording of doc string.
2022-04-24 15:47:08 +03:00
Lars Ingebrigtsen
4d5fd01749
Allow 'C-u C-h .' to describe button/widgets
...
* doc/emacs/help.texi (Help Summary): Document it.
* lisp/help-at-pt.el (display-local-help): Display button/widget
help (bug#54963).
2022-04-24 13:53:17 +02:00
Lars Ingebrigtsen
e632c7bd80
Ensure that the global sql-buffer variable is set
...
* lisp/progmodes/sql.el (sql-product-interactive): Set the
expected global value of sql-buffer (bug#55088).
2022-04-24 13:39:36 +02:00
Po Lu
66ad6564a2
* lisp/term/haiku-win.el (x-colors): Also update with system colors.
2022-04-24 05:44:16 +00:00
Po Lu
e2d870016c
Allow looking up window system colors on Haiku
...
* lisp/help-fns.el (help-fns--editable-variable): Fix describing
variables which don't have symbol values.
* lisp/term/haiku-win.el (haiku-allowed-ui-colors): Set list of
allowed UI colors.
* src/haiku_support.cc (be_get_ui_color): New function.
* src/haiku_support.h: Update prototypes.
* src/haikufns.c (haiku_get_color): Look for defined UI color.
(syms_of_haikufns): New defvar `haiku-allowed-ui-colors'.
* src/haikuterm.c (haiku_term_init): Fix coding style.
2022-04-24 05:37:22 +00:00
Po Lu
ddbf2e8ab7
Fix disabling double buffering on Haiku
...
* src/haikufns.c (haiku_set_inhibit_double_buffering): Garbage
frame correctly after changing double buffering.
* src/haikuterm.c (haiku_calculate_relief_colors)
(haiku_draw_relief_rect, haiku_draw_underwave): Clean up coding
style.
2022-04-24 02:55:19 +00:00
Po Lu
9b6580ccb7
Speed up color cache lookup on X
...
* src/xterm.c (x_hash_string_ignore_case): New function.
(x_parse_color): Turn color cache into a hash table.
(x_term_init): Allocate color cache.
(x_delete_display): Free color cache correctly.
* src/xterm.h (struct x_display_info): Turn color cache into a
hash table and add appropriate fields.
2022-04-24 08:44:18 +08:00
Alan Mackenzie
9c346270f9
CC Mode: New alignment function c-lineup-argcont-+
...
This fixes bug #21409 .
* lisp/progmodes/cc-align.el (c-lineup-argcont-1): New function, mainly
extracted from c-lineup-argcont.
(c-lineup-argcont): Refactored to use the new function above.
(c-lineup-argcont-+): New function.
* doc/misc/cc-mode.texi (Operator Line-Up): Add a new piece for
c-lineup-argcont-+.
2022-04-23 20:02:49 +00:00
Lars Ingebrigtsen
37934b953c
NEWS copy editing
2022-04-23 19:31:07 +02:00
Lars Ingebrigtsen
fc00ecfce8
Fix elc.gz loading test some more
2022-04-23 18:37:27 +02:00
Lars Ingebrigtsen
e00edf20e7
Add a failing test case for bug#12598
...
Author:
2022-04-23 18:14:26 +02:00
Juri Linkov
164a7ebdbc
Allow not clearing the echo area
...
* doc/lispref/display.texi (Displaying Messages): Document it.
* lisp/minibuffer.el (clear-minibuffer-message): Return nil.
* src/xdisp.c (clear_message): Respect the dont-clear-message
value.
2022-04-23 17:17:15 +02:00
Lars Ingebrigtsen
655b39bd4b
Don't have help-fns--editable-variable override link buttons
...
* lisp/help-fns.el (help-fns--editable-variable): Don't override
link buttons (bug#40774).
2022-04-23 17:01:55 +02:00
Eli Zaretskii
ceaa609523
; Improve doc strings of completion primitives
...
* src/minibuf.c (Ftry_completion, Fall_completions): Clarify the
doc strings.
2022-04-23 17:15:27 +03:00
Lars Ingebrigtsen
b4b0db72d6
Mention the case of the result in the try-completion doc string
...
* src/minibuf.c (Ftry_completion): Mention the case of the results
(bug#39484).
2022-04-23 15:16:41 +02:00
Lars Ingebrigtsen
5bc5e56576
Make elisp-flymake-byte-compile clean up on failures
...
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Clean
up no matter what the exit status of the process is (bug#55056).
2022-04-23 14:52:45 +02:00
Lars Ingebrigtsen
2c0a01ee38
Don't make a header if the user hasn't specified columns in vtable
...
* lisp/emacs-lisp/vtable.el (vtable):
(make-vtable): Store whether the user has specified the columns.
(vtable-insert): Don't insert a header line or a header if the
user hasn't specified the columns (bug#55075).
2022-04-23 14:47:55 +02:00
Filipp Gunbin
ca5fb2b922
Fix prompts in sql-get-login again
...
* lisp/progmodes/sql.el (sql-get-login-ext): Use prompt-def
everywhere.
(sql-get-login): Revert previous fix (bug#52546).
2022-04-23 14:29:45 +02:00
Lars Ingebrigtsen
daf82f61bb
Regenerated ldefs-boot.el
2022-04-23 14:13:10 +02:00
Lars Ingebrigtsen
c789430331
Add new minor mode word-wrap-whitespace-mode
...
* doc/emacs/display.texi (Visual Line Mode): Document it.
* lisp/textmodes/word-wrap-mode.el: New minor mode.
2022-04-23 14:13:10 +02:00
Po Lu
759d337b0d
Fix key navigation of Lucid menus on XI2
...
* src/xmenu.c (popup_get_selection): Fix cookie claiming of
input extension events.
(Fx_menu_bar_open_internal): Use right timestamps on XI2.
* src/xterm.c (handle_one_xevent): Dispatch XI2 key events via
Xt when popup is active.
2022-04-23 19:34:46 +08:00
Po Lu
132fa71615
Avoid unnecessary calculations when handling button events during DND
...
* src/xterm.c (handle_one_xevent): Only calculate DND grab for
button release events.
2022-04-23 10:05:13 +08:00
Po Lu
a0ebc6f20f
Avoid clearing splash screen message during DND on Haiku
...
* src/haikuterm.c (haiku_read_socket): Respect any_help_event_p
when sending help events for DND.
2022-04-23 00:36:45 +00:00
Alan Mackenzie
0b9b363dab
Byte compiler: Prevent special forms' symbols being replaced by bare symbols
...
These are symbols with position from source code, which should not be replaced
by bare symbols in, e.g., optimization functions.
* lisp/Makefile.in: (BYTE_COMPILE_FLAGS, compile-first case): Set
max-specpdl-size to 5000 for the benefit of lisp/emacs-lisp/comp.el.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker)
(byte-optimize--rename-var, byte-optimize-if, byte-optimize-letX)
* lisp/emacs-lisp/bytecomp.el (byte-compile-recurse-toplevel)
(byte-compile-lambda)
* lisp/emacs-lisp/cconv.el (cconv-convert)
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Preserve, e.g., (car
form) in the byte compiler, when this form's car is a symbol with position of
a special form, rather than replacing the symbol with a bare symbol, e.g.
'cond.
2022-04-22 19:11:31 +00:00
Alan Mackenzie
5b23c9942a
Byte compiler: correct output warning message positions (part 2)
...
A supplementary commit to that on 2022-04-18:
* lisp/emacs-lisp/bytecomp.el (byte-compile--first-symbol-with-pos): Handle
vectors and records correctly.
* lisp/emacs-lisp/byte-run.el (byte-run--ssp-seen): Correct the doc string.
2022-04-22 17:16:21 +00:00
Lars Ingebrigtsen
2d71fd3b04
Further doc string quoting fixes
...
* test/lisp/progmodes/cperl-mode-tests.el (cperl--run-test-cases):
* lisp/simple.el (undo-equiv-table):
* lisp/shell.el (shell-mode):
(shell-mode):
* lisp/recentf.el (recentf-mode):
* lisp/org/ob-table.el (org-sbe):
* lisp/net/eudc.el (eudc-rfc5322-cctext-token):
* lisp/mail/ietf-drums-date.el (ietf-drums-date--slot-ranges):
* lisp/faces.el (color-luminance-dark-limit):
* lisp/erc/erc.el (erc-tls):
* lisp/emacs-lisp/pcase.el (pcase-setq): Further quoting fixes in
doc strings.
2022-04-22 17:16:42 +02:00
Lars Ingebrigtsen
bbf389ea6d
Audit quoting the quote character in doc strings
...
* test/src/regex-emacs-tests.el (regex-tests-compare):
(regex-tests-compare):
(regex-tests-match):
* test/lisp/xml-tests.el (xml-parse-tests--qnames):
* test/lisp/mh-e/mh-thread-tests.el (mh-thread-tests-before-from):
* test/lisp/cedet/srecode-utest-template.el (srecode-utest-map-reset):
* test/lisp/calc/calc-tests.el (calc-tests-equal):
* lisp/window.el (get-lru-window):
(get-mru-window):
(get-largest-window):
(quit-restore-window):
(display-buffer):
* lisp/vc/vc-rcs.el (vc-rcs-consult-headers):
* lisp/url/url-auth.el (url-digest-auth-build-response):
* lisp/tutorial.el (tutorial--find-changed-keys):
* lisp/transient.el (transient-suffix-object):
* lisp/textmodes/rst.el (rst-insert-list-new-item):
* lisp/textmodes/bibtex.el (bibtex-clean-entry):
* lisp/tab-bar.el (tab-bar--key-to-number):
(toggle-frame-tab-bar):
* lisp/ses.el (ses-recalculate-cell):
(ses-define-local-printer):
(ses-prin1):
* lisp/progmodes/xref.el (xref--find-ignores-arguments):
* lisp/progmodes/verilog-mode.el (verilog-single-declaration-end):
* lisp/progmodes/tcl.el (tcl-mode-hook):
* lisp/progmodes/gdb-mi.el (gdb-get-buffer-create):
* lisp/progmodes/elisp-mode.el (elisp--xref-make-xref):
* lisp/play/dunnet.el (dun-room-objects):
* lisp/outline.el (outline--cycle-state):
* lisp/org/ox-publish.el (org-publish-find-property):
* lisp/org/ox-html.el (org-html--unlabel-latex-environment):
* lisp/org/org-table.el (org-table-collapse-header):
* lisp/org/org-plot.el (org--plot/prime-factors):
* lisp/org/org-agenda.el (org-agenda--mark-blocked-entry):
(org-agenda-set-restriction-lock):
* lisp/org/ob-lua.el (org-babel-lua-read-string):
* lisp/org/ob-julia.el (org-babel-julia-evaluate-external-process):
(org-babel-julia-evaluate-session):
* lisp/org/ob-core.el (org-babel-default-header-args):
* lisp/obsolete/mouse-sel.el (mouse-select):
(mouse-select-secondary):
* lisp/net/tramp.el (tramp-methods):
* lisp/net/eww.el (eww-accept-content-types):
* lisp/net/dictionary-connection.el (dictionary-connection-status):
* lisp/minibuffer.el (completion-flex--make-flex-pattern):
* lisp/mh-e/mh-mime.el (mh-have-file-command):
* lisp/mh-e/mh-limit.el (mh-subject-to-sequence):
(mh-subject-to-sequence-threaded):
(mh-subject-to-sequence-unthreaded):
* lisp/mail/feedmail.el (feedmail-queue-buffer-file-name):
(feedmail-vm-mail-mode):
* lisp/ls-lisp.el (ls-lisp--sanitize-switches):
* lisp/keymap.el (key-valid-p):
* lisp/international/ccl.el (ccl-compile-branch-blocks):
* lisp/image/image-converter.el (image-convert):
* lisp/gnus/spam.el (spam-backend-check):
* lisp/gnus/nnselect.el (nnselect-generate-artlist):
* lisp/gnus/nnmairix.el (nnmairix-widget-other):
* lisp/gnus/message.el (message-mailto):
* lisp/gnus/gnus-sum.el (gnus-collect-urls-from-article):
* lisp/gnus/gnus-search.el (gnus-search-prepare-query):
* lisp/frame.el (frame-size-history):
* lisp/eshell/esh-var.el (eshell-parse-variable-ref):
* lisp/eshell/em-dirs.el (eshell-expand-multiple-dots):
* lisp/erc/erc-backend.el (erc-bounds-of-word-at-point):
* lisp/emulation/cua-rect.el (cua--rectangle-operation):
* lisp/emacs-lisp/text-property-search.el (text-property-search-forward):
* lisp/emacs-lisp/package.el (package-desc-suffix):
* lisp/emacs-lisp/faceup.el (faceup-test-explain):
* lisp/emacs-lisp/comp.el (comp-curr-allocation-class):
(comp-alloc-class-to-container):
(comp-add-cstrs):
(comp-remove-type-hints-func):
(batch-byte+native-compile):
* lisp/emacs-lisp/cl-macs.el (cl--optimize):
* lisp/elec-pair.el (electric-pair--syntax-ppss):
* lisp/doc-view.el (doc-view-doc-type):
* lisp/cedet/semantic/symref.el (semantic-symref-tool-alist):
(semantic-symref-hit-to-tag-via-db):
(semantic-symref-hit-to-tag-via-buffer):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-get-overlay):
* lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map):
* lisp/cedet/semantic/find.el (semantic-brute-find-tag-by-function):
* lisp/cedet/semantic/db.el (semanticdb-project-predicate-functions):
* lisp/cedet/semantic.el (semantic-working-type):
* lisp/cedet/ede/files.el (ede-flush-directory-hash):
* lisp/calc/calc.el (calc--header-line):
* lisp/auth-source.el (auth-source-pick-first-password):
(auth-source--decode-octal-string):
* etc/themes/modus-themes.el (modus-themes--paren):
(modus-themes--agenda-habit):
* admin/cus-test.el (cus-test-vars-with-changed-state): Fix
quoting in doc strings. In code examples, the ' character is
quoted with \\=, and regularize 'foo to `foo', and quote strings
like "foo" instead of 'foo'.
2022-04-22 16:17:22 +02:00
Lars Ingebrigtsen
16dfec3c4c
Fix map-into doc string example
...
* lisp/emacs-lisp/map.el (map-into): Fix quote quoting in example.
2022-04-22 15:17:15 +02:00
Lars Ingebrigtsen
93f87a3190
Make `C-u C-x =' be more verbose about invisible characters
...
* lisp/descr-text.el (describe-text-properties-1): Note confusing
bits about invisible characters (bug#3400).
2022-04-22 14:58:59 +02:00
Lars Ingebrigtsen
38797bfa5e
Allow completion-ignore-case to be buffer-local
...
* lisp/minibuffer.el (completing-read-default): Use the value of
completion-ignore-case from the current buffer (bug#12615).
2022-04-22 14:35:30 +02:00
Lars Ingebrigtsen
3aaed2e1cc
Fix problem with (narrow-to-page 1) with point at point-max
...
* lisp/textmodes/page.el (forward-page): Make this work more
consistently if point is on bol (bug#20663).
2022-04-22 14:35:30 +02:00
Eli Zaretskii
f2f9e8dc76
; Improve comments for a recently installed bugfix
...
* lisp/startup.el (command-line): Remove references to a wrong bug
number and improve comments for delaying the 'user-emacs-directory'
warning. (Bug#25163)
2022-04-22 15:18:56 +03:00
Po Lu
05705454d5
Don't transfer window attributes trying to find the XM drag window
...
* src/xterm.c (xm_get_drag_window): Select for impossible event
mask instead of asking for the window attributes.
2022-04-22 19:43:42 +08:00
Po Lu
381eb5d5a0
Fix default frame name on Haiku
...
* src/haikufns.c (haiku_set_background_color)
(haiku_set_cursor_color, haiku_get_pixel, haiku_put_pixel)
(haiku_set_internal_border_width)
(haiku_set_inhibit_double_buffering)
(Fhaiku_mouse_absolute_pixel_position, Fxw_color_defined_p)
(Fxw_color_values, Fx_double_buffered_p)
(Fx_display_backing_store): Clean up coding style.
(haiku_set_name): Use correct default name and don't cons extra
string all the time.
* src/haikuterm.c (haiku_read_socket): Remove unused variable.
(haiku_term_init): Set default name.
(mark_haiku_display): Mark new field.
* src/haikuterm.h (struct haiku_display_info): New field
`default_name'.
2022-04-22 05:42:09 +00:00
Po Lu
664da3e936
Add an option to disable XI2 for debugging purposes
...
* src/xterm.c (handle_one_xevent): Accept resource
`disableInputExtension', which means to skip setting up the X
input extension.
2022-04-22 09:06:44 +08:00
Thomas Fitzsimmons
390b637eed
EUDC: Handle nil BOB button label
...
* lisp/net/eudc-bob.el (eudc-bob-make-button): Do not throw error
when label is nil.
2022-04-21 17:24:29 -04:00
Sean Whitton
f8aa771af3
New electric forward slash Eshell module
...
* lisp/eshell/em-elecslash.el: New file.
* etc/NEWS:
* doc/misc/eshell.texi (Electric forward slash): Document the module.
(Make / electric): Retitle to "Make / more electric", update, add
"@noindent", and standardize terminology.
2022-04-21 11:57:12 -07:00
Sean Whitton
ad89ec84ee
Bind 'imenu' to 'M-g i' globally
...
Another candidate was 'M-s i'. Discussion on emacs-devel has led me
to conclude that most people will find 'M-g i' more intuitive and thus
easier to memorize.
* lisp/bindings.el (goto-map): Bind 'imenu' to 'M-g i' globally.
* etc/NEWS: Document the change.
* doc/emacs/programs.texi (Imenu):
* lisp/progmodes/cperl-mode.el: Replace 'M-x imenu' with 'M-g i'.
2022-04-21 11:57:01 -07:00
Tino Calancha
783dd6da31
Respect user-emacs-directory-warning in startup
...
* lisp/startup.el (command-line): If user-emacs-directory is not
accessible, delay to show a warning until all command line args
are processed (bug#25163).
2022-04-21 17:27:50 +02:00
Lars Ingebrigtsen
f3a02858dc
Allow searching for regexps with a prefix
...
* doc/misc/info.texi (Search Index): Mention it.
* lisp/info.el (Info-find-node): Allow not signalling errors.
(Info-apropos-matches): Allow taking a regexp.
(info-apropos): Prefix now means looking for a regexp.
2022-04-21 17:05:23 +02:00
Lars Ingebrigtsen
11f66e16ac
Fix indentation in copy-region-as-kill
...
* lisp/simple.el (copy-region-as-kill): Fix indendation.
2022-04-21 16:23:02 +02:00
Lars Ingebrigtsen
935f400a33
Clarify cl-incf/decf doc strings
...
* lisp/emacs-lisp/cl-lib.el (cl-incf):
(cl-decf): Clarify that nil isn't a valid value for X (bug#31715).
2022-04-21 15:11:33 +02:00
Po Lu
6a50ce949b
* src/haiku_support.cc (gui_abort): Get rid of extern "C" declarations.
2022-04-21 12:41:26 +00:00
Lars Ingebrigtsen
fa9580d13b
Link dired-do-find-regexp-and-replace to query-replace
...
* lisp/dired-aux.el (dired-do-find-regexp-and-replace): Link to
`query-replace' (bug#55050).
2022-04-21 13:50:41 +02:00
Eli Zaretskii
6b9596fff8
Unbreak build with MinGW64.
...
* src/w32.c (CONSOLE_FONT_INFO): Define only when _WIN32_WINNT is
less than _WIN32_WINNT_WINXP, i.e. for building with mingw.org's
MinGW.
2022-04-21 13:53:57 +03:00
Andreas Schwab
8ab20cd2d9
gnus: fix %a in topic line
...
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line): Also
bind `entries'.
2022-04-21 11:56:04 +02:00
Po Lu
cdf926371d
Clean up PGTK code some more
...
* src/pgtkterm.c (x_alloc_lighter_color): Simplify. Do not try
to "allocate" colors, remove unused flag and impossible return
value.
(pgtk_clear_frame): Remove unused code from NS port and remove
incorrect workaround for now-fixed double buffering.
(pgtk_make_frame_visible_wait_for_map_event_cb)
(x_clear_glyph_string_rect, x_draw_glyph_string_background)
(x_draw_glyph_string_foreground)
(x_draw_composite_glyph_string_foreground)
(x_draw_glyphless_glyph_string_foreground)
(x_fill_trapezoid_for_relief, x_erase_corners_for_relief)
(pgtk_setup_relief_color, x_draw_relief_rect, x_draw_box_rect)
(x_draw_glyph_string_box, x_get_scale_factor)
(x_draw_horizontal_wave, pgtk_draw_horizontal_wave)
(x_draw_underwave, x_draw_image_relief)
(x_draw_glyph_string_bg_rect, x_cr_draw_image)
(x_draw_image_foreground, x_draw_image_glyph_string)
(x_draw_stretch_glyph_string, pgtk_draw_glyph_string)
(x_draw_hollow_cursor, x_draw_bar_cursor, pgtk_draw_window_cursor)
(pgtk_cr_draw_image, pgtk_draw_fringe_bitmap, hourglass_cb)
(pgtk_show_hourglass, pgtk_redraw_scroll_bars, pgtk_flash)
(x_create_toolkit_scroll_bar)
(x_create_horizontal_toolkit_scroll_bar, x_scroll_bar_create)
(x_scroll_bar_remove, pgtk_set_vertical_scroll_bar)
(pgtk_set_horizontal_scroll_bar, pgtk_judge_scroll_bars)
(x_new_focus_frame, x_focus_changed, enter_notify_event)
(leave_notify_event, focus_in_event, focus_out_event)
(pgtk_cr_accumulate_data): Clean up coding style, rename
functions copied over from X and modified, and remove duplicate
definition of at least one function.
2022-04-21 16:30:25 +08:00