Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: (ement-room-mode) Set `filter-buffer-substring-function' #278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phil-s
Copy link

@phil-s phil-s commented Apr 20, 2024

Strip the line-prefix and wrap-prefix text properties which are used when formatting certain Matrix events, but which should not be copied into other buffers.

This is especially relevant when using %W in ement-room-message-format-spec to provide indentation when wrapping message body lines.

With this filter configured, we can copy text from an ement room and yank it into another buffer without this formatting being included. See also filter-buffer-substring:

For example, major or minor modes can use `filter-buffer-substring-function' to exclude text properties that are special to a buffer, and should not be copied into other buffers.

Strip the `line-prefix' and `wrap-prefix' text properties which are
used when formatting certain Matrix events, but which should not be
copied into other buffers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant