Re: [AUCTeX-devel] dear lords could you add the following style files to the style folder?

2016-09-14 Thread c
Arash Esbati  writes:

> Carlos  writes:
>
>> that way I don't have to insert it after every release
>
> AUCTeX has `TeX-style-private':
>
> ,[ C-h v TeX-style-private RET ]
> | TeX-style-private is a variable defined in ‘tex.el’.
> | 
> | Documentation:
> | List of directories containing hand-generated AUCTeX style files.
> | 
> | These correspond to the personal TeX macros.
> | 
> | You can customize this variable.
> `
>
> Set that variable in your init file or via customize and move the files
> into that folder.
>
> Best, Arash

Thanks for the pointer Arash. Appreciate it., have a good one!
Carlos






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


Re: [AUCTeX-devel] other patch for auctex.texi

2016-09-14 Thread Mosè Giordano
Hi Tassilo,

2016-09-14 18:52 GMT+02:00 Tassilo Horn :
> Oh, and is there a way I can apply your HG patch directly with git so
> that I don't have to commit it under your name and address by typing
> everything manually?

git am --patch-format=hg name.patch

should do the trick, if git isn't able to automatically detect the
format (sometimes "\r" in line endings can give problems).

Bye,
Mosè

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


[AUCTeX-commit] GNU AUCTeX branch, master, updated. 18f178393fd4c2880cff917f2bd421a3273cd708

