Hi Keita
> Hi Uwe,

> [...]


> That's a due result. The variable `auto-fill-inhibit-regexp' is relevant
> only for auto-filling.




> I expect that
> (push '("enumerate") LaTeX-fill-environment-list)
> in LaTeX-mode-hook would work.

Thanks

I did 

(defun my-push-fill-enumerate-latex ()
  (interactive)
  (push '("enumerate") LaTeX-fill-environment-list))


(add-hook 'LaTeX-mode-hook 'my-push-fill-enumerate-latex)

But I obtained an error that I attach.

I presume I misunderstood you.



> Regards,
> Ikumi Keita
> #StandWithUkraine #StopWarInUkraine
> #Gaza #StopMassiveKilling #CeasefireNOW


-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

Debugger entered--Lisp error: (void-variable LaTeX-fill-environment-list)
  my-push-fill-enumerate-latex()
  run-hooks(change-major-mode-after-body-hook text-mode-hook TeX-mode-hook 
LaTeX-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook 
TeX-mode-hook LaTeX-mode-hook))
  run-mode-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  TeX-latex-mode()
  apply(TeX-latex-mode nil)
  latex-mode()
  tex--redirect-to-submode(#f(advice TeX-tex-mode :override 
#f(compiled-function () (interactive nil) #<bytecode 0x10b6bac225e4ad6b>)))
  apply(tex--redirect-to-submode #f(advice TeX-tex-mode :override 
#f(compiled-function () (interactive nil) #<bytecode 0x10b6bac225e4ad6b>)) nil)
  tex-mode()
  set-auto-mode-0(tex-mode nil)
  set-auto-mode--apply-alist((("\\.odb\\'" . archive-mode) ("\\.oth\\'" . 
archive-mode) ("\\.otf\\'" . archive-mode) ("\\.oti\\'" . archive-mode) 
("\\.otc\\'" . archive-mode) ("hg-histedit-autoloads.el" . fundamental-mode) 
("hg-editor-" . hg-histedit-commit-mode) ("\\.wiki\\'" . wikipedia-mode) 
("\\.text\\'" . markdown-mode) ("\\.tlc\\'" . tlc-mode) ("\\.m\\'" . 
matlab-mode) ("\\.org$" . org-mode) ("\\.odc\\'" . archive-mode) ("\\.odf\\'" . 
archive-mode) ("\\.odi\\'" . archive-mode) ("\\.otp\\'" . archive-mode) 
("\\.odp\\'" . archive-mode) ("\\.otg\\'" . archive-mode) ("\\.odg\\'" . 
archive-mode) ("\\.ots\\'" . archive-mode) ("\\.ods\\'" . archive-mode) 
("\\.odm\\'" . archive-mode) ("\\.ott\\'" . archive-mode) ("\\.odt\\'" . 
archive-mode) ("\\.fqm$" . message-mode) ("\\.alda\\'" . alda-mode) 
("\\(?:[./]sources\\.list\\|/sources\\.list\\.d/[^z-a]+\\...." . 
apt-sources-list-mode) ("\\.ipynb\\'" . code-cells-convert-ipynb) 
("\\.[Cc][Ss][Vv]\\'" . csv-mode) ("\\.d[i]?\\'" . d-mode) ("\\.diffscuss\\'" . 
diffscuss-mode) ("\\.djvu\\'" . djvu-dummy-mode) ("\\.gitlab-ci.yml\\'" . 
gitlab-ci-mode) 
("[\\\\/]pentadactyl\\.\\(inbox\\|mail\\)\\.google\\..*\\.txt..." . 
gmail-message-mode) 
("[\\\\/]itsalltext[\\\\/]\\(inbox\\|mail\\)\\.google\\..*\\.t..." . 
gmail-message-mode) 
("[\\\\/]\\(inbox\\|mail\\)-google-com.*\\.\\(ckr\\|html?\\|t..." . 
gmail-message-mode) ("hg-histedit-" . hg-histedit-mode) ("\\.hgignore\\'" . 
hgignore-mode) ("/Mercurial\\.ini\\'" . hgrc-mode) ("/\\.hg/hgrc\\'" . 
hgrc-mode) ("/\\.hgrc\\'" . hgrc-mode) ("\\.[Jj]ust\\(file\\)?\\'" . just-mode) 
("/[Jj]ustfile\\'" . just-mode) ("\\.ledger\\'" . ledger-mode) ("\\.mmd\\'" . 
mermaid-mode) ("/git-rebase-todo\\'" . git-rebase-mode) ("\\.R$" . R-mode) 
("\\.jl\\'" . julia-mode) ("\\.tlc$" . tlc-mode) ("\\.m$" . matlab-mode) ...) 
nil nil)
  #f(compiled-function (&optional keep-mode-if-same) "Select major mode 
appropriate for current buffer.\n\nTo find the right major mode, this function 
checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables 
section of the file,\nchecks if there an `auto-mode-alist' entry in 
`.dir-locals.el',\nchecks if it uses an interpreter listed in 
`interpreter-mode-alist',\nmatches the buffer beginning against 
`magic-mode-alist',\ncompares the file name against the entries in 
`auto-mode-alist',\nthen matches the buffer beginning against 
`magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the 
file name matches\n`inhibit-local-variables-regexps', this function does not 
check\nfor any mode: tag anywhere in the file.  If 
`local-enable-local-variables'\nis nil, then the only mode: tag that can be 
relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is 
non-nil, then we\nset the major mode only if that would change it.  In other 
words\nwe don't actually set it to the same mode the buffer already has." 
#<bytecode -0x10fce60f37603690>)()
  apply(#f(compiled-function (&optional keep-mode-if-same) "Select major mode 
appropriate for current buffer.\n\nTo find the right major mode, this function 
checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables 
section of the file,\nchecks if there an `auto-mode-alist' entry in 
`.dir-locals.el',\nchecks if it uses an interpreter listed in 
`interpreter-mode-alist',\nmatches the buffer beginning against 
`magic-mode-alist',\ncompares the file name against the entries in 
`auto-mode-alist',\nthen matches the buffer beginning against 
`magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the 
file name matches\n`inhibit-local-variables-regexps', this function does not 
check\nfor any mode: tag anywhere in the file.  If 
`local-enable-local-variables'\nis nil, then the only mode: tag that can be 
relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is 
non-nil, then we\nset the major mode only if that would change it.  In other 
words\nwe don't actually set it to the same mode the buffer already has." 
#<bytecode -0x10fce60f37603690>) nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer why-is-kappa-1-needed.tex> 
"~/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-Nordstro..." nil nil 
"~/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-Nordstro..." (6449698 2050))
  find-file-noselect("/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-..." 
nil nil nil)
  #f(compiled-function (filename &optional wildcards) "Edit file 
FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if none 
already exists.\nInteractively, the default if you just type RET is the current 
directory,\nbut the visited file name is available through the minibuffer 
history:\ntype \\[next-history-element] to pull it into the minibuffer.\n\nThe 
first time \\[next-history-element] is used after Emacs prompts for\nthe file 
name, the result is affected by `file-name-at-point-functions',\nwhich by 
default try to guess the file name by looking at point in the\ncurrent buffer.  
Customize the value of `file-name-at-point-functions'\nor set it to nil, if you 
want only the visited file name and the\ncurrent directory to be available on 
first \\[next-history-element]\nrequest.\n\nYou can visit files on remote 
machines by specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the 
file name.  You can\nalso visit local files as a different user by 
specifying\n/sudo::FILE for the file name.\nSee the Info node `(tramp)File name 
Syntax' in the Tramp Info\nmanual, for more about this.\n\nInteractively, or if 
WILDCARDS is non-nil in a call from Lisp,\nexpand wildcards (if any) and visit 
multiple files.  You can\nsuppress wildcard expansion by setting 
`find-file-wildcards' to nil.\n\nTo visit a file without any kind of conversion 
and without\nautomatically choosing a major mode, use \\[find-file-literally]." 
(interactive #f(compiled-function () #<bytecode -0xa4d20ac81400d05>)) 
#<bytecode 
-0x1d32d97927b4eb09>)("/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-..." 
nil)
  ad-Advice-find-file(#f(compiled-function (filename &optional wildcards) "Edit 
file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one if 
none already exists.\nInteractively, the default if you just type RET is the 
current directory,\nbut the visited file name is available through the 
minibuffer history:\ntype \\[next-history-element] to pull it into the 
minibuffer.\n\nThe first time \\[next-history-element] is used after Emacs 
prompts for\nthe file name, the result is affected by 
`file-name-at-point-functions',\nwhich by default try to guess the file name by 
looking at point in the\ncurrent buffer.  Customize the value of 
`file-name-at-point-functions'\nor set it to nil, if you want only the visited 
file name and the\ncurrent directory to be available on first 
\\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by 
specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  
You can\nalso visit local files as a different user by specifying\n/sudo::FILE 
for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp 
Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil 
in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You 
can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo 
visit a file without any kind of conversion and without\nautomatically choosing 
a major mode, use \\[find-file-literally]." (interactive #f(compiled-function 
() #<bytecode -0xa4d20ac81400d05>)) #<bytecode -0x1d32d97927b4eb09>) 
"/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-...")
  apply(ad-Advice-find-file #f(compiled-function (filename &optional wildcards) 
"Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME,\ncreating one 
if none already exists.\nInteractively, the default if you just type RET is the 
current directory,\nbut the visited file name is available through the 
minibuffer history:\ntype \\[next-history-element] to pull it into the 
minibuffer.\n\nThe first time \\[next-history-element] is used after Emacs 
prompts for\nthe file name, the result is affected by 
`file-name-at-point-functions',\nwhich by default try to guess the file name by 
looking at point in the\ncurrent buffer.  Customize the value of 
`file-name-at-point-functions'\nor set it to nil, if you want only the visited 
file name and the\ncurrent directory to be available on first 
\\[next-history-element]\nrequest.\n\nYou can visit files on remote machines by 
specifying something\nlike /ssh:SOME_REMOTE_MACHINE:FILE for the file name.  
You can\nalso visit local files as a different user by specifying\n/sudo::FILE 
for the file name.\nSee the Info node `(tramp)File name Syntax' in the Tramp 
Info\nmanual, for more about this.\n\nInteractively, or if WILDCARDS is non-nil 
in a call from Lisp,\nexpand wildcards (if any) and visit multiple files.  You 
can\nsuppress wildcard expansion by setting `find-file-wildcards' to nil.\n\nTo 
visit a file without any kind of conversion and without\nautomatically choosing 
a major mode, use \\[find-file-literally]." (interactive #f(compiled-function 
() #<bytecode -0xa4d20ac81400d05>)) #<bytecode -0x1d32d97927b4eb09>) 
"/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-...")
  find-file("/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-...")
  vc-dir-find-file()
  funcall-interactively(vc-dir-find-file)
  call-interactively(vc-dir-find-file nil nil)
  command-execute(vc-dir-find-file)

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to