The Treasury's top civil servant threatened legal action after receiving an advanced copy of a book published by Alex Salmond, MPs have heard.
SNP former leader Mr Salmond told the Commons Sir Nicholas Macpherson, the permanent secretary to the Treasury, informed the Scottish Sun's editor that he was "considering matters for legal option for redress".
But the MP for Gordon said the articles and his book went ahead with no further contact from Sir Nicholas's legal representatives.
Mr Salmond's book on the campaign for independence, The Dream Shall Never Die: 100 Days That Changed Scotland Forever, was published earlier this year with extracts appearing in the Scottish Sun.
In March, the former first minister called for Sir Nicholas to resign after a report by MPs said his "perceived impartiality" had been compromised during the run-up to last September's Scottish independence referendum.
The Commons Public Administration Select Committee criticised the publication of advice Sir Nicholas gave Chancellor George Osborne that a currency union between an independent Scotland and the rest of the UK would be "fraught with difficulty".
The committee said the civil servant's letter was made public "because it suited ministers' political objectives in respect of the Scottish referendum".
Speaking during the committee stage of the European Union Referendum Bill, Mr Salmond sought assurances over the measures in place to prevent the "huge and serious potential imbalance" of government ministers breaching purdah and civil servants breaching impartiality during an in-out referendum.
He said: "I should say Sir Nicholas Macpherson threatened to reach for his lawyers when he saw an advanced copy of a book I published recently, available £12.99 in all good book shops.
"But he was considering matters for legal option for redress, he said in a letter to the editor of the Scottish Sun newspaper.
"I'm pleased to say in the interests of freedom of speech that the articles went ahead as did the book and as yet we haven't heard from Sir Nicholas's legal representatives or from Sue, Grabbit and Runne, or whoever the permanent secretary of the Treasury uses these days."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article