doomemacs / doomemacs/snippets

C++ Comment Snippet interferring With Emacs Comment Complete

Open
#108 0 comments 2 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
YASnippet
Stars
313
Forks
98
PR merge metrics
No merged PRs in 30d

Description

### What were you expecting?

Typing `/*` and hitting enter should create a single comment region.

### What actually happened?

Typing `/*` causes emacs to automatically append `*/` after the cursor and for the `/**` "doc" snippet to prompt which causes an extra `*/` to appear as the doc snippet adds its own. Produces the following.
![msrdc_eUCAT3XSbC](https://github.com/doomemacs/snippets/assets/17734191/e3135684-3e8f-4a27-b11d-8abc8ebdefa7)

### Steps to reproduce

1. Type `/*`
2. Hit enter

### Operating system

Ubuntu 22.04 under WSL2

### Emacs version

Emacs 29.3

### Installed commit of doom-snippets

c1384cc7975ee7ca7d551eb56c104d768440c3cb

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the behavior in Emacs 29.3 under Ubuntu 22.04 on WSL2 using the recorded doom-snippets commit. Start by locating the C++ comment and /** documentation snippets, then verify that typing /* and pressing Enter creates one comment region without a duplicate */ terminator.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, emacs
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.