From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Emacs 29: Package netrc is deprecated Date: Mon, 06 May 2024 21:43:27 +0200 Message-ID: <87r0eepvz4.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26218"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 21:44:29 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s44GC-0006ZK-6q for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 21:44:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s44FY-0000i4-Ue; Mon, 06 May 2024 15:43:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s44FW-0000ho-5G for help-gnu-emacs@gnu.org; Mon, 06 May 2024 15:43:46 -0400 Original-Received: from schwantz.bang.priv.no ([95.217.129.251]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s44FT-0004rk-VY for help-gnu-emacs@gnu.org; Mon, 06 May 2024 15:43:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb; t=1715024607; bh=Zc/xg61ivxCQpasVnGFGRIjOYnnTjzsAO27xcC5x0zw=; h=From:To:Subject:Date:From; b=ARU+WV9kb6KtTJJdHMVoKfFfXv4PAU+VoI7hJC/7x6sNYiNjGqWKwQfihfAR5VKEP aL3jEvO6Z4oBdRELjaLHCjMCK8IrAsEUNxj2bv8TT5Vau6KZPz6QaBr3owSDU8oB+W /8bgcpkl5sarR54mPv9tOg9WRTUP2lQv96XbZ4RA= Original-Received: from marquez (unknown [84.210.69.52]) by schwantz.bang.priv.no (Postfix) with ESMTPSA id 8B5E61B6 for ; Mon, 6 May 2024 19:43:27 +0000 (UTC) Received-SPF: none client-ip=95.217.129.251; envelope-from=sb@dod.no; helo=schwantz.bang.priv.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146598 Archived-At: Just upgraded from emacs 28 to emacs 29.3 and got the minibuffer message: Package netrc is deprecated Here is my netrc usage (it is to retrieve the username and password for my wordpress blog for use with org2blog): ;; org-mode blogging setup (when (and (locate-library "org2blog") (locate-library "metaweblog")) (require 'org2blog) (require 'netrc) (if (locate-library "ox-wp") (load-library "ox-wp")) (setq blog (netrc-machine (netrc-parse netrc-file) "blog.mydomain.com" t)) (setq org2blog/wp-blog-alist (list (list "blogs-blogg" :url "http://blog.mydomain.com/xmlrpc.php" :username (netrc-get blog "login") :password (netrc-get blog "password"))))) Any suggestions for what i should replace netrc with are appreciated. According to git I set this up om May 1 2012 so it is hard to remember what I was thinking back then and why I used the netrc package (I probably just wanted to get it working and, once it did, promptly forgot about it). Thanks! - Steinar