Skip to content

"Multiple snippets with same identity: XXX" in c++-mode snippet  #110

@kaiwk

Description

@kaiwk

What were you expecting?

In *Messages* buffers, don't appear the following warning:

Multiple snippets with same identity: "transform"
Multiple snippets with same identity: "generate_n"
Multiple snippets with same identity: "remove"
Multiple snippets with same identity: "<<"
Multiple snippets with same identity: "copy"
Multiple snippets with same identity: "c["
Multiple snippets with same identity: "transform"
Multiple snippets with same identity: "generate_n"
Multiple snippets with same identity: "remove"
Multiple snippets with same identity: "<<"
Multiple snippets with same identity: "copy"
Multiple snippets with same identity: "c["
Multiple snippets with same identity: "transform"
Multiple snippets with same identity: "generate_n"
Multiple snippets with same identity: "remove"
Multiple snippets with same identity: "<<"
Multiple snippets with same identity: "copy"
Multiple snippets with same identity: "c["

What actually happened?

Looks like there are duplicate snippets in c++-mode.

Steps to reproduce

  1. Open Emacs
  2. Open a *.cpp file
  3. insert a snippet
  4. you will see warning above in *Messages*

Operating system

Ubuntu 24.04

Emacs version

Emacs 29.3

Installed commit of doom-snippets

7f3412e31

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugSomething isn't working as intendedmode:c++

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions