URL:
  <https://savannah.gnu.org/task/?16368>

                 Summary: Submission of Emacs-maximize
                   Group: Savannah Administration
               Submitter: beloved
               Submitted: Sat 13 May 2023 06:37:32 PM CEST
         Should Start On: Sat 13 May 2023 12:00:00 AM CEST
   Should be Finished on: Tue 23 May 2023 12:00:00 AM CEST
                Category: Project Approval
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 13 May 2023 06:37:32 PM CEST By: David Hedlund <beloved>
A new group has been registered at Savannah.
This group will remain inactive until a site admin approves
or discards the registration.


= Registration Administration =

Approving or discarding the registration must be done using the specific
[https://savannah.gnu.org/siteadmin/groupedit.php?group_id=12289 Group
administration] page, accessible only to site
administrators logged in as superusers.

= Registration Details =

* Name: *Emacs-maximize*
* System Name:  *emacs-maximize*
* Type: Official GNU software
* License: Apache 2.0

----

== Description: ==
The goal is to package this script for Debian etc, until it's possible to use
Emacs LISP code to maximize Emacs without the visually annoying effect
described below.

* `emacs-gtk --maximize`, or `emacs -mm`, is the only solution I'm aware of
"to avoid the slightly distracting visual effect of Emacs starting with, its
default frame size and then growing to fullscreen".

* Also, Emacs LISP code in .emacs must be avoided to maximize the window (for
example `(add-to-list 'default-frame-alist '(fullscreen . maximized))`),
because it will not avoid the slightly distracting visual effect, it will only
override `emacs-gtk --maximize` that is preventing it from happening.


#######################

Emacs LISP (failed in GNU/Linux, but is useful for Windows)

https://www.gnu.org/software/emacs/manual/html_mono/efaq.html#Fullscreen-mode-on-MS_002dWindows


"Beginning with Emacs 24.4 either run Emacs with the ‘--maximized’
command-line option or put the following form in your .emacs file:

(add-hook 'emacs-startup-hook 'toggle-frame-maximized)

To avoid the slightly distracting visual effect of Emacs starting with
its default frame size and then growing to fullscreen, you can add an
‘Emacs.Geometry’ entry to the Windows registry settings."



I'm not using Emacs for Windows, but I tried this on Windows for the sake of
evaluation and it worked:


(setq frame-resize-pixelwise t)
(set-frame-position (selected-frame) 0 0)
(set-frame-size (selected-frame) (display-pixel-width) (display-pixel-height)
t)


I suggested that the above Emacs LISP could be added to
https://www.gnu.org/software/emacs/manual/html_mono/efaq.html#Fullscreen-mode-on-MS_002dWindows
(see https://lists.gnu.org/archive/html/emacs-devel/2023-04/msg00155.html for
the discussion)



However, it didn't remove the "slightly distracting visual effect of Emacs
starting withits default frame size and then growing to fullscreen" in
GNU/Linux.


####################
Window-matching utility

devilspie2 failed to maximize Emacs

devilspie2 can move emacs to another workspace, but the maximize commands
don't work - https://savannah.nongnu.org/bugs/index.php?63979 (filed by me)



This will always open emacs in maximized mode without the "slightly
distracting visual effect of Emacs starting with, its default frame size and
then growing to fullscreen". From
* $ emacs in terminal -- `which emacs` 
* The menu bar (for example in MATE in Trisquel 11)
* "Open With" -> "Emacs (GUI)" in graphical file managers (like caja in
Trisquel)


The BASH script can be used instead of making these configurations in:

Shell

Create an alias that evoles

    echo "alias emacs='emacs --maximize'" >> ~/.bashrc
    source ~/.bashrc

GNOME and MATE

The setting affects both the "Open With" entry in the context menu, and
Accessories -> Emacs (GUI)

    sudo sed -i "s|Exec=/usr/bin/emacs %F|Exec=/usr/bin/emacs --maximize %F|"
/usr/share/applications/emacs.desktop



== Other Software Required: ==
Emacs
BASH
md5sum



== Tarball URL: ==
https://savannah.gnu.org/submissions_uploads/emacs-maximize-0.1.tar.gz









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16368>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to