From 124ef8b0ef662126696c22fb5e0abca32ec79ebe Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sat, 22 Apr 2017 21:56:06 +0200 Subject: [PATCH] Drop usage of concat when returning link to users message field --- test/webpaste-test.el | 2 +- webpaste.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/webpaste-test.el b/test/webpaste-test.el index 70005dc..2b98880 100644 --- a/test/webpaste-test.el +++ b/test/webpaste-test.el @@ -54,7 +54,7 @@ ;; Test to return a link and check that the message logged is the expected one (should (equal (webpaste-return-url "https://example.com/") - "Added https://example.com/ to kill ring.")) + "Added \"https://example.com/\" to kill ring.")) ;; Check so the kill ring contain the correct contents (should (equal (car kill-ring) "https://example.com/"))) diff --git a/webpaste.el b/webpaste.el index dee8844..3304c31 100644 --- a/webpaste.el +++ b/webpaste.el @@ -203,7 +203,7 @@ return it to the user." (kill-new returned-url) ;; Notify user - (message (concat "Added " returned-url " to kill ring."))) + (message "Added %S to kill ring." returned-url))