Skip to content

But when replacing marked text with "\" #1048

@nivaca

Description

@nivaca

Expected behavior

The selected text gets replaced with a "\".

Actual behavior

Smartparens completely changes my text and I cannot undo the changes.

Steps to reproduce the problem

In latex-mode, select a piece of text within curly braces. Type "\".

Please see screencast here: https://imgur.com/W8djB90

Backtraces if necessary (M-x toggle-debug-on-error)

Environment & version information

  • smartparens version: 20200911.1124
  • Active major-mode: latex-mode
  • Smartparens strict mode: nil
  • Emacs version (M-x emacs-version): GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28
  • Starterkit/Distribution: Vanilla
  • OS: gnu/linux

Also occurs on GNU Emacs 28.

Also happens on Mac:

  • smartparens version: 20200911.1124
  • Active major-mode: latex-mode
  • Smartparens strict mode: nil
  • Emacs version (M-x emacs-version): GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12
  • Starterkit/Distribution: Vanilla
  • OS: darwin

myparent.el.txt

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions