Re: [AUCTeX-devel] AUCTeX without Desktop Environment

2017-08-18 Thread Tassilo Horn
Easior Lars  writes:

Hi!

> It's well-known that Evince has direct/inverse research functions with
> the help of AUCTeX in the desktop environment, such as Gnome, Mate,
> KDE, etc. Not long time ago, I installed Qtile, a lightweight window
> manager, instead of Gnome in my Gentoo box. I found that AUCTeX can't
> work well under Qtile. Emacs always complains that
> ,---
> | Debugger entered--Lisp error: (dbus-error "No connection to bus" :session)
> |   dbus-get-unique-name(:session)
> |   TeX-evince-dbus-p("gnome" "evince" :forward)
> |   TeX-view-program-select-evince("gnome" "evince")
> `---
> while any LaTeX source file opened in Emacs. I have no idea about
> how to resolve it. Is it possible to let AUCTeX without desktop
> environment work? Any hint?

First of all, evince and auctex communicate over the session dbus for
forward/backward search.  And apparently your WM without a DE doesn't
start a session bus.

But that can be fixed, I think.  I'm not sure, but wherever you start
qtile (maybe from .xsession or so), you might want to try to start
"dbus-run-session -- qtile" instead.

See https://dbus.freedesktop.org/doc/dbus-run-session.1.html

That would fire up a dbus session and qtile, and then my hope is that
forward/backward search with evince work as usual.

Bye,
Tassilo


___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-commit] GNU AUCTeX branch, master, updated. 075eab75225ea89a4bebe214d1f2c683338e6e24

2017-08-18 Thread Tassilo Horn
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
   via  075eab75225ea89a4bebe214d1f2c683338e6e24 (commit)
  from  90a2c29548ebf57f06ddb44898e2f5ed3527ff85 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 075eab75225ea89a4bebe214d1f2c683338e6e24
Author: Vincent Belaïche 
Date:   Fri Aug 18 18:07:48 2017 +0200

Improvements for tex-info.el

* tex-info.el (Texinfo-arg-nodename): Fix default prompt.
(Texinfo-arg-lrc): New function, used for commands that take Left,
Center, and Right entries for setting page header.
(Texinfo-arg-next-line): New function. Used to break line if need
be after entering command argument.
(Texinfo-arg-on|off): New function for entering boolean input.
(TeX-texinfo-mode): Add TeX symbols `allowcodebreak', `atchar',
`codequotebacktick', `codequoteundirected', `documentlanguage',
`documentencoding', `evenfooting', `evenheading', `everyfooting',
`everyheading', `LaTeX', `oddfooting', `oddheading',
`setchapternewpage', and `url'.

---

Summary of changes:
 tex-info.el | 53 -
 1 file changed, 44 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

___
auctex-commit mailing list
auctex-com...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-commit


