aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/frames.texi (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make 'frame-use-time' more reliable. (bug#80397)Stéphane Marks6 days1-27/+54
| | | | | | | | | | | | | Walking the window tree is more reliable than using the selected window. Implement 'get-mru-frame' on top of 'get-mru-frames' using 'frame-use-time'. * lisp/frame.el (frame-use-time): Change to walk the window tree for the specified frame. (get-mru-frames): New defun. (get-mru-frame): Change to call 'get-mru-frames'. * doc/lispref/frames.texi: Update documentation. * etc/NEWS: Update announcement.
* Add frame-use-time, get-mru-frame, use mru frame in delete-frame (bug#80397)Stéphane Marks2026-02-181-0/+49
| | | | | | | | | | * lisp/frame.el (get-mru-frame): New defun. * src/frame.c (delete_frame): Call 'get-mru-frame' (when force is not Qnoelisp) to select the most recently used frame that is not the deleted frame as the candidate to select. (syms_of_frame): Qget_mru_frame new DEFSYM. * doc/lispref/frames.texi: Document the new functions. * etc/NEWS: Announce the new functions.
* Document frame id related commands and tweak a return value (Bug#80192)Stéphane Marks2026-01-271-0/+24
| | | | | | | | * doc/lispref/frames.texi (Input Focus): Document the commands 'select-frame-by-id' and 'undelete-frame-by-id'. * lisp/frame.el (select-frame-by-id): Clarify return value and add missing optional argument 'noerror' in sympathy with 'undelete-frame-by-id'.
* Add frame identifiers (bug#80138)Stéphane Marks2026-01-131-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A unique frame id is assigned to a new or cloned frame, and reused on an undeleted frame. The id facilitates unambiguous identification among frames that share identical names or titles, deleted frames where a live frame object no longer exists that we can resurrect by id, for example via 'tab-bar-undo-close-tab'. It also aids debugging at the C level using the frame struct member id. Rewrite 'clone-frame' and 'undelete-frame' to not let bind variables that 'make-frame' uses to avoid conflicts with nested 'make-frame' calls, for example via 'after-make-frame-functions'. * lisp/frame.el (clone-frame, undelete-frame): Use 'frame--purify-parameters' to supply parameters explicitly. (undelete-frame--save-deleted-frame): Save frame id for restoration. (undelete-frame): Restore frame id. (frame--purify-parameters): New defun. (make-frame): Assign a new id for a new or cloned frame, reuse for undeleted frame. * src/frame.h (struct frame): Add id member. (frame_next_id): New extern. * src/frame.c (frame_next_id): New global counter. (frame_set_id, frame_set_id_from_params): New function. (Fframe_id): New DEFUN. (syms_of_frame <Sframe_id>): New defsubr. (syms_of_frame <Qinternal_id>): New DEFSYM. (syms_of_frame <frame_internal_parameters>): Add 'Qinternal_id'. * src/androidfns.c (Fx_create_frame): * src/haikufns.c (Fx_create_frame): * src/nsfns.m (Fx_create_frame): * src/pgtkfns.c (Fx_create_frame): * src/w32fns.c (Fx_create_frame): * src/xfns.c (Fx_create_frame): Call 'frame_set_id_from_params'. * doc/lispref/frames.texi: Add documentation. * etc/NEWS: Announce frame id.
* Add frame parameters 'cloned-from' and 'undeleted' (bug#80104)Stéphane Marks2026-01-031-1/+16
| | | | | | | | | | | | * lisp/frame.el (clone-frame): Set the frame parameter 'cloned-from'. (undelete-frame): Set the frame parameter 'undeleted'. * src/frame.c (syms_of_frame): <Qcloned_from> <Qundeleted>: New DEFSYM. (syms_of_frame): Add 'Qcloned_from' and 'Qundeleted' to 'frame_internal_parameters'. * doc/lispref/frames.texi: Document these frame parameters. * etc/NEWS: Announce the new frame parameters.
* ; Add 2026 to copyright years.Sean Whitton2026-01-011-1/+1
|
* Don't change visibility of tty root frames (Bug#80032)Martin Rudalics2025-12-201-6/+3
| | | | | | * src/frame.c (Fmake_frame_visible, Fmake_frame_invisible): * doc/lispref/frames.texi (Visibility of Frames): Don't change visibility of tty root frames. (Bug#80032)
* Fix documentation of 'alpha-background' frame parameterEli Zaretskii2025-11-221-1/+3
| | | | | | * doc/lispref/frames.texi (Font and Color Parameters): Fix documentation of values of 'alpha-background'. Suggested by Jacob S. Gordon <jacob.as.gordon@gmail.com>. (Bug#79861)
* Handle resizing of fullscreen frames more consistently (Bug#79704)Martin Rudalics2025-11-021-0/+31
| | | | | | | | | | | | | | | | * src/frame.c (adjust_frame_size): Honor new option 'alter-fullscreen-frames'. (syms_of_frame) <alter-fullscreen-frames>: New option to maintain consistent state when attempting to resize fullscreen frames. Default to 'inhibit' for NS builds because these resized the frame while leaving the 'fullscreen' parameter alone (Bug#79704). (syms_of_frame) <Qinhibit>: Define symbol. * lisp/cus-start.el (standard): Add customization options for 'alter-fullscreen-frames' * doc/lispref/frames.texi (Frame Size): Describe new option 'alter-fullscreen-frames'. * etc/NEWS: Call out new option 'alter-fullscreen-frames'.
* Add frame parameter which allows border transparencyGarklein2025-07-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The new 'borders-respect-alpha-background' frame parameter, when set to 't', will make window dividers and internal borders respect the 'alpha-background' frame parameter. This allows transparent gaps between windows. * doc/lispref/frames.texi (Font and Color Parameters): Document the change. * src/frame.c (frame_parm_table, syms_of_frame) (gui_set_borders_respect_alpha_background): * src/frame.h (struct frame): Add frame parameter. * src/androidfns.c (x_create_frame, android_create_tip_frame) (android_frame_parm_handlers): * src/haikufns.c (haiku_create_frame, haiku_create_tip_frame) (haiku_frame_parm_handlers): * src/nsfns.m (ns_frame_parm_handlers, x_create_frame): * src/w32fns.c (x_create_frame, w32_create_tip_frame) (w32_frame_parm_handlers): Add dummy parameters for backends that don't support opacity. * src/pgtkfns.c (pgtk_frame_parm_handlers, x_create_frame) (pgtk_create_tip_frame): * src/pgtkterm.c (pgtk_draw_window_divider): * src/xfns.c (x_create_frame, x_create_tip_frame) (x_frame_parm_handlers) * src/xterm.c (x_draw_window_divider) (x_clear_under_internal_border): Implement parameter on backends that support opacity.
* Have 'delete-frame' delete initial daemon frame only if FORCE is non-nilMartin Rudalics2025-05-291-0/+3
| | | | | | | | | | | * src/frame.c (delete_frame): Delete initial daemon frame only if FORCE is non-nil (Bug#78583). (Fdelete_frame): Rewrite doc-string to mention that it can delete an initial daemon frame if and only if FORCE is non-nil. * etc/NEWS: * doc/lispref/frames.texi (Deleting Frames): Mention that 'delete-frame' can delete an initial daemon frame if and only if FORCE is non-nil.
* Fix infinite looping in 'next-frame' and associates (Bug#77985)Martin Rudalics2025-05-091-6/+11
| | | | | | | | | | | | | | * src/frame.c (next_frame): Rewrite to avoid infinite looping if FRAME itself does not qualify as candidate frame (Bug#77985). (Fnext_frame, Fprevious_frame): Adjust do-strings. * lisp/frame.el (other-frame): Adjust doc-string. (frame-list-1): New function. (make-frame-names-alist): Rewrite using 'frame-list-1' instead of 'next-frame' (Bug#77985). (delete-other-frames): Rewrite using 'frame-list' instead of 'next-frame'. * doc/lispref/frames.texi (Finding All Frames): Minor clarifications for 'frame-list' and 'next-frame'.
* ; Improve the documentation of a recent commitEli Zaretskii2025-04-191-2/+5
| | | | | | * etc/NEWS: * doc/lispref/frames.texi (Deleting Frames): Improve documentation of 'frame-deletable-p'.
* Further amendments of child frame handling and documentationMartin Rudalics2025-03-261-88/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (frame_subsumes_p): New static function (delete_frame): On ttys refuse to delete a frame that could be used as surrogate minibuffer frame by surviving frames. (store_frame_param): Make sure 'minibuffer' parameter does not reference a deleted window. If on a tty it references a live window, make sure its frame has the same root frame as the frame where the parameter shall be installed. Also on ttys make sure that storing the 'parent-frame' parameter does not assign a surrogate minibuffer frame a different root frame than that of any of its client frames. Further on ttys assert that making a child a new root frame gives it the dimensions of the terminal. (Fmouse_position_in_root_frame): Don't use XFRAME before it's clear that FRAME is a frame. * doc/lispref/elisp.texi (Top): Add menu for Child Frames section. * doc/lispref/frames.texi (Buffer Parameters): Mention that value 'child-frame' is not special for 'minibuffer' parameter on text terminals. (Visibility of Frames): Fix description of 'iconify-frame'. (Raising and Lowering): 'minibuffer-auto-raise' is an option. (Child Frames): Major rewrite using subsections. Explain new and deviant features on text terminals - menu bar access, reparenting, deleting, visibility and minibuffer-only child frames. * etc/NEWS: Remove remark that child frames cannot be arbitrarily reparented on ttys.
* ; Fix recent documentation changesEli Zaretskii2025-03-221-4/+4
| | | | | * doc/lispref/frames.texi (Frames, Visibility of Frames): * etc/NEWS: Fix wording, punctuation, and markup.
* Fix and document frame parameters for text terminals and child framesMartin Rudalics2025-03-221-138/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (Fmake_frame_invisible): In doc-string describe effect on text terminals. Set FRAME correctly when called with nil value. Make frame invisible before calling mru_rooted_frame or next_frame. (Ficonify_frame): Make it work for child frames on text terminals (Fmodify_frame_parameters): Make value 'icon' for 'visibility' work for child frames. * src/dispnew.c (frame_ancestors_visible_p): New function. (frames_with_root): If VISIBLE_ONLY is non-nil, return only frames whose ancestors are all visible to avoid that redisplay draws visibly orphaned child frames. * doc/lispref/frames.texi (Frames): Move descriptions of top frame and 'tty-top-frame' here. (Frame Layout): Mention that on text terminals the outer border can be emulated by setting the 'undecorated' frame parameter. (Frame Position, Frame Parameters, Window Frame Parameters) (Position Parameters, Size Parameters): Rewrite sections dealing with the handling of frame parameters in text terminals. (Layout Parameters): Move description of 'undecorated' parameter here. Clarify semantics of 'menu-bar-lines' parameter. (Frame Interaction Parameters): Move description of 'visibility' parameter here. Mention which parameters are not implemented on text terminals. (Mouse Dragging Parameters): Describe how these work on text terminals. (Visibility of Frames): Rewrite section. (Raising and Lowering): Describe for text terminals. (Child Frames): Fix description of 'iconify-child-frame' option.
* Merge from origin/emacs-30Eli Zaretskii2025-03-151-2/+8
|\ | | | | | | | | 1a8fbf69e33 Fix 'whitespace-mode' in CJK locales 01c03043e6e ; Improve documentation of 'gui-get-selection' use on X
| * ; Improve documentation of 'gui-get-selection' use on XEli Zaretskii2025-03-151-2/+8
| | | | | | | | | | | | * doc/lispref/frames.texi (Window System Selections): * lisp/select.el (gui-get-selection): Suggest to use an explicit DATA-TYPE when calling 'gui-get-selection'.
* | Clarify semantics of 'frame-inhibit-implied-resize'Martin Rudalics2025-02-241-18/+42
| | | | | | | | | | | | * src/frame.c (frame_inhibit_implied_resize): * doc/lispref/frames.texi (Implied Frame Resizing): Clarify semantics of 'frame-inhibit-implied-resize'.
* | ; Fix last changeEli Zaretskii2025-02-231-6/+6
| | | | | | | | | | | | * src/frame.c (syms_of_frame) <frame-inhibit-implied-resize>: * doc/lispref/frames.texi (Implied Frame Resizing): Don't use passive voice. (Bug#76275)
* | Optionally inhibit implied resizing while frame is made (Bug#76275)Martin Rudalics2025-02-231-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (frame_inhibit_resize): Handle new value 'force' for 'frame-inhibit-implied-resize' (Bug#76275). (frame_inhibit_implied_resize): New value 'force' to inhibit implied resizing while a new frame is made. * lisp/cus-start.el (frame-inhibit-implied-resize): Make new value 'force' customizable. * doc/lispref/frames.texi (Implied Frame Resizing): Describe new value 'force' of 'frame-inhibit-implied-resize'. * etc/NEWS: Announce new value 'force' of 'frame-inhibit-implied-resize'.
* | Make yank-media auto select the best mime typeVisuwesh2025-02-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/yank-media.el (yank-media-preferred-types): Add new variable that holds the list of mime types in order of their preference. (yank-media-autoselect-function): Add new variable and function to choose the most preferred media type. (yank-media): Make 'yank-media' choose the most preferred mime type by default. * doc/emacs/killing.texi (Clipboard): * doc/lispref/frames.texi (Yanking Media): Document the new behaviour, and the new variables. * etc/NEWS: Announce the change. (Bug#75116)
* | Merge remote-tracking branch 'origin/emacs-30'Stefan Monnier2025-02-051-1/+6
|\ \ | |/
| * Improve documentation of 'display-monitor-attributes-Eli Zaretskii2025-02-021-1/+6
| | | | | | | | | | | | * doc/lispref/frames.texi (Multiple Terminals): * lisp/frame.el (display-monitor-attributes-list): Better documentation of what the 'source' key means on X. (Bug#75936)
* | Merge from origin/emacs-30Eli Zaretskii2025-02-011-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6447634f171 ; * admin/MAINTAINERS: Add CC Mode. 486d5d524ca Update cc-mode URL to point to nongnu.org 17ef46e849d ; * etc/NEWS: Note CVE-2024-53920 further up also. 05ee2b741f0 ; * CONTRIBUTE: Suggest to run more tests sometimes. e74efd9a428 * CONTRIBUTE: Recommend running the unit test prior to co... a9cde2463ab Don't signal an error in treesit-node-at 5d021a711a9 ; Improve documentation of '.dir-locals.el' 84595cbcc78 ; (let-alist): Document double-dot escape syntax. (Bug#75... 5617b07a45b ; Prefer HTTPS to HTTP in docs fdd23023c84 ; * admin/MAINTAINERS: Sort external packages alphabetica... 74dcfe155a9 ; * etc/NEWS: Remove temporary documentation markers. a87c382caba ; * etc/NEWS: Add missing temporary documentation tags. 3c820cd2650 Document insert-directory-program as a user option 2c1edf5f62a doc/lispref/modes.texi (Syntactic Font Lock): Update for ... # Conflicts: # etc/NEWS
| * ; Prefer HTTPS to HTTP in docsStefan Kangas2025-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | * doc/emacs/android.texi (Android Software): * doc/lispref/frames.texi (X Selections): * doc/misc/cc-mode.texi (Custom Filling and Breaking): * doc/misc/efaq.texi (Basic editing): * doc/misc/gnus.texi (Propagating marks, Spam Statistics Package): * doc/misc/org.org (External Links, Images in HTML export) (LaTeX Export, LaTeX math snippets): Prefer HTTPS to HTTP. Fix or mark some broken links while we're at it.
* | ; Fix last changeEli Zaretskii2025-01-281-2/+2
| | | | | | | | | | | | * src/buffer.c (Fother_buffer): * lisp/frame.el (make-frame): * doc/lispref/frames.texi (Creating Frames): Fix em-dash.
* | New variable 'expose-hidden-buffer' (Bug#75828)Martin Rudalics2025-01-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | * src/frame.c (make_frame): Handle 'expose-hidden-buffer'. (expose-hidden-buffer): New variable to handle hidden buffers. * src/buffer.c (Fother_buffer): Mention that it does not return a hidden buffer. * lisp/frame.el (make-frame): In doc-string describe handling of hidden buffers. * doc/lispref/frames.texi (Creating Frames): Explain handling of hidden buffers in description of 'make-frame'.
* | Merge from origin/emacs-30Eli Zaretskii2025-01-251-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 67903f5909d Restore the old behavior of `bookmark-write-file' 062da7003f9 ; Improve prompts and error messages in 'info-look' 52dc01f1c8b ; * admin/admin.el (set-version): Note about Android. fb282da2a07 Avoid double spaces around abbrevations in Texinfo bc1ab8ac3d8 ; * doc/emacs/custom.texi (Init Rebinding): Fix spacing. b41ef43af19 ; Fix previous change 5638b1d6bd4 Ispell: Use "personal dictionary" terminology consistently cc791e7499f ; Check man pages for mistakes less frequently 4ed4792e3b9 ; * admin/release-process: Minor copy-edits. 4a867c823b7 Add language server "ruff server" for Python 9e687c2871f Fix go-ts-mode type declaration indentation (Bug#75785) f751b3afa4f ; Minor improvements for doc strings in map.el cda78edc7d9 ; Fix typos ce50a1d3c18 ; * src/w32.c (w32_memory_info): Fix coding style of last... 58d3d4820ad Fix bug in w32_memory_info 77386412050 Avoid crashes in redisplay due to problematic font setups 0e3687e6006 Improve 'key-valid-p' docstring 9878092d2b9 Minor copyedits in internals.texi 4726900fdc5 Better document side-effect free and pure C functions 04c475a39f2 ; Fix documentation about faces of tool-tip text # Conflicts: # admin/codespell/codespell.exclude
| * ; Fix typosStefan Kangas2025-01-231-1/+1
| |
| * Update copyright year to 2025Stefan Kangas2025-01-021-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | ; Fix cross-references in Texinfo manualsEli Zaretskii2025-01-191-1/+1
| |
* | Revert "Revert "Use @xref more consistently; "See @ref" -> "@xref"""Eli Zaretskii2025-01-191-2/+1
| | | | | | | | | | | | | | | | This reverts commit 59167e2de8a93341cd235d83e034c00be32403f6. TRT to use reference in Texinfo is to place some punctuation character after a reference. This is common both to @ref and to @xref. So this is what should be done to fix the changeset, not to revert it.
* | Revert "Use @xref more consistently; "See @ref" -> "@xref""Po Lu2025-01-191-1/+2
| | | | | | | | | | This reverts commit e54b94c28cdf9699009e7691f7c8ffa5b2c7b741, which prevented building Emacs on a number of my machine(s).
* | Use @xref more consistently; "See @ref" -> "@xref"Stefan Kangas2025-01-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Using Interactive): * doc/lispref/customize.texi (Type Keywords): * doc/lispref/edebug.texi (Using Edebug, Specification List): * doc/lispref/frames.texi (Frame Layout): * doc/lispref/functions.texi (What Is a Function, Related Topics): * doc/lispref/keymaps.texi (Controlling Active Maps, Key Lookup): * doc/lispref/minibuf.texi (Completion Variables): * doc/lispref/os.texi (Terminal Input): * doc/lispref/text.texi (JSONRPC Overview): * doc/misc/calc.texi (More About Embedded Mode, Customizing Calc): * doc/misc/cc-mode.texi (Movement Commands, Auto-newlines) (Config Basics, Custom Auto-newlines): * doc/misc/gnus.texi (Email Based Diary): * doc/misc/htmlfontify.texi (Interactive, Non-interactive): (Variables): * doc/misc/idlwave.texi (Using the Shell): * doc/misc/srecode.texi (Quick Start, User Templates) (Parts of SRecode, Compound Variable Values, Template Macros): * doc/misc/tramp.texi (Inline methods, FUSE-based methods) (Predefined connection information, Remote shell setup) (Frequently Asked Questions): * doc/misc/transient.texi (Configuration, Technical Introduction): (Binding Suffix and Infix Commands, Transient State): (Prefix Slots, Predicate Slots): * doc/misc/wisent.texi (Example, Compiling a grammar, Conflicts): (Grammar Debugging, Error recovery):
* | Handle removal of selected tty child frameMartin Rudalics2025-01-141-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/dispextern.h (root_frame): * src/frame.h (root_frame): Move declaration from dispextern.h to frame.h. (SET_FRAME_VISIBLE): Whend making the selected tty child frame invisible, use mru_rooted_frame to find a frame to switch to. * src/dispnew.c (root_frame): Move root_frame to frame.c. * src/frame.c (do_switch_frame): On ttys don't change the top frame when switching from a child frame to another frame with the same root. (root_frame): Move here from dispnew.c. (Fframe_root_frame): New Lisp function. (delete_frame): Whend deleting the selected tty child frame use, mru_rooted_frame to find a frame to switch to. * src/window.c (mru_rooted_frame): New function. * src/window.h (mru_rooted_frame): Declare it. * doc/lispref/frames.texi (Child Frames): Describe new function 'frame-root-frame'.
* | Update copyright year to 2025Paul Eggert2025-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Merge from origin/emacs-30Eli Zaretskii2024-12-211-0/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f8da2d7854 ; * ChangeLog.4: Update. 49adcf30b01 ; * etc/AUTHORS: Update. 1381c6f9591 * Update authors.el 5c0f3f5826e ; * etc/NEWS: Mark unmarked entries. 8a0c9c234f1 Document 'trusted-content c6ce11b2a48 Mention network-interface-list in network-interface-info ... a7905145f70 ; * lisp/emacs-lisp/re-builder.el (reb-change-syntax): Fi... cde22c02011 Move NEWS items from unreleased 28.3 to released 29.1 5686bb5b428 Improve browse-url-android-share docstring 92041e15f4a Minor doc fix for url-handler-regexp 9fd96e2ab95 Improve reb-change-syntax docstring b9dc337ea74 * lisp/files.el (trusted-content-p): Make `:all` work in ... 4b685bc4fcd ; * src/process.c (Fnetwork_interface_list): Fix typo. c14c4895719 ; * lisp/net/nsm.el (nsm-trust-local-network): Fix typo. 10f976300d0 ; Add some tree-sitter thing content to the manual 55303a6bc0a * lisp/org/ox-texinfo.el (org-texinfo-template): Fix Info... 8b6c6cffd1f trusted-content: Adjust the last patch based on prelimina... 69b16e5c638 ; * etc/NEWS: Fix typos. 5c6dbc65f36 ; * doc/lispref/frames.texi (Multiple Terminals): Add ind... 856a58e2827 Update documentation of 'etags' regexps some more 4c68846223b Update documentation of 'etags' regexps b5158bd1914 elisp-mode.el: Disable Flymake byte-compile backend in un... # Conflicts: # doc/man/etags.1 # etc/NEWS # lisp/org/ox-texinfo.el
| * ; * doc/lispref/frames.texi (Multiple Terminals): Add indexing.Eli Zaretskii2024-12-151-0/+3
| |
* | Add more documentation for TTY child framesRobert Pluim2024-12-191-2/+2
| | | | | | | | | | | | * doc/lispref/frames.texi (Child Frames): Document that TTY child frames are now supported. * etc/NEWS: Document another limitation of TTY child frames.
* | Add support for 'yank-media' on MS-WindowsCecilio Pardo2024-11-031-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the capacity to handle types different from strings to the clipboard management functions on MS-Windows, and some logic required to convert media types names and content to be what yank-media and the modes that use it expect (bug#71909). * lisp/term/w32-win.el (w32--selection-target-translations): New variable that holds the name translations for media types. (w32--translate-selection-target): New function, translate the name of a media type. (w32--translate-reverse-selection-target): New function, reverse translation. (w32--get-selection): Modified to translate target names when asked for targets, and retrieve media types when asked for them. (w32--mime-type-textual-p): New function, checks if a MIME type is textual. * lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler): Fixed the image save mechanism, that added line feed characters on MS-Windows, breaking binary formats. * src/w32image.c (gdiplus_init): Modified to fetch more functions fromm gdiplus. (get_encoder_clsid): Renamed to 'w32_gdip_get_encoder_clsid' and made nonstatic. (gdiplus_startup): Renamed to 'w32_gdiplus_startup' and made nonstatic. * src/w32select.c (stdfmt_name): Made global, was static function. (convert_dibv5_to_png): New function to convert DIBV5 clipboard format to PNG. (get_clipboard_format_name): New function get the name of a format given its index. (Fw32__get_clipboard_data_media): New function, retrieves and converts media content. (syms_of_w32select): Export new lisp functions. * src/w32gdiplus.h: New file, for definitions in w32image.c * doc/lispref/frames.texi: Updated with MS-Windows support. * etc/NEWS: Added entry about new feature.
* | Merge from origin/emacs-30Eli Zaretskii2024-11-021-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | 98796f95fa5 Work on proced-tests.el 8a4d13e370c ; * doc/lispref/frames.texi (Yanking Media): Add index en... 0aae02a3741 * lisp/files.el (require-with-check): Be a bit more lenie... cc6a11f4832 (with-peg-rules): Fix references to rulesets (bug#74018) 70f084db2ff ; * etc/NEWS: Fix typo (bug#74066). 9e1abf11fc1 Tweak doc w.r.t to "void function" (bug#73886) 7a8ca202c5e Fix flakey proced refine tests (Bug#73441) 55a8cec013e Another 'void' update
| * ; * doc/lispref/frames.texi (Yanking Media): Add index entry.Eli Zaretskii2024-10-291-0/+1
| |
* | Merge from origin/emacs-30Michael Albinus2024-10-181-1/+2
|\ \ | |/ | | | | | | | | | | | | 7dbbd58d6c9 Locate password icon in global-mode-string 19049efd30f ; Fix last documentation change 2c640e63a8a Explain tty-color-mode frame parameter more. e5d600006e2 ; * src/doc.c (Ftext_quoting_style): Make doc string agre... 90c6880a922 (track-changes--after): Fix problem found in bug#73041
| * ; Fix last documentation changeEli Zaretskii2024-10-181-1/+2
| | | | | | | | | | | | | | | | * doc/misc/efaq.texi (Colors on a TTY): * doc/lispref/frames.texi (Font and Color Parameters): * doc/emacs/cmdargs.texi (Colors X): More accurate documentation of TTY color modes and 'tty-color-mode' frame parameter. (Bug#73813)
| * Explain tty-color-mode frame parameter more.Robert Pluim2024-10-181-1/+1
| | | | | | | | | | | | | | | | | | * doc/emacs/cmdargs.texi (Colors X): Explain that tty color support is dynamic. * doc/lispref/frames.texi (Font and Color Parameters): Explain that 'tty-color-mode' can be changed on the fly. * doc/misc/efaq.texi (Colors on a TTY): Explain how to disable 'tty-color-mode', either at startup or dynamically.
* | Fix two issues with 'window-deletable-p'Martin Rudalics2024-08-211-0/+37
|/ | | | | | | | | | | | | | * lisp/window.el (window-deletable-functions): Clarify doc-string. (window-deletable-p): Handle check whether WINDOW's frame can be deleted via new function 'frame-deletable-p' (a comparison with the frame returned by 'next-frame' fails in too many cases). Do not try to run 'window-deletable-functions' in WINDOW's buffer when WINDOW is internal. * lisp/frame.el (frame-deletable-p): New function. * doc/lispref/frames.texi (Deleting Frames): Describe new function 'frame-deletable-p'. * etc/NEWS: Mention 'frame-deletable-p'.
* Standardize possessive apostrophe usage in manuals, docs, and commentsStefan Kangas2024-07-251-4/+4
| | | | | See the note in admin/notes/documentation. Ref: https://lists.gnu.org/r/emacs-devel/2012-02/msg00649.html
* ; Fix typosStefan Kangas2024-07-181-1/+1
|
* Remove more references to Windows 95Stefan Kangas2024-06-201-1/+1
| | | | | | | | | | | * doc/lispref/frames.texi (Window System Selections): * doc/misc/ediff.texi (Patch and Diff Programs): * doc/misc/efaq-w32.texi (Third-party multibyte, Swap Caps NT) (Subprocesses and floppy drive): * etc/PROBLEMS: * lisp/printing.el (pr-path-alist, pr-command): * lisp/ps-print.el: Remove more references to Windows 95, which is not supported by Emacs.