From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs-devel@gnu.org
Subject: Re: bug#32405: Turning misc objects into pseudovectors
Date: Sun, 12 Aug 2018 11:48:15 -0700 [thread overview]
Message-ID: <b6eea0b9-8f22-b8c9-2b55-71b49e1f7a85@cs.ucla.edu> (raw)
In-Reply-To: <8336vjla0l.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
Eli Zaretskii wrote:
> it sounds like .gdbinit needs some update as followup,
Sure does. Thanks for catching that. I installed the attached.
[-- Attachment #2: 0001-Adjust-.gdbinit-to-removal-of-misc-objects.patch --]
[-- Type: text/x-patch, Size: 2444 bytes --]
From f99ee7378f8529e748f894859f305d4cca2483e4 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sun, 12 Aug 2018 11:46:07 -0700
Subject: [PATCH] Adjust .gdbinit to removal of misc objects
* src/.gdbinit (xtype, xpr): Adjust.
(xmisctype, xmiscfree): Remove.
---
src/.gdbinit | 46 +++++++++-------------------------------------
1 file changed, 9 insertions(+), 37 deletions(-)
diff --git a/src/.gdbinit b/src/.gdbinit
index 3cebdff5e7..ae6f13a103 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -649,17 +649,13 @@ define xtype
xgettype $
output $type
echo \n
- if $type == Lisp_Misc
- xmisctype
- else
- if $type == Lisp_Vectorlike
- xvectype
- end
+ if $type == Lisp_Vectorlike
+ xvectype
end
end
document xtype
Print the type of $, assuming it is an Emacs Lisp value.
-If the first type printed is Lisp_Vector or Lisp_Misc,
+If the first type printed is Lisp_Vectorlike,
a second line gives the more precise type.
end
@@ -711,15 +707,6 @@ Print the size of $
This command assumes that $ is a Lisp_Object.
end
-define xmisctype
- xgetptr $
- output (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type)
- echo \n
-end
-document xmisctype
-Assume that $ is some misc type and print its specific type.
-end
-
define xint
xgetint $
print $int
@@ -754,15 +741,6 @@ Print $ as a overlay pointer.
This command assumes that $ is an Emacs Lisp overlay value.
end
-define xmiscfree
- xgetptr $
- print (struct Lisp_Free *) $ptr
-end
-document xmiscfree
-Print $ as a misc free-cell pointer.
-This command assumes that $ is an Emacs Lisp Misc value.
-end
-
define xsymbol
set $sym = $
xgetsym $sym
@@ -1015,18 +993,6 @@ define xpr
if $type == Lisp_Float
xfloat
end
- if $type == Lisp_Misc
- set $misc = (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type)
- if $misc == Lisp_Misc_Free
- xmiscfree
- end
- if $misc == Lisp_Misc_Marker
- xmarker
- end
- if $misc == Lisp_Misc_Overlay
- xoverlay
- end
- end
if $type == Lisp_Vectorlike
set $size = ((struct Lisp_Vector *) $ptr)->header.size
if ($size & PSEUDOVECTOR_FLAG)
@@ -1034,6 +1000,12 @@ define xpr
if $vec == PVEC_NORMAL_VECTOR
xvector
end
+ if $vec == PVEC_MARKER
+ xmarker
+ end
+ if $vec == PVEC_OVERLAY
+ xoverlay
+ end
if $vec == PVEC_PROCESS
xprocess
end
--
2.17.1
next prev parent reply other threads:[~2018-08-12 18:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-09 3:07 Turning misc objects into pseudovectors Paul Eggert
2018-08-09 3:58 ` bug#32405: " Stefan Monnier
2018-08-09 16:31 ` Tom Tromey
2018-08-09 16:31 ` Tom Tromey
2018-08-09 17:22 ` bug#32405: " Paul Eggert
2018-08-09 18:27 ` Eli Zaretskii
2018-08-09 18:27 ` Eli Zaretskii
2018-08-10 13:43 ` Tom Tromey
2018-08-12 1:53 ` Paul Eggert
2018-08-12 18:23 ` Eli Zaretskii
2018-08-12 18:48 ` Paul Eggert [this message]
2018-08-14 19:11 ` Paul Eggert
2018-08-12 1:53 ` Paul Eggert
2018-08-10 13:43 ` Tom Tromey
-- strict thread matches above, loose matches on Subject: below --
2018-08-09 2:58 bug#32405: [PATCH] Turn " Paul Eggert
2018-08-09 5:01 ` bug#32405: Turning " Paul Eggert
2018-08-09 7:16 ` Paul Eggert
2018-08-09 16:24 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6eea0b9-8f22-b8c9-2b55-71b49e1f7a85@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=Emacs-devel@gnu.org \
--cc=eliz@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.