unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: curious why private variables are rare
Date: Mon, 2 Oct 2023 16:56:54 -0700	[thread overview]
Message-ID: <CAJcAo8uzuk0MjZ2xHM1yjJYY54Uss1WZin_Eeb9dkafVbGT_aQ@mail.gmail.com> (raw)
In-Reply-To: <87zgck1ncm.fsf@dataswamp.org>

discoverd a possible bug in 27 with privte vriables.

in the following c-h f does not take you to the cl-defun.

(let (private-alist
      (unique-string
       (format "%s" (gensym "cleandiff-unify--xyzzy--"))))
  (define-key cleandiff-mode-map "U" 'cleandiff-unify)
  ;; this code works but possibly needs improving
  ;; c-h f fails to go to the correct location goes to bob
  (cl-defun cleandiff-unify
      ;; actually consider log 4
      (arg &aux (prefix (cond
                          ((= arg 1) 'usual)
                          ((= arg 4) 'extra)
                          ((= arg 16) 'clear)
                          ((= arg 64) 'update))))


On 11/21/22, Emanuel Berg <incal@dataswamp.org> wrote:
> Stefan Monnier via Users list for the GNU Emacs text editor wrote:
>
>> warnings [...] unknown function
>
> Yes, but as you know, shut it up with `declare-function', e.g.
>
>   (declare-function australian-survivor nil)
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



  reply	other threads:[~2023-10-02 23:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20  2:07 curious why private variables are rare Samuel Wales
2022-11-20  3:53 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-21 12:52   ` Emanuel Berg
2023-10-02 23:56     ` Samuel Wales [this message]
2022-11-21 12:48 ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8uzuk0MjZ2xHM1yjJYY54Uss1WZin_Eeb9dkafVbGT_aQ@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).