all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: martin rudalics <rudalics@gmx.at>
Cc: Michael Welsh Duggan <mwd@md5i.com>, 19619@debbugs.gnu.org
Subject: bug#19619: 25.0.50; Fullheight frames in daemonized emacsen are wrong width
Date: Mon, 09 Feb 2015 13:26:58 +0100	[thread overview]
Message-ID: <874mqv1d9p.fsf@gmx.net> (raw)
In-Reply-To: <54D87E67.7050902@gmx.at> (martin rudalics's message of "Mon, 09 Feb 2015 10:31:19 +0100")

On Mon, 09 Feb 2015 10:31:19 +0100 martin rudalics <rudalics@gmx.at> wrote:

>> The bug was that the combination of (i) adding the frame
>> parameter (fullscreen . fullheight),
>
> ... adding to `default-frame-alist', `initial-frame-alist'?

I used modify-frame-parameters.

>> (ii) customizing tool-bar-style to
>> 'left
>
> `tool-bar-style' or the `tool-bar-position' parameter?

The latter, sorry for the confusion.

>> and (iii) calling tool-bar-add-item or tool-bar-add-item-from-menu
>> resulted in lines longer than window-width wrapping one column too
>> soon.  Again, with current master, this bug is no longer reproducible.
>> So thanks for the prescience (even if unintended)!
>
> Sheer luck, probably.  Does the problem already happen with Emacs 24.5?

It does not happen with my latest build from the emacs-24 branch.  (That
does not use a toolkit scroll bar, unlike my builds from master, though I
guess that isn't relevant here.)

> And what happens with a fullwidth frame and the toolbar orthogonally to
> where it is now?

Do you mean using the parameter (fullscreen . fullboth) and tool bar on
the left?  If so, the result is the same in master with and without you
recent patch: there's a bit of space between the last character and the
right fringe, but less than one column's worth.

Although, with your patch, I no longer observe the problem, in case you
want to do some ex post facto forensics, below is the minimal recipe I
came up with to show the problem.  Do emacs -Q in a build from master
without your patch, evaluate the code and then type `M-x srb-test'.

Steve Berman

(defun srb-test ()
  "Test display of rightmost column."
  (interactive)
  (let ((buf (generate-new-buffer "*srb test*")))
    (with-current-buffer buf
      (insert "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")
      (srb-test-mode))
    (switch-to-buffer buf)))

(defvar srb-test-toolbar
  (let ((tool-bar-map (make-sparse-keymap)))
    (tool-bar-add-item nil nil nil)
    tool-bar-map))

(defvar srb-test-mode-map
  (let ((map (make-sparse-keymap)))
    (define-key map [menu-bar] (make-sparse-keymap))
    map)
  "Keymap for `srb-test-mode'.")

(define-derived-mode srb-test-mode nil "srb test"
  "Mode to test display of rightmost column."
  (modify-frame-parameters nil '((fullscreen . fullheight)))
  (custom-set-variables '(tool-bar-position (quote left)))
  (setq-local tool-bar-map srb-test-toolbar))





  reply	other threads:[~2015-02-09 12:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 17:39 bug#19619: 25.0.50; Fullheight frames in daemonized emacsen are wrong width Michael Welsh Duggan
2015-01-16 17:55 ` martin rudalics
2015-01-16 18:16   ` Michael Welsh Duggan
2015-01-16 18:47     ` martin rudalics
2015-02-07 19:26     ` martin rudalics
2015-02-08  5:54       ` Michael Welsh Duggan
2015-02-08 20:29         ` Stephen Berman
2015-02-09  9:31           ` martin rudalics
2015-02-09 12:26             ` Stephen Berman [this message]
2015-02-09 18:41               ` martin rudalics
2015-02-10 10:13                 ` Stephen Berman
2015-02-13 18:30         ` martin rudalics

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=874mqv1d9p.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=19619@debbugs.gnu.org \
    --cc=mwd@md5i.com \
    --cc=rudalics@gmx.at \
    /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.