[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 13e9f22 428/495: Fix go-rename when buffer is not
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 13e9f22 428/495: Fix go-rename when buffer is not visiting any file |
Date: |
Sat, 7 Aug 2021 09:06:02 -0400 (EDT) |
branch: elpa/go-mode
commit 13e9f22957df5a819b711994a4933927823fa14a
Author: Miciah Masters <miciah.masters@gmail.com>
Commit: Peter Sanford <psanford@sanford.io>
Fix go-rename when buffer is not visiting any file
Fix the following error when calling go-rename in a buffer that is not
visiting any file:
Wrong type argument: bufferp, t
After this change, go-rename will instead print the following message:
Cannot use go-rename on a buffer without a file name
Follow-up to commit da55ef1ad3a4802f7d056d3065f6962db3d6fd14.
* go-rename.el (go-rename): Fix the interactive form's check for the
condition that the buffer is not visiting a file.
Closes: #272 [via git-merge-pr]
---
go-rename.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go-rename.el b/go-rename.el
index 1f55dd9..1f67bb0 100644
--- a/go-rename.el
+++ b/go-rename.el
@@ -41,7 +41,7 @@
the `gorename' tool. With FORCE, call `gorename' with the
`-force' flag."
(interactive (list
- (unless (buffer-modified-p (or (not buffer-file-name)))
+ (if (and buffer-file-name (not (buffer-modified-p)))
(read-string "New name: " (thing-at-point 'symbol)))
current-prefix-arg))
(if (not buffer-file-name)
- [nongnu] elpa/go-mode d209550 353/495: cmd/guru: emacs: minor changes to keybindings, (continued)
- [nongnu] elpa/go-mode d209550 353/495: cmd/guru: emacs: minor changes to keybindings, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 6ac5669 372/495: cmd/guru: emacs: interpret byte offsets correctly, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode afb2a24 382/495: go.tools: use golang.org/x/... import paths, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3a82342 379/495: Regenerate AUTHORS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8991b83 384/495: refactor/rename: emacs: kill go-rename buffer correctly, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode adea2e5 395/495: Make go-guru-build-tags a list of strings, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d511e35 402/495: Replace obsolete one-argument form of ‘looking-back’., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 35f6826 404/495: Bump version to 1.5.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode da55ef1 413/495: Evaluate error conditions before prompting for new name, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 59dfa96 423/495: Add confirmation prompt for Playground uploads, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 13e9f22 428/495: Fix go-rename when buffer is not visiting any file,
ELPA Syncer <=
- [nongnu] elpa/go-mode 9ab06b3 443/495: indent: fix nested dangling lines that don't use parens, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 6d58e9d 442/495: indent: fix case statement in func in composite literal, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 592bd4b 440/495: indent: fix various cases with dangling operators, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 35a5ddc 445/495: indent: fix decl statements with dangling "=", ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f9174b2 458/495: Improve go-dot-mod-mode font lock regexp, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 91b37c4 461/495: Disable output during indentation tests, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d712cf3 470/495: Make yes-or-no-p's PROMPT end in a space, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode bd2f6d2 467/495: Fix multiline func signature fontification., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode b91a6cd 479/495: Fix composite literal key fontification, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 85a20da 482/495: Only fontify ident keys in composite literals, ELPA Syncer, 2021/08/07