all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: A M <alex334599@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs 27 - Changing the "selective display character" (also called "ellipsis")
Date: Mon, 26 Jul 2021 12:42:41 +0200	[thread overview]
Message-ID: <43a9583a-2811-3080-7fc0-414444350421@gmail.com> (raw)
In-Reply-To: <83pmv6wlfs.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]

Hello

Sorry, there was one thing I forgot to mention which is a requirement 
for the problem to appear.
I have also enabled automatic byte-compilation, using the following line 
of lisp code:

;; Automatic byte-compilation when starting emacs.
(byte-recompile-directory (expand-file-name "~/.emacs.d") 0)

A minimal emacs dotfile that demonstrates my described problem is thus 
the code snippet I gave in the first message combined with the one 
above. (I am checking that myself right now.) It is when an init.elc has 
been generated I get this error specifically in Emacs 27.

I will attach the error message I get in Emacs and also the stack trace 
from 'emacs --debug-init', please see the attached file.

Eli, yes you guess correctly. invoke "C-x $" with a numeric argument on 
init.el as a way of testing.

On 7/25/21 3:51 PM, Eli Zaretskii wrote:
>> From: A M <alex334599@gmail.com>
>> Date: Sun, 25 Jul 2021 12:07:07 +0200
>>
>> I would like to change the "selective display character" (also called
>> "ellipsis", default is "...") to some other character, an arrow
>> character would be nice.
>>
>> Up until Emacs 27, I used the code below in my init.el , it worked just
>> great.
>>
>> ;Change the default selective display ("folding") character "..." to " »".
>> (set-display-table-slot standard-display-table
>>                           'selective-display (string-to-vector " »"))
>>
>> With Emacs 27 this no longer works. I have tested by using
>> 'selective-display' (C-x $) on my init.el as a simple test, I get the
>> default "...".
>> Could you help me by providing a working method for Emacs 27?
> I cannot reproduce the problem you are reporting: the above works for
> me in Emacs 27 (and in Emacs 28).  The "..." is replaced with the
> arrow character.
>
> Just to be sure: to test this you invoke "C-x $" with a numeric
> argument that determines the column past which you want to have the
> ellipsis, yes?
>
> I suggest to try this in "emacs -Q"; if it works there, there are some
> customizations of yours that get in the way.
>

[-- Attachment #2: error-message_and_stack-trace.txt --]
[-- Type: text/plain, Size: 989 bytes --]


Warning (initialization): An error occurred while loading ‘/home/user/.emacs.d/init.elc’:

Wrong type argument: char-table-p, nil

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.


$ emacs --debug-init

Debugger entered--Lisp error: (wrong-type-argument char-table-p nil)
set-char-table-extra-slot(nil 4 [32 187])
set-display-table-slot(nil selective-display [32 187])
byte-code("\301\302\303!\304\"\210\305\10\306\307\310\1!\262\1#\210\10\204\31\0\311 \20\301\207" [standard-display-table byte-recompile-directory expand-file-name "~/.emacs.d" 0 set-display-table-slot selective-display " »" vconcat make-display-table] 6)
load("/home/user/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0x5c1655>) #f(compiled-function () #<bytecode 0x5c1669>) t)
command-line()
normal-top-level()

  reply	other threads:[~2021-07-26 10:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-25 10:07 Emacs 27 - Changing the "selective display character" (also called "ellipsis") A M
2021-07-25 13:51 ` Eli Zaretskii
2021-07-26 10:42   ` A M [this message]
2021-07-26 13:00     ` Eli Zaretskii
2021-07-26 15:01       ` A M

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=43a9583a-2811-3080-7fc0-414444350421@gmail.com \
    --to=alex334599@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.
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.