Juri Linkov | 9 Feb 10:43
Favicon
Gravatar

bug#10773: set-variable can't change values of user options

Package: emacs
Version: 24.0.93
Severity: wishlist

emacs -Q C-h C-t
M-x set-variable RET outline-mode-hook RET (hide-body) RET
M-x set-variable RET outline-minor-mode-hook RET [No match]

Why users are allowed to change the value of `outline-mode-hook',
but not `outline-minor-mode-hook'?

William Stevenson | 9 Feb 07:49
Picon
Gravatar

bug#10772: 24.0.93; [patch] Convert tcl-auto-fill-mode to use define-minor-mode

In the documentation of auto-fill-mode it says:
"When `auto-fill-mode' is on, the `auto-fill-function' variable is
non-`nil'."
Which makes the `if' redundant in this case, the THEN & ELSE bodies can
be placed below the call to turn auto-fill-mode on/off.

Also updated the documentation to reflect the auto generated
`tcl-auto-fill-mode-hook'.

=== modified file 'lisp/progmodes/tcl.el'
--- lisp/progmodes/tcl.el	2012-01-19 07:21:25 +0000
+++ lisp/progmodes/tcl.el	2012-02-09 06:18:32 +0000
@@ -1408,13 +1408,18 @@
 		     tcl-application file tcl-command-switches)
 	(if and-go (switch-to-tcl t)))))))

-(defun tcl-auto-fill-mode (&optional arg)
-  "Like `auto-fill-mode', but sets `comment-auto-fill-only-comments'."
-  (interactive "P")
-  (auto-fill-mode arg)
-  (if auto-fill-function
-      (set (make-local-variable 'comment-auto-fill-only-comments) t)
-    (kill-local-variable 'comment-auto-fill-only-comments)))
+(define-minor-mode tcl-auto-fill-mode
+  "Like `auto-fill-mode', but sets `comment-auto-fill-only-comments'.
+Turning the mode on or off runs `tcl-auto-fill-mode-hook'."
+  :init-value nil
+  (cond ((null tcl-auto-fill-mode)
+	 ;; Turn mode off
+	 (auto-fill-mode 0)
(Continue reading)

Glenn Morris | 9 Feb 07:36
Picon
Gravatar

bug#10771: TAB completion for info-display-manual

Package: emacs
Version: 24.0.93
Severity: wishlist

emacs -Q 
M-x info-display-manual RET em TAB

I hoped this would offer completion over the manuals in my INFOPATH, but
it just inserts a literal tab.

Glenn Morris | 9 Feb 07:33
Picon
Gravatar

bug#10770: info-display-manual replaces existing *info* buffer

Package: emacs
Version: 24.0.93
Severity: wishlist

emacs -Q
M-x info-display-manual RET gnus RET
M-x info-display-manual RET emacs RET

Now my Gnus manual is gone, replaced by the Emacs manual.
I expected it to use a new buffer for the Emacs manual.

Gravatar

bug#10768: 23.3; url-http misses data when last few bytes are in 2nd packet and content-length is used

I’m using url-http to retrieve an XML response.  In noticed somewhat by
chance that certain page sizes were cutting off the last few characters
of the response, which in turn caused the XML to be poorly formed.

I've noticed the issue occurs when the payload response has to be sent
in two TCP packets and the last packet has 8 or fewer bytes.  I observe
this by looking at the HTTP stream in Wireshark.

I spent time tracing the response by adding some debug using
url-http-debug.  The first chunk of data comes from the first TCP packet
and includes the HTTP header and all the XML data minus the last 8 bytes.
url-http-wait-for-headers-change-function is called to process this
chunk of data.  After processing this chunk, the connection is closed
and the buffer of XML data returned minux the 8 bytes.

Here's the http trace, along with my added debug messages (inlcuding
dumping of the full data):

----------------------------------------
22:06.781000 http -> Contacting host: api.toodledo.com:80
22:06.827000 http -> Marking connection as busy: api.toodledo.com:80 #<process api.toodledo.com<1>>
22:06.828000 http -> Request is: 
POST /2/tasks/get.php HTTP/1.1 
MIME-Version: 1.0 
Connection: keep-alive 
Extension: Security/Digest Security/SSL 
Host: api.toodledo.com 
Accept-charset: nil 
Accept: */* 
User-Agent: URL/Emacs (i386-mingw-nt6.1.7601; Windows-NT; 32bit) 
(Continue reading)

Marcel Silva | 9 Feb 03:26
Picon
Gravatar

bug#10767: 24.0.93; Customize does not set org-blank-before-new-entry

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

Unfortunately I cannot reproduce the bug without a .emacs initialization
file. My ~/.emacs file is currently this (exactly 2 lines):

(custom-set-variables
 '(org-blank-before-new-entry (quote ((heading . t) (plain-list-item . t)))))

However, it is not setting the variable org-blank-before-new-entry
correctly.

To reproduce this, start emacs with this two-line ~/.emacs file, then
activate org mode by running 'M-x org-agenda' and then 'a'; next check
the value of org-blank-before-new-entry by calling 'C-h v
org-blank-before-new-entry'. The help buffer shown lists

org-blank-before-new-entry is a variable defined in `org.el'.
Its value is nil
Original value was
((heading . auto)
(Continue reading)

Jim Blandy | 8 Feb 21:56
Favicon
Gravatar

bug#10765: 24.0.93; gdb-mi cannot transmit commands containing double quotes

When I start debugging a program with M-x gdb, and type the command:

(gdb) print "fleen"

The following message appears in the minibuffer:

Problem parsing arguments: interpreter-exec console "print "fleen""

This problem occurs because gdb-send fails to properly quote the
arguments to the "-interpreter-exec console" MI packet it sends.

In GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2012-02-08 on fyodor
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
Configured using:
 `configure '--prefix=/home/jimb/emacs' 'CFLAGS=-g3 -O0''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

(Continue reading)

Volker Sobek | 8 Feb 21:23
Favicon

bug#10764: 24.0.93; * /doc/misc/sem-user.texi: Typo fix.

In GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.8)

=== modified file 'doc/misc/sem-user.texi'
*** doc/misc/sem-user.texi	2012-01-19 07:21:25 +0000
--- doc/misc/sem-user.texi	2012-02-08 19:40:34 +0000
***************
*** 176,182 ****
  kill it as well.  This allows you to insert or jump to that tag with
  the usual register commands.  @xref{Registers,,,emacs,Emacs manual}.

! @item \C-c , @kbd{up}
  Transpose the current tag with the previous one
  (@code{senator-transpose-tags-up}).

--- 176,182 ----
  kill it as well.  This allows you to insert or jump to that tag with
  the usual register commands.  @xref{Registers,,,emacs,Emacs manual}.

! @item C-c , @kbd{up}
  Transpose the current tag with the previous one
  (@code{senator-transpose-tags-up}).

Jeffrey Ratcliffe | 8 Feb 17:51
Picon

bug#10763: 23.4; calc-embedded fails to simplify units in \frac

Using calc-embedded in LaTeX:

\documentclass[pdftex,a4paper]{report}
$ a \gets 3 m $
$ b \gets 4 m $
$ \evalto \alpha \gets \arcsin\left( \frac{a}{b} \right) \to
\arcsin\left( \frac{0.75 m}{m} \right) $
\end{document}

calc doesn't finish evaluating the expression, presumably because it
has failed to
simplify the units in the fraction.

Please keep me in CC, as I am not subscribed.

In GNU Emacs 23.4.2 (x86_64-pc-linux-gnu, GTK+ Version 2.22.1)
Windowing system distributor `The X.Org Foundation', version 11.0.70101000

Oleksandr Manzyuk | 8 Feb 10:21
Picon
Gravatar

bug#10761: 24.0.93; variable declared with defvar is not recognized as special

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

The variable `pcomplete-stub' from `pcomplete.el' is declared using
defvar.  The top comment of the file contains -*- lexical-binding: t -*-,
so `pcomplete-stub' should be a special variable.  This is not the case:

1. emacs -Q
2. M-: (boundp 'pcomplete-stub) RET ==> nil
3. M-x shell
4. M-: (boundp 'pcomplete-stub) RET ==> t
5. M-: (special-variable-p 'pcomplete-stub) RET ==> nil
6. Open the file `pcomplete.el' (for example, by looking up the variable
`pcomplete-stub') and M-x eval-buffer.  Now (special-variable-p
'pcomplete-stub) evaluates to t.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/home/manzyuk/share/emacs/24.0.93/etc/DEBUG.
(Continue reading)

William Stevenson | 8 Feb 08:12
Picon
Gravatar

bug#10760: 24.0.93; [patch] Convert artist-mode to use define-minor-mode

This is my first patch concerning the item in etc/TODO:
** Check what minor modes don't use define-minor-mode and convert them
to use it.

Please look carefully at the change I made to the last item in the
mode-map. The original code was:
(define-key map [menu-bar artist] (cons "Artist" artist-menu-map))
I found I needed to change this to:
([menu-bar artist]	.	artist-menu-map))
This works the same, but I'm unsure as to any wider effects it may have.

Also consider removing as redundant the function artist-mode-off, the
keymap for this and the mention in the documentation.

After the changes artist-mode-name was only referred to in
artist-mode-line-show-curr-operation, and it seemed sensible to replace
it with the string, as in this case it is just concat'ed to "/".

I have cc'ed the maintainer Tomas Abrahamsson this message.

=== modified file 'lisp/textmodes/artist.el'
*** lisp/textmodes/artist.el	2012-01-19 07:21:25 +0000
--- lisp/textmodes/artist.el	2012-02-08 07:09:41 +0000
***************
*** 415,427 ****

  ;; Internal variables
  ;;
- (defvar artist-mode nil
-   "Non-nil to enable `artist-mode' and nil to disable.")
(Continue reading)


Gmane