emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/request bb277bc25e 1/2: Fix emacs native compilation warni


From: ELPA Syncer
Subject: [nongnu] elpa/request bb277bc25e 1/2: Fix emacs native compilation warning
Date: Sun, 11 Sep 2022 13:58:57 -0400 (EDT)

branch: elpa/request
commit bb277bc25efe546bceef8a98d9f55b4e32b46d5f
Author: Codruț Constantin Gușoi <mail+git@codrut.pro>
Commit: Codruț Constantin Gușoi <mail+git@codrut.pro>

    Fix emacs native compilation warning
    
    To reproduce, have emacs built with native compilation and notice the
    compilation logs. You can then open the offending file and run `M-x
    emacs-lisp-native-compile-and-load` before and after the changes to see
    the warning is removed.
    
    ```
    request.el:817:25: Warning: ‘point’ is an obsolete generalized variable; use
        ‘goto-char’ instead.
    request.el:822:25: Warning: ‘point’ is an obsolete generalized variable; use
        ‘goto-char’ instead.
    ```
---
 request.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/request.el b/request.el
index 668c98b9f8..6fd872ae01 100644
--- a/request.el
+++ b/request.el
@@ -814,12 +814,12 @@ Currently it is used only for testing.")
         (call-process request-curl nil t nil "--version")
         (let ((version
                (progn
-                 (setf (point) (point-min))
+                 (goto-char (point-min))
                  (when (re-search-forward "[.0-9]+" nil t)
                    (match-string 0))))
               (compression
                (progn
-                 (setf (point) (point-min))
+                 (goto-char (point-min))
                  (not (null (re-search-forward "libz\\>" nil t))))))
           (setf (gethash request-curl request--curl-capabilities-cache)
                 `(:version ,version :compression ,compression)))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]