[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 075eab75225ea89a4bebe214d1f2c683338e6e24

2017-08-18 Thread Tassilo Horn
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
   via  075eab75225ea89a4bebe214d1f2c683338e6e24 (commit)
  from  90a2c29548ebf57f06ddb44898e2f5ed3527ff85 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 075eab75225ea89a4bebe214d1f2c683338e6e24
Author: Vincent Belaïche 
Date:   Fri Aug 18 18:07:48 2017 +0200

Improvements for tex-info.el

* tex-info.el (Texinfo-arg-nodename): Fix default prompt.
(Texinfo-arg-lrc): New function, used for commands that take Left,
Center, and Right entries for setting page header.
(Texinfo-arg-next-line): New function. Used to break line if need
be after entering command argument.
(Texinfo-arg-on|off): New function for entering boolean input.
(TeX-texinfo-mode): Add TeX symbols `allowcodebreak', `atchar',
`codequotebacktick', `codequoteundirected', `documentlanguage',
`documentencoding', `evenfooting', `evenheading', `everyfooting',
`everyheading', `LaTeX', `oddfooting', `oddheading',
`setchapternewpage', and `url'.

diff --git a/tex-info.el b/tex-info.el
index 7eb7970..c8bf86b 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -403,10 +403,38 @@ If DEFINITION is non-nil, then chosen node name is a node 
name to be
 added to the list of defined node names. Current implementation
 ignored DEFINITION as the full document is scanned for node names at
 each invocation."
-  (let ((node-name (completing-read (TeX-argument-prompt optional prompt "Key")
+  (let ((node-name (completing-read (TeX-argument-prompt optional prompt 
"Node")
(Texinfo-make-node-list
 (insert "{" (Texinfo-nodename-escape node-name) "}" )))
 
+(defun Texinfo-arg-lrc (optional  args)
+  (let ((l (read-from-minibuffer "Enter left part: "))
+   (c (read-from-minibuffer "Enter center part: "))
+   (r (read-from-minibuffer "Enter right part: ")))
+(insert " " l " @| " c " @| " r)))
+
+(defun Texinfo-arg-next-line (optional  args)
+  "Go to the beginning of next line if we are at the end of line. Otherwise 
insert an end-of-line."
+  (if (eolp)  (forward-line) (insert "\n")))
+
+(defun Texinfo-arg-on|off (optional  prompt style)
+  "Prompt for a boolean input.
+OPTIONAL is ignored.
+Use PROMPT as the prompt string.
+STYLE may be one of `:on|off' or `:true|false', if omitted `:on|off'
+is assumed by default."
+(let ((collection  (cdr (assq style
+'((nil . #1=("on" "off"))
+  (:on|off . #1#)
+  (:true|false "true" "false"))
+  (insert (if (y-or-n-p  (TeX-argument-prompt optional prompt (concat (car 
collection) ", not " (cadr collection
+(car collection)
+   (cadr collection)
+
+(defun Texinfo-arg-choice (optional  prompt collection)
+  (insert (completing-read (TeX-argument-prompt optional prompt "Key")
+  collection)))
+
 ;; Silence the byte-compiler from warnings for variables and functions declared
 ;; in reftex.
 (defvar reftex-section-levels-all)
@@ -682,12 +710,14 @@ value of `Texinfo-mode-hook'."
 
   (TeX-add-symbols
'("acronym" "Acronym")
+   '("allowcodebreaks" (TeX-arg-literal " ") (Texinfo-arg-on|off nil 
:true|false) (Texinfo-arg-next-line))
'("appendix" (TeX-arg-literal " ") (TeX-arg-free "Title"))
'("appendixsec" (TeX-arg-literal " ") (TeX-arg-free "Title"))
'("appendixsection" (TeX-arg-literal " ") (TeX-arg-free "Title"))
'("appendixsubsec" (TeX-arg-literal " ") (TeX-arg-free "Title"))
'("appendixsubsubsec" (TeX-arg-literal " ") (TeX-arg-free "Title"))
'("asis")
+   '("atchar" nil)
'("author" (TeX-arg-literal " ") (TeX-arg-free "Author"))
'("b" "Text")
'("bullet")
@@ -704,6 +734,8 @@ value of `Texinfo-mode-hook'."
'("cite" "Reference")
'("clear" (TeX-arg-literal " ") (TeX-arg-free "Flag"))
'("code" "Sample code")
+   '("codequotebacktick" (TeX-arg-literal " ") (Texinfo-arg-on|off) 
(Texinfo-arg-next-line))
+   '("codequoteundirected"  (TeX-arg-literal " ") (Texinfo-arg-on|off) 
(Texinfo-arg-next-line))
'("command" "Command")
'("comment" (TeX-arg-literal " ") (TeX-arg-free "Comment"))
'("contents")
@@ -712,15 +744,17 @@ value of `Texinfo-mode-hook'."
'("defindex" (TeX-arg-literal " ") (TeX-arg-free "Index name"))
'("dfn" "Term")
'("dmn" "Dimension")
+   '("documentlanguage"  (TeX-arg-literal " ") (Texinfo-arg-choice "Language" 
("ca" "cs" "de" "en" "es" "fr" "hu" "is" "it" "ja" "nb" "nl" "nn" "pl" "pt" 
"ru" "sr" "tr" "uk"))  (Texinfo-arg-next-line))
+   '("documentencoding"  (TeX-arg-literal " ") 

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 90a2c29548ebf57f06ddb44898e2f5ed3527ff85

2017-08-18 Thread Ikumi Keita
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
   via  90a2c29548ebf57f06ddb44898e2f5ed3527ff85 (commit)
   via  ff0754463f2e5b916c0c05d10660313680eafb58 (commit)
  from  b43ec94b22aa8d240ad78d632ea141db85cee837 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 90a2c29548ebf57f06ddb44898e2f5ed3527ff85
Author: Ikumi Keita 
Date:   Fri Aug 18 22:25:05 2017 +0900

Use #' to quote function names

* tex-jp.el (japanese-plain-tex-mode-initialization,
add-hook, japanese-latex-mode-initialization,
japanese-TeX-reset-mode-name, TeX-insert-punctuation):
Use #' to quote function names.

commit ff0754463f2e5b916c0c05d10660313680eafb58
Author: Ikumi Keita 
Date:   Fri Aug 18 22:04:49 2017 +0900

Delay setting Japanese TeX engine in `japanese-latex-mode'

* tex-jp.el (japanese-latex-mode-initialization): The part which
guesses and sets `TeX-engine' using `TeX-match-style' is factored out
and put in `TeX-update-style-hook'.  `TeX-match-style' eventually
triggers `TeX-update-style', which isn't appropriate in
`LaTeX-mode-hook'.
(japanese-LaTeX-guess-engine): New function.

---

Summary of changes:
 tex-jp.el | 55 ++-
 1 file changed, 34 insertions(+), 21 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

___
auctex-commit mailing list
auctex-com...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-commit


[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 90a2c29548ebf57f06ddb44898e2f5ed3527ff85

2017-08-18 Thread Ikumi Keita
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
   via  90a2c29548ebf57f06ddb44898e2f5ed3527ff85 (commit)
   via  ff0754463f2e5b916c0c05d10660313680eafb58 (commit)
  from  b43ec94b22aa8d240ad78d632ea141db85cee837 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 90a2c29548ebf57f06ddb44898e2f5ed3527ff85
Author: Ikumi Keita 
Date:   Fri Aug 18 22:25:05 2017 +0900

Use #' to quote function names

* tex-jp.el (japanese-plain-tex-mode-initialization,
add-hook, japanese-latex-mode-initialization,
japanese-TeX-reset-mode-name, TeX-insert-punctuation):
Use #' to quote function names.

diff --git a/tex-jp.el b/tex-jp.el
index b1663db..81125ae 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -532,10 +532,10 @@ Set `japanese-TeX-mode' to t, and enter 
`TeX-plain-tex-mode'."
 ;; in `japanese-latex-mode-initialization'.
 (when enable-local-variables
   (setq major-mode 'japanese-plain-tex-mode)
-  (add-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name
+  (add-hook 'hack-local-variables-hook #'japanese-TeX-reset-mode-name
nil t
 
-(add-hook 'plain-TeX-mode-hook 'japanese-plain-tex-mode-initialization)
+(add-hook 'plain-TeX-mode-hook #'japanese-plain-tex-mode-initialization)
 
 ;;;###autoload
 (defun japanese-latex-mode ()
@@ -584,10 +584,10 @@ Set `japanese-TeX-mode' to t, and enter `TeX-latex-mode'."
 ;; `hack-local-variables' is done.
 (when enable-local-variables
   (setq major-mode 'japanese-latex-mode)
-  (add-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name
+  (add-hook 'hack-local-variables-hook #'japanese-TeX-reset-mode-name
nil t
 
-(add-hook 'LaTeX-mode-hook 'japanese-latex-mode-initialization)
+(add-hook 'LaTeX-mode-hook #'japanese-latex-mode-initialization)
 
 ;; This function is useful only within `hack-local-variables-hook'.
 (defun japanese-TeX-reset-mode-name ()
@@ -595,7 +595,7 @@ Set `japanese-TeX-mode' to t, and enter `TeX-latex-mode'."
 (setq major-mode 'latex-mode))
((eq major-mode 'japanese-plain-tex-mode)
 (setq major-mode 'plain-tex-mode)))
-  (remove-hook 'hack-local-variables-hook 'japanese-TeX-reset-mode-name t))
+  (remove-hook 'hack-local-variables-hook #'japanese-TeX-reset-mode-name t))
 
 ;; Make `hack-dir-local-variables' to regard `latex-mode' as parent
 ;; of `japanese-latex-mode', and `plain-tex-mode' as parent of
@@ -640,7 +640,7 @@ overwrite the value already set locally."
   (expand-abbrev)
   (if (TeX-looking-at-backward "/\\(}+\\)" 50)
   (replace-match "\\1" t))
-  (call-interactively 'japanese-TeX-self-insert-command))
+  (call-interactively #'japanese-TeX-self-insert-command))
 
 ;;; Error Messages
 

commit ff0754463f2e5b916c0c05d10660313680eafb58
Author: Ikumi Keita 
Date:   Fri Aug 18 22:04:49 2017 +0900

Delay setting Japanese TeX engine in `japanese-latex-mode'

* tex-jp.el (japanese-latex-mode-initialization): The part which
guesses and sets `TeX-engine' using `TeX-match-style' is factored out
and put in `TeX-update-style-hook'.  `TeX-match-style' eventually
triggers `TeX-update-style', which isn't appropriate in
`LaTeX-mode-hook'.
(japanese-LaTeX-guess-engine): New function.

diff --git a/tex-jp.el b/tex-jp.el
index 09909ba..b1663db 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -526,7 +526,6 @@ Set `japanese-TeX-mode' to t, and enter 
`TeX-plain-tex-mode'."
 (defun japanese-plain-tex-mode-initialization ()
   "Japanese plain-TeX specific initializations."
   (when japanese-TeX-mode
-;(setq TeX-command-default japanese-TeX-command-default)
 (TeX-engine-set japanese-TeX-engine-default)
 
 ;; For the intent of the following lines, see the comments below
@@ -549,21 +548,16 @@ Set `japanese-TeX-mode' to t, and enter `TeX-latex-mode'."
 (defun japanese-latex-mode-initialization ()
   "Japanese LaTeX specific initializations."
   (when japanese-TeX-mode
-;(setq TeX-command-default japanese-LaTeX-command-default)
-(TeX-engine-set
- (cond
-  ((TeX-match-style "\\`u[jt]\\(article\\|report\\|book\\)\\'")
-   'uptex)
-  ((TeX-match-style "\\`[jt]s?\\(article\\|report\\|book\\)\\'")
-   (if (LaTeX-match-class-option "\\`uplatex\\'")
-  'uptex 'ptex))
-  ((TeX-match-style "\\`j-\\(article\\|report\\|book\\)\\'")
-   'jtex)
-  (t japanese-TeX-engine-default)))
+;; `TeX-match-style' $B$r;H$&$N$O(B `TeX-update-style' 
$B$N8e$KCY$i$;$k!#(B
+;; $B$3$NCJ3,$G;H$&$H!"$=$NCf$G8F$V(B `TeX-style-list' $B$NCf$G(B
+;; `TeX-update-style'