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

But when replacing marked text with "\" #1048

Open
nivaca opened this issue Sep 26, 2020 · 5 comments
Open

But when replacing marked text with "\" #1048

nivaca opened this issue Sep 26, 2020 · 5 comments

Comments

@nivaca
Copy link

nivaca commented Sep 26, 2020

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

@ddoherty03
Copy link

ddoherty03 commented Nov 10, 2020

I second this bug report. It also happens with quotes when a region is active. Using ubuntu 20.04 linux.

@Fuco1
Copy link
Owner

Fuco1 commented Dec 24, 2020

I can reproduce this but for me it only happens if I also select an empty space in front of the word, otherwise it just erases the word and does nothing (not even inserting \)

@pietvo
Copy link

pietvo commented Jan 24, 2021

I have the same problem with Emacs 28 on MacOS High Sierra.
This is very annoying as undo will not work properly in this case, so I have to remember the original text or find an old version of the file.

@Fuco1 Fuco1 added this to Triage Mar 18, 2024
@Fuco1 Fuco1 moved this to To triage in Triage Mar 18, 2024
@Fuco1 Fuco1 moved this from To triage to Backlog in Triage Mar 30, 2024
@Fuco1
Copy link
Owner

Fuco1 commented Mar 30, 2024

I can no longer reproduce this bug.

@temyurchenko
Copy link
Contributor

I can still reproduce this bug (calling "" on a region just deletes the region). It should be solved with the new AUCTeX version and #1208 merged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

5 participants