{"action":"opened","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5901","repository_url":"https://api.github.com/repos/syl20bnr/spacemacs","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5901/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5901/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5901/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/5901","id":151226928,"number":5901,"title":"spacemacs/report-issue fails if I set any layer variables with periods in them","user":{"login":"dwang20151005","id":14982140,"avatar_url":"https://avatars.githubusercontent.com/u/14982140?v=3","gravatar_id":"","url":"https://api.github.com/users/dwang20151005","html_url":"https://github.com/dwang20151005","followers_url":"https://api.github.com/users/dwang20151005/followers","following_url":"https://api.github.com/users/dwang20151005/following{/other_user}","gists_url":"https://api.github.com/users/dwang20151005/gists{/gist_id}","starred_url":"https://api.github.com/users/dwang20151005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwang20151005/subscriptions","organizations_url":"https://api.github.com/users/dwang20151005/orgs","repos_url":"https://api.github.com/users/dwang20151005/repos","events_url":"https://api.github.com/users/dwang20151005/events{/privacy}","received_events_url":"https://api.github.com/users/dwang20151005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-26T20:06:48Z","updated_at":"2016-04-26T20:06:48Z","closed_at":null,"body":"#### Description\r\nWhen `dotspacemacs-configuration-layers` has any symbols with periods in them (e.g., `(jane :variables Omake\\.Server\\.program)`), spacemacs/report-issue fails with an error `Invalid use of ``\\\\' in replacement text`.\r\n\r\nFor me, this can be fixed by the following patch.  No idea if this is acceptable generally.\r\n\r\n    diff --git a/core/core-spacemacs.el b/core/core-spacemacs.el\r\n    index 9feebb2..65bfcc2 100644\r\n    --- a/core/core-spacemacs.el\r\n    +++ b/core/core-spacemacs.el\r\n    @@ -265,7 +265,7 @@ with the message pre-filled with template and information.\"\r\n         (setq template (replace-regexp-in-string\r\n                         \"%SYSTEM_INFO%\"\r\n                         (spacemacs//describe-system-info-string)\r\n    -                    template [keep-case]))\r\n    +                    template [keep-case] t))\r\n         ;; Include the backtrace directly in the template, if it exists\r\n         (setq template (replace-regexp-in-string\r\n                         \"%BACKTRACE%\"\r\n    \r\n#### Reproduction guide\r\n- Start Emacs \r\n- Put a symbol with a period into your .spacemacs (see my \"System info\")\r\n- Call spacemacs/report-issue\r\n\r\n*Observed behaviour:*\r\nError described above.\r\n\r\n*Expected behaviour:*\r\nExpected a browser window.\r\n\r\n#### System Info\r\n- OS: gnu/linux\r\n- Emacs: 24.5.2\r\n- Spacemacs: 0.105.13\r\n- Spacemacs branch: chrome-layer-plain-text-gmail (rev. 107b53f)\r\n- Graphic display: t\r\n- Distribution: spacemacs\r\n- Editing style: vim\r\n- Completion: helm\r\n- Layers:\r\n```elisp\r\n((auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-enable-help-tooltip t)\r\n (chrome :variables chrome-gmail-rich-text-format nil)\r\n emacs-lisp\r\n (jane :variables jane-jane-elisp-path \"/usr/local/home/dwang/workspaces/jane/emacs/dev/spacemacs/jane-tweaks/rewrite/ share /app/emacs/\" Omake\\.Server\\.program \"/j/office/app/emacs/prod/jane-elisp/bin/build-manager\")\r\n markdown org sql\r\n (version-control :variables version-control-diff-tool 'diff-hl)\r\n vinegar w3m)\r\n```\r\n\r\n\r\n#### Backtrace\r\n```\r\n Debugger entered--Lisp error: (error \"Invalid use of `\\\\' in replacement text\")\r\n  replace-match(\"#### System Info\\n- OS: gnu/linux\\n- Emacs: 24.5.2\\n- Spacemacs: 0.105.13\\n- Spacemacs branch: chrome-layer-plain-text-gmail (rev. 107b53f)\\n- Graphic display: t\\n- Distribution: spacemacs\\n- Editing style: vim\\n- Completion: helm\\n- Layers:\\n```elisp\\n((auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-enable-help-tooltip t)\\n (chrome :variables chrome-gmail-rich-text-format nil)\\n emacs-lisp\\n (jane :variables jane-jane-elisp-path \\\"/usr/local/home/dwang/workspaces/jane/emacs/dev/spacemacs/jane-tweaks/rewrite/+share+/app/emacs/\\\" Omake\\\\.Server\\\\.program \\\"/j/office/app/emacs/prod/jane-elisp/bin/build-manager\\\")\\n markdown org sql\\n (version-control :variables version-control-diff-tool 'diff-hl)\\n vinegar w3m)\\n```\\n\" [keep-case] nil \"%SYSTEM_INFO%\" nil)\r\n  replace-regexp-in-string(\"%SYSTEM_INFO%\" \"#### System Info\\n- OS: gnu/linux\\n- Emacs: 24.5.2\\n- Spacemacs: 0.105.13\\n- Spacemacs branch: chrome-layer-plain-text-gmail (rev. 107b53f)\\n- Graphic display: t\\n- Distribution: spacemacs\\n- Editing style: vim\\n- Completion: helm\\n- Layers:\\n```elisp\\n((auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-enable-help-tooltip t)\\n (chrome :variables chrome-gmail-rich-text-format nil)\\n emacs-lisp\\n (jane :variables jane-jane-elisp-path \\\"/usr/local/home/dwang/workspaces/jane/emacs/dev/spacemacs/jane-tweaks/rewrite/+share+/app/emacs/\\\" Omake\\\\.Server\\\\.program \\\"/j/office/app/emacs/prod/jane-elisp/bin/build-manager\\\")\\n markdown org sql\\n (version-control :variables version-control-diff-tool 'diff-hl)\\n vinegar w3m)\\n```\\n\" \"<PLEASE REPLACE ALL UPPERCASE EXPRESSIONS AND DELETE THIS LINE>\\n#### Description\\nDESCRIPTION OF THE PROBLEM\\n\\n#### Reproduction guide\\n- Start Emacs\\n- REPRODUCTION STEPS\\n\\n*Observed behaviour:*\\nDESCRIPTION OF THE OBSERVED BEHAVIOUR\\n\\n*Expected behaviour:*\\nDESCRIPTION OF THE EXPECTED BEHAVIOUR\\n\\n(%LAST_KEYS%)\\n\\n%SYSTEM_INFO%\\n\\n#### Backtrace\\n```\\n%BACKTRACE%\\n```\\n\" [keep-case])\r\n  (setq template (replace-regexp-in-string \"%SYSTEM_INFO%\" (spacemacs//describe-system-info-string) template [keep-case]))\r\n  (let* ((url \"http://github.com/syl20bnr/spacemacs/issues/new?body=\") (template (let ((temp-buffer (generate-new-buffer \" *temp*\"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents-literally ...) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))) (setq template (replace-regexp-in-string \"%SYSTEM_INFO%\" (spacemacs//describe-system-info-string) template [keep-case])) (setq template (replace-regexp-in-string \"%BACKTRACE%\" (if (get-buffer \"*Backtrace*\") (save-current-buffer (set-buffer \"*Backtrace*\") (buffer-substring-no-properties (point-min) (min (point-max) 1000))) \"BACKTRACE IF RELEVANT\") template [keep-case])) (setq template (replace-regexp-in-string \"(%LAST_KEYS%)\\n\" (if (and arg (y-or-n-p (concat \"Do you really want to \" \"include your last pressed keys? It \" \"may include some sensitive data.\"))) (concat (spacemacs//describe-last-keys-string) \"\\n\") \"\") template [keep-case])) (setq url (url-encode-url (concat url template))) (setq url (replace-regexp-in-string \"#\" \"%23\" url)) (browse-url url))\r\n  spacemacs/report-issue(nil)\r\n  call-interactively(spacemacs/report-issue nil nil)\r\n  command-execute(spacemacs/report-issue)\r\n\r\n```\r\n"}}