From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Pettersson Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: dape Date: Wed, 18 Oct 2023 23:54:24 +0200 Message-ID: References: <875y3ag16c.fsf@posteo.net> <87lec58dav.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16444"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 18 23:56:02 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qtEWH-00045C-TN for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Oct 2023 23:56:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtEV7-0000GI-4c; Wed, 18 Oct 2023 17:54:50 -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 1qtEUw-0008Uc-KX for emacs-devel@gnu.org; Wed, 18 Oct 2023 17:54:39 -0400 Original-Received: from mail-vs1-f49.google.com ([209.85.217.49]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtEUu-0004la-UP for emacs-devel@gnu.org; Wed, 18 Oct 2023 17:54:38 -0400 Original-Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-457c82cd87bso2363774137.0 for ; Wed, 18 Oct 2023 14:54:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697666075; x=1698270875; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ONmgC8JfCjj6nM3eBAzt1MR+Nf5H9Z7zqm9hGrmx2dc=; b=VLnmO7KNgULwOKuYKaBjfIT6PNgPv9AnOMQFLq+EkbC3WnrHAmIRhT1eqL6VaxOxFo TlQOW4z4ZZdxV+cj6uNnTKUA0PiHN6SNKMr/SLRvetPKJLGQ8sTDMBS5ke7agliy3orI xttI95Fa3qeGc/aKRCCZU/mKXxlj2SRaM3m5SmcPrlerwO9D5EG4F4V4s7WVh2qJlMbO GrxT6yboI4W6gd2mWOrS2C40cyiyVXerNlBHFgQuS78W7fLbB2nmWgCMDc09IhKtU8Uj T4pkfIMmaU7P3BUO/MjCWVxUUFXDQrg6trOO3FASa/5yaqabsJIvXGaQzfgnQj6fdcqy 2DFw== X-Gm-Message-State: AOJu0Yy6vjSQ5Q9oOmoGgGr8r8qHAlOOUiCapnn+B0kCg4Wus+83GFjT 0aKO0hhdGoJk9B+byV4UCahd6NX5LpmdRw== X-Google-Smtp-Source: AGHT+IGQysCw/H1/QE5rkPW9tIo2gV54EIiJeka9oFnXEGjmWPL9BOF/Dhx9GRNglrWWeELjBqbUGA== X-Received: by 2002:a67:b24d:0:b0:452:513a:ac1d with SMTP id s13-20020a67b24d000000b00452513aac1dmr304356vsh.15.1697666075536; Wed, 18 Oct 2023 14:54:35 -0700 (PDT) Original-Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com. [209.85.217.45]) by smtp.gmail.com with ESMTPSA id z11-20020a67f54b000000b00457871c01b5sm427490vsn.11.2023.10.18.14.54.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 14:54:35 -0700 (PDT) Original-Received: by mail-vs1-f45.google.com with SMTP id ada2fe7eead31-457c19ebb3aso2525160137.1 for ; Wed, 18 Oct 2023 14:54:35 -0700 (PDT) X-Received: by 2002:a05:6102:20c3:b0:457:ba95:6271 with SMTP id i3-20020a05610220c300b00457ba956271mr280644vsr.31.1697666075004; Wed, 18 Oct 2023 14:54:35 -0700 (PDT) In-Reply-To: <87lec58dav.fsf@posteo.net> X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=209.85.217.49; envelope-from=daniel.dpettersson.net@gmail.com; helo=mail-vs1-f49.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311560 Archived-At: On Sat, Oct 14, 2023 at 4:54=E2=80=AFPM Philip Kaludercic wrote: > I have tried to try it out right now, but because I've never used DAP > before, I am not sure how to get it running properly. Nevertheless, I > think it would be useful to have something along these lines: Did you get working? > + (customize-variable 'dape-configs) Implemented > Another interesting idea to pursue might be to have modular UIs. > Instead of splitting up the current Emacs frame, I think a minimalist, > more edebug-like interface would be nice, where variable values could be > displayed using overlays instead of having a separate buffer. Nice suggestion. I did try to implement a more minimalist interface with variable overlays. Which can be enabled with the following. (setq dape-inline-variables t) (setq dape-on-start-hooks nil) Second screenshot in the README.org, it's more inline with edebug. But there is some issues with placement and variable lookup. The current implementation relies on regex and font lock to search for symbols. If that work could be offloaded to Eglot/lsp-mode via xref (*I don't know if lsp support it). But currently that is not possible because Eglot only supports looking up reference at point. > Note that you don't need to add Compat just for `defvar-keymap', as you > could also just use the traditional method of defining a keymap instead: Fixed. > It just doesn't say that much, and I don't know if it is intended, but > the usual way I would read/pronounce it (rhyming with cape) wouldn't > immediately signal any relation to DAP. Note that you can use (elisp) > Shorthands to avoid writing out a longer name inside the file, in case a > longer name like debuger-adapter. It seems there is no package by the > name of "dbg"? If we are not interested in a self-descriptive and > memorable name, and would want to create a parallel to Eglot (IIRC Emacs > polyGLOT), perhaps something like based on "Emacs Debugger" (Egger? > Ebugger? Edebugger?) might be possible as well. "dbg" is nice and sweet, but I think it's a + for discoverability to have dap in the name of the package. How about eldap? If it should signify a connection to Eglot, maybe Ebug or even closer Dpoly? Or maybe a reference to Grace Hopper, hopper. Personally I like eldap, probably because it feels familiar.