2016-09-14 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  18f178393fd4c2880cff917f2bd421a3273cd708 (commit)
  from  bc2307364bfb54c8c254eb69a972ad59cfbfa15b (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 18f178393fd4c2880cff917f2bd421a3273cd708
Author: Stefan Monnier 
Date:   Mon Sep 12 21:04:52 2016 -0400

Cherry-pick 9c24759a96f41e288841ec2e815d62d58dc01e7a from elpa branch

* tex-ispell.el (TeX-ispell-sort-skip-cmds-list): Drop symbol-value

* tex-site.el.in (TeX-modes): Use #'.

---

Summary of changes:
 tex-ispell.el  |2 +-
 tex-site.el.in |8 
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

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


Re: [AUCTeX-devel] other patch for auctex.texi

2016-09-14 Thread Tassilo Horn
Uwe Brauer  writes:

Hi Uwe,

> @@ -164,7 +164,8 @@
>  * Folding:: Folding Macros and Environments
>  * Outline:: Outlining the Document
>  * Narrowing::   Restricting display and editing to a portion 
> of the buffer
> -* Prettifying:: Displaying Greek and math macros as Unicode 
> characters including super and subscripts 
> +* Prettifying:: Displaying Greek and math macros as Unicode 
> characters
> +* Semi-WYSIWYW::(Semi--) WYSIWYW features

Why a new node that comes even after all the semi-WYSIWYG features have
already been discussed?  I would have put it just as a paragraph just
before this TOC.

> +Lisp buffers. Deleting prettified symbols cannot be done by simply
> +hitting delete or backspace, one must use @code{kill-word} or
> +@code{backward-kill-word}.

I still don't like that sentence because it sounds like a limitation.
Can you please rephrase it somehow?  Like

Note that when you inserted \alpha which gets displayed as α,
hitting delete after it will result in \alph, i.e., just one
character is deleted, not the complete macro which just gets
displayed as α.  To delete the whole macro, use backward-kill-word
or kill-word.

(Well, I still think that note is not really necessary but if it makes
you happy, let's put it in.)

> +@node Semi--WYSIWYG
> +@section Semi--WYSIWYG
> +
> +It is possible to use various features which resemble to a certain
> +degree a semi--WYSIWYG feature. The first one is the @previewlatex{}
> +subsystem of @AUCTeX{}, see @ref{Top,,Introduction,preview-latex,The
> +@previewlatex{} Manual}. The second concerns
> +@code{prettify-symbols-mode} see @ref{Top,,Controlling Screen Display}.
> +The third concerns @font-latex-fontify-script{}, see
> +@ref{Top,,Controlling Screen Display}.

IMHO, there should be a brief note about these two different WYSIWYG
features work and what's their benefit:

  1. preview: let LaTeX generate images that are displayed in your buffer
 + extremely accurate
 - some overhead
 - fragile with some packages

  2. prettify/font-latex: light-weight Emacs-only approach
 + light-weight
 + pretty robust
 - not anywhere as WYSIWYG as preview

Ah, and at last, I cannot apply your patch (just using patch <
your.patch).  Three out of four hunks fail to apply.  Didn't you change
the master version?

Oh, and is there a way I can apply your HG patch directly with git so
that I don't have to commit it under your name and address by typing
everything manually?

Bye,
Tassilo


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


[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 18f178393fd4c2880cff917f2bd421a3273cd708

2016-09-14 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  18f178393fd4c2880cff917f2bd421a3273cd708 (commit)
  from  bc2307364bfb54c8c254eb69a972ad59cfbfa15b (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 18f178393fd4c2880cff917f2bd421a3273cd708
Author: Stefan Monnier 
Date:   Mon Sep 12 21:04:52 2016 -0400

Cherry-pick 9c24759a96f41e288841ec2e815d62d58dc01e7a from elpa branch

* tex-ispell.el (TeX-ispell-sort-skip-cmds-list): Drop symbol-value

* tex-site.el.in (TeX-modes): Use #'.

diff --git a/tex-ispell.el b/tex-ispell.el
index c519583..b12ee3e 100644
--- a/tex-ispell.el
+++ b/tex-ispell.el
@@ -250,7 +250,7 @@ skipped as cdr."))
(dolist (elt TeX-ispell-skip-cmds-list)
  (when (= (cdr elt) arg)
(push (car elt) cmds)))
-   (symbol-value 'cmds)
+   cmds
 
 (defvar TeX-ispell-skip-cmds-one-arg-regexp
   (eval-when-compile
diff --git a/tex-site.el.in b/tex-site.el.in
index 1fcc4da..a88f8bd 100644
--- a/tex-site.el.in
+++ b/tex-site.el.in
@@ -1,6 +1,6 @@
 ;;; tex-site.el - Site specific variables.  Don't edit.
 
-;; Copyright (C) 2005 Free Software Foundation, Inc.
+;; Copyright (C) 2005, 2013, 2016 Free Software Foundation, Inc.
 ;;
 ;; completely rewritten.
 
@@ -39,7 +39,7 @@
 ;;; Code:
 
 (if (< emacs-major-version 21)
-  (error "AUCTeX requires Emacs 21 or later"))
+(error "AUCTeX requires Emacs 21 or later"))
 
 ;; Define here in order for `M-x customize-group  AUCTeX '
 ;; to work if the main AUCTeX files are not loaded yet.
@@ -132,14 +132,14 @@ definition."
   (get elt 'tex-saved
 
 (defcustom TeX-modes
-  (mapcar 'car TeX-mode-alist)
+  (mapcar #'car TeX-mode-alist)
   "List of modes provided by AUCTeX.
 
 This variable can't be set normally; use customize for that, or
 set it with `TeX-modes-set'."
   :type (cons 'set
  (mapcar (lambda(x) (list 'const (car x))) TeX-mode-alist))
-  :set 'TeX-modes-set
+  :set #'TeX-modes-set
   :group 'AUCTeX
   :initialize(lambda (var value)
   (custom-initialize-reset var value)

---

Summary of changes:
 tex-ispell.el  |2 +-
 tex-site.el.in |8 
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

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


Re: [AUCTeX-devel] How to indent the tex file properly?

2016-09-14 Thread Tassilo Horn
Cody Chan  writes:

> So, how can I indent the tex file (just using **TAB** and **ENTER**
> keys when editing it or indent the whole buffer using **TAB** or
> indent command)?

You can't do that.  One reason that cannot be done is that nothing stops
you to define your own \mysection{Foo bar baz} macro which just emits
\section[Foo...]{Foo bar baz}, but how could AUCTeX know that for
producing the right indentation.

AUCTeX does indent in nested structures, e.g., when you put an itemize
environment in an enumerate environment, that will be indented, or when
you have nesting in terms of {...}.

> I mean, every block (section, subsection, **EVERY** `\begin{}...\end{}`
> pair no matter what is inside the {}) should be a part and should be in its
> place related to its parent?

Please note that this wouldn't be possible, or rather not produce the
desired output, with some verbatim environments, e.g., with

--8<---cut here---start->8---
\part{Foo}

  \chapter{Bar}

\section{Baz}

  \subsection{Quux}

\paragraph{Quexl}

  \subparagraph{Bla}

\begin{verbatim}
  this stuff has 14 spaces in front even in the compiled output
\end{verbatim}
--8<---cut here---end--->8---

the verbatim text will also have 14 spaces in front of it in the
compiled PDF output, because well, verbatim means put the stuff in there
just as I've typed it.  I guess you don't want that, and you'd need to
write

--8<---cut here---start->8---
\part{Foo}

  \chapter{Bar}

\section{Baz}

  \subsection{Quux}

\paragraph{Quexl}

  \subparagraph{Bla}

\begin{verbatim}
this stuff has 14 spaces in front even in the compiled output
\end{verbatim}
--8<---cut here---end--->8---

which pretty much defeats the purpose of the whole indentation ceremony.

Bye,
Tassilo


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


Re: [AUCTeX-devel] dear lords could you add the following style files to the style folder?

2016-09-14 Thread Arash Esbati
Carlos  writes:

> that way I don't have to insert it after every release

AUCTeX has `TeX-style-private':

,[ C-h v TeX-style-private RET ]
| TeX-style-private is a variable defined in ‘tex.el’.
| 
| Documentation:
| List of directories containing hand-generated AUCTeX style files.
| 
| These correspond to the personal TeX macros.
| 
| You can customize this variable.
`

Set that variable in your init file or via customize and move the files
into that folder.

Best, Arash

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


[AUCTeX-diffs] GNU AUCTeX branch, master, updated. bc2307364bfb54c8c254eb69a972ad59cfbfa15b

2016-09-14 Thread Arash Esbati
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  bc2307364bfb54c8c254eb69a972ad59cfbfa15b (commit)
  from  0392f01e35c3313bfd9cf535948d45fd05367a0a (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 bc2307364bfb54c8c254eb69a972ad59cfbfa15b
Author: Arash Esbati 
Date:   Wed Sep 14 13:35:07 2016 +0200

; Turn mandatory argument to optional

* style/paracol.el ("paracol"): Turn mandatory argument to an
optional one.

diff --git a/style/paracol.el b/style/paracol.el
index 22b90da..f8b5d85 100644
--- a/style/paracol.el
+++ b/style/paracol.el
@@ -124,7 +124,7 @@ If OPTIONAL is non-nil, insert the result in square 
brackets."
 
 ;; 7.4 Commands for Two-Sided Typesetting and Marginal Note Placement
 ;; \twosided[t1t2 ... tk]
-'("twosided" "Features (combination of p, c, m, b)")
+'("twosided" [ "Features (combination of p, c, m, b)" ])
 
 ;; \marginparthreshold{k}[k']
 '("marginparthreshold" "Number of columns" [ "Number of columns" ] )

---

Summary of changes:
 style/paracol.el |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX

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


[AUCTeX-commit] GNU AUCTeX branch, master, updated. bc2307364bfb54c8c254eb69a972ad59cfbfa15b

2016-09-14 Thread Arash Esbati
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  bc2307364bfb54c8c254eb69a972ad59cfbfa15b (commit)
  from  0392f01e35c3313bfd9cf535948d45fd05367a0a (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 bc2307364bfb54c8c254eb69a972ad59cfbfa15b
Author: Arash Esbati 
Date:   Wed Sep 14 13:35:07 2016 +0200

; Turn mandatory argument to optional

* style/paracol.el ("paracol"): Turn mandatory argument to an
optional one.

---

Summary of changes:
 style/paracol.el |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX

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


[AUCTeX-devel] dear lords could you add the following style files to the style folder?

2016-09-14 Thread Carlos
that way I don't have to insert it after every release

;; This file adds support for `tufte-handout.cls'.
;;; Code:


(TeX-add-style-hook
 "tufte-handout"
 (lambda ()
  (font-latex-add-keywords '(("sidenote" "[[{" )
 ("marginnote" "[{" )
 ("newthought" "{" ))
'textual))
   LaTeX-dialect)

   (defvar LaTeX-tufte-handout-class-options
 '("a4paper" "titlepage" "notitlepage" "ls" "nols" "sfsidenotes" "symmetric"
   "justified" "debug" "bidi" "notoc" "nohyper")
 "Package options for tufte-handout")

;;; tufte-handout.el ends here

and

;; This file adds support for `tufte-book.cls'.
;;; Code:


(TeX-add-style-hook
 "tufte-book"
 (lambda ()
   (font-latex-add-keywords '(("sidenote" "[[{" )
 ("marginnote" "[{" )
 ("newthought" "{" ))
'textual))
 LaTeX-dialect)


   (defvar LaTeX-tufte-book-class-options
 '("a4paper" "titlepage" "notitlepage" "ls" "nols" "sfsidenotes" "symmetric"
   "justified" "debug" "bidi" "notoc" "nohyper")
 "Package options for tufte-book")

;;; tufte-book.el ends here

thanks 


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


[AUCTeX-devel] How to indent the tex file properly?

2016-09-14 Thread Cody Chan
When I'm editing a org-mode file, the structure of mine is like this(you
may need configuration in init.el):

---snippet starts-
* A section
  This is the content of the section
  #+BEGIN_SRC lang
code here
  #+END_SRC
  ** A subsection
 This is the content of the subsection
* Another section
  This is the content of another section
---snippet ends-

But when when I'm editing a tex file using auctex, the structure of the tex
file is this after I indented the whole buffer:

---snippet starts
\documentclass{article}

\begin{document}

\section{A section}
This is the content of the section.

\begin{verbatim}
some verbatim text
\end{verbatim}

\subsection{A subsection}
This is the content of the subsection

\section{Another section}
This is the content of another section

\end{document}
---snippet ends-
It is not easy to view the whole structure, I know I can use **C-c =** to
view the toc, but how can I make it like org-mode such as:

---snippet starts
\documentclass{article}

\begin{document}

  \section{A section}
 This is the content of the section.

\begin{verbatim}
  some verbatim text
\end{verbatim}

\subsection{A subsection}
  This is the content of the subsection

  \section{Another section}
This is the content of another section

\end{document}
---snippet ends

So, how can I indent the tex file (just using **TAB** and **ENTER** keys
when editing it or indent the whole buffer using **TAB** or indent command)?

I mean, every block (section, subsection, **EVERY** `\begin{}...\end{}`
pair no matter what is inside the {}) should be a part and should be in its
place related to its parent? And the indent-level should be configurable.

How can do I do that? I googled a lot and found nothing useful.
___